Monday, 2021-01-11

*** rcernin has quit IRC02:59
*** rcernin has joined #openstack-glance03:08
*** rcernin has quit IRC03:19
*** rcernin has joined #openstack-glance03:30
*** baojg has joined #openstack-glance03:52
*** baojg has quit IRC03:53
*** baojg has joined #openstack-glance03:53
*** baojg has quit IRC03:54
*** baojg has joined #openstack-glance03:54
*** baojg has quit IRC03:54
*** baojg has joined #openstack-glance03:55
*** baojg has quit IRC03:55
*** baojg has joined #openstack-glance03:55
*** baojg has quit IRC03:56
*** baojg has joined #openstack-glance03:57
*** baojg has quit IRC03:58
*** baojg has joined #openstack-glance03:59
*** baojg has quit IRC03:59
*** baojg has joined #openstack-glance03:59
*** baojg has quit IRC04:00
*** baojg has joined #openstack-glance04:00
*** baojg has quit IRC04:01
*** udesale has joined #openstack-glance04:20
*** rosmaita has left #openstack-glance04:43
*** baojg has joined #openstack-glance05:34
*** m75abrams has joined #openstack-glance06:09
*** ralonsoh has joined #openstack-glance07:40
*** hoonetorg has joined #openstack-glance07:47
*** rcernin has quit IRC07:51
*** nikparasyr has joined #openstack-glance08:32
*** ralonsoh has quit IRC08:38
*** ralonsoh has joined #openstack-glance08:41
*** lpetrut has joined #openstack-glance08:45
*** yoctozepto has quit IRC08:48
*** baojg has quit IRC11:01
*** udesale_ has joined #openstack-glance11:14
*** udesale has quit IRC11:17
*** zzzeek has quit IRC11:33
*** zzzeek has joined #openstack-glance11:35
*** rcernin has joined #openstack-glance11:51
*** zzzeek has quit IRC12:19
*** rcernin has quit IRC12:21
*** zzzeek has joined #openstack-glance12:21
*** Luzi has joined #openstack-glance12:56
*** rosmaita has joined #openstack-glance13:04
*** yoctozepto has joined #openstack-glance13:45
*** udesale_ has quit IRC13:51
*** ralonsoh_ has joined #openstack-glance13:59
*** ralonsoh has quit IRC13:59
*** ralonsoh_ is now known as ralonsoh14:01
*** Luzi has quit IRC14:04
*** ralonsoh has quit IRC14:37
*** ralonsoh has joined #openstack-glance14:38
*** ralonsoh has quit IRC14:40
abhishekkdansmith, sorry I missed you by couple of minutes on Friday, I am around now14:44
dansmithabhishekk: that's okay I figured it was too late14:44
abhishekkwelcome back and happy new year14:45
dansmiththanks, you too14:45
abhishekkthank you14:45
dansmithabhishekk: so unless you know of other work going on to implement that distributed import spec, I'll keep working on making that ready14:46
dansmithsince there are still revisions on the spec not yet made, I figure there's no code either14:47
*** m75abrams has quit IRC14:47
abhishekkYeah, I think so14:48
abhishekkbetween went through the patch and it looks better and simple to understand14:49
dansmithit's what we discussed at PTG14:49
abhishekkyes14:50
dansmithbut yeah, figured it would be helpful to just put it into code to get things moving14:50
abhishekk++14:50
abhishekkdansmith, just to update you I am going on PTO from 13 to 21 January to attend sister's wedding14:50
dansmithI just saw the email... I'll allow it :P14:51
abhishekkyou guys needs to look after 2nd milestone which is due next week14:51
abhishekkthank you :D14:51
dansmithdoes anything specific need doing for m2?14:51
*** m75abrams has joined #openstack-glance14:52
abhishekkwe just need to get specs approved during m214:52
abhishekkI will try to push new revision of task show api by tomorrow14:52
abhishekkI am just not sure how useful it will be if we add image-id field in task db table14:54
*** spotz has joined #openstack-glance14:57
abhishekkdansmith, also here I am recording results of manual testing done with secure RBAC changes posted for glance14:58
abhishekkhttps://etherpad.opendev.org/p/glance-rbac-testing14:58
dansmithabhishekk: we need image-id and request-id, it seems to me14:59
abhishekkdansmith, yes, as pointed out by rosmaita it is in input section and not indexable at the moment15:00
dansmithyeah, so one migration to add both of those seems like a good plan to me15:00
abhishekkAck, I will push the new revision tomorrow and will try to modify my PoC as well15:01
dansmithcool15:01
dansmithjokke: are we likely to see a rev of the distributed spec in time to have it reviews and merged by next week?15:02
dansmithif not and you prefer, I can rev it to match the comments and proposal if it would help15:02
abhishekkI am not sure about making updates in Poc, but will update the specs for sure15:02
dansmithokay, well, more time for the code than spec, so that's okay right?15:03
abhishekkright15:03
abhishekkSo just to be sure, we need to return all tasks associated with the image-id (which are not expired)15:04
dansmithyeah, that's what I'm proposing15:04
abhishekkack15:05
dansmithif I submit a request at the same time as another client, mine fails immediately and another one starts running,15:05
dansmithI can see that by looking through the list and finding the one that matches my request-id..15:05
dansmithwithout that, I can only see the running one and assume it's mine15:05
abhishekkgot it15:06
rosmaitais there a 'user' field in the task?15:06
dansmithIIRC we have a functional test that has to cheat in order to reliably test this API, so that should be a good indication that a real client would be out of luck :)15:06
abhishekkI think owner is there15:06
dansmithyeah owner on task15:06
rosmaitayeah, but that will be the project15:06
dansmithoh user, I see15:07
rosmaitamaybe we should think about adding user?15:07
dansmith...since we're adding stuff, yeah... easier to do it in one go15:07
rosmaitathat was my thought15:07
rosmaitaclient tooling will have the request-id, but normal people won't15:07
dansmithsure15:07
rosmaitaabhishekk: this simple spec just keeps getting bigger and bigger!15:08
dansmithrosmaita: sidebar, since you were reviewing the spec, could you have a quick gander at my PoC for the distributed import thing here? it's very small: https://review.opendev.org/c/openstack/glance/+/76997615:08
rosmaitadansmith: sure15:08
dansmiththanks15:08
abhishekkrosmaita, :D15:09
*** lpetrut has quit IRC15:10
*** ralonsoh has joined #openstack-glance15:16
*** m75abrams has quit IRC15:52
*** nikparasyr has left #openstack-glance16:09
dansmithgmann: I have a dumb question that you probably know the answer to16:46
dansmithgmann: I want to raise a webob.exc.HTTPError with a specific code and reason string, but it seems like I can't actually provide that, I have to choose one of the subclasses16:47
dansmithgmann: what do we do when we need to raise an http error by code instead of by name? Meaning raise HTTPError(code=some_variable, reason=other_variable)16:47
gmanndansmith: hi16:54
*** gyee has joined #openstack-glance16:55
gmanndansmith: I think you can pass via more detail on reason via 'detail'16:55
dansmith>>> webob.exc.HTTPError(detail='foo')16:56
dansmith<HTTPError at 0x7f62e3a22d00 500 Internal Server Error>16:56
gmannnot sure if code can be passed but let me check if possible for HTTPError other HTTP exception it cannot be16:56
dansmithit seems to me that all the intermediate classes between the base and the subclasses expect each subclass to have a class-level variable of "code"16:56
gmannyeah for all HTTP yes (I need to check what is hard coded code for HTTPError ) otherwise base self.code which is 500 is used16:58
dansmithokay so maybe I need to make a subclass with @property for code or something so I can pass it through16:59
gmanndansmith: yeah, or use specific HTTP* if any of them match code you want17:02
gmanndansmith: other way is to use urllib.error.HTTPError there you can pass code and reason.17:02
dansmithah does that work? I can raise that?17:02
gmannyes that take code and msg17:03
dansmithah perfect thanks17:03
*** openstackgerrit has quit IRC17:37
dansmithabhishekk: ISTR in the past working on the task lock thing that you had an image property that was excluded from the view18:03
dansmithkinda like _reserved_properties, but _hidden_properties ... I don't see that now though.. do you remember if you added that exclusion list just for that or if I'm missing somewhere else where we can hide properties?18:04
dansmithnm, I don't see it, so I'll just add it for my purposes19:15
*** gmann is now known as gmann_afk19:25
*** ralonsoh has quit IRC20:44
*** gmann_afk is now known as gmann21:13
*** hoonetorg has quit IRC21:22
*** hoonetorg has joined #openstack-glance21:40
*** rcernin has joined #openstack-glance22:07
*** rcernin has quit IRC22:09
*** rcernin has joined #openstack-glance22:11
*** tkajinam has joined #openstack-glance22:57
dansmithgmann: hmm, raising urllib.error.HTTPError with a code of something like 40x causes the wsgi stack in glance to return 500, presumably because it think it's just an unknown exception (i.e. instead of webob.exc.something)23:38
*** rcernin_ has joined #openstack-glance23:54
*** rcernin has quit IRC23:55

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!