Tuesday, 2020-09-22

*** jawad_axd has joined #openstack-glance00:34
*** jawad_axd has quit IRC00:38
*** jawad_axd has joined #openstack-glance01:15
*** jawad_axd has quit IRC01:19
*** gyee has quit IRC01:22
*** Liang__ has joined #openstack-glance01:32
*** jawad_axd has joined #openstack-glance01:36
*** jawad_axd has quit IRC01:41
*** jawad_axd has joined #openstack-glance01:57
*** jawad_axd has quit IRC02:01
*** rosmaita has quit IRC02:16
*** rosmaita has joined #openstack-glance02:16
openstackgerritZihao Wang proposed openstack/python-glanceclient master: requirements: Drop os-testr  https://review.opendev.org/75320102:19
*** zzzeek has quit IRC02:51
*** zzzeek has joined #openstack-glance02:54
*** udesale has joined #openstack-glance03:15
*** udesale has quit IRC03:15
*** ratailor has joined #openstack-glance03:41
*** evrardjp has quit IRC04:33
*** evrardjp has joined #openstack-glance04:33
*** m75abrams has joined #openstack-glance04:54
*** rcernin has quit IRC05:14
*** udesale has joined #openstack-glance05:30
*** rcernin has joined #openstack-glance05:34
*** udesale_ has joined #openstack-glance05:46
*** udesale has quit IRC05:47
*** Liang__ has quit IRC05:48
*** Liang__ has joined #openstack-glance05:49
*** zzzeek has quit IRC05:54
*** zzzeek has joined #openstack-glance05:54
*** zzzeek has quit IRC06:26
*** ralonsoh has joined #openstack-glance06:28
*** zzzeek has joined #openstack-glance06:28
*** Liang__ has quit IRC07:03
*** baojg has joined #openstack-glance07:07
*** Liang__ has joined #openstack-glance07:07
*** belmoreira has joined #openstack-glance07:10
*** nightmare_unreal has joined #openstack-glance07:10
*** rcernin has quit IRC07:13
*** jawad_axd has joined #openstack-glance07:22
*** udesale_ has quit IRC07:36
*** rcernin has joined #openstack-glance07:39
*** udesale_ has joined #openstack-glance07:41
*** udesale_ has quit IRC07:41
nightmare_unrealHi, how to debug glance/ glance-api ? I am using devstack where can I find logs for it08:11
*** priteau has joined #openstack-glance08:23
*** priteau has quit IRC08:35
*** priteau has joined #openstack-glance08:50
*** rcernin has quit IRC08:59
*** rcernin has joined #openstack-glance09:00
*** ratailor has quit IRC09:01
*** rcernin has quit IRC09:19
*** k_mouza has joined #openstack-glance09:32
abhishekkyou can use rpdb09:38
*** Liang__ has quit IRC10:00
*** baojg has quit IRC10:33
*** baojg has joined #openstack-glance10:34
*** k_mouza has quit IRC10:35
*** rcernin has joined #openstack-glance10:37
*** rcernin has quit IRC10:37
*** rcernin has joined #openstack-glance10:37
*** k_mouza has joined #openstack-glance10:44
*** k_mouza has quit IRC10:48
*** k_mouza has joined #openstack-glance10:48
*** ratailor has joined #openstack-glance10:54
*** Luzi has joined #openstack-glance10:55
*** baojg has quit IRC11:03
*** baojg has joined #openstack-glance11:04
*** priteau has quit IRC11:08
*** rcernin has quit IRC11:11
*** ratailor has quit IRC11:50
*** rcernin has joined #openstack-glance12:55
*** rcernin has quit IRC13:10
*** k_mouza has quit IRC13:12
*** k_mouza has joined #openstack-glance13:14
nightmare_unrealfor authentication what does glance use ? token , username pass , conf file ?13:45
*** priteau has joined #openstack-glance13:46
dansmithnightmare_unreal: for authentication to what?13:49
dansmithnightmare_unreal: users authenticate to glance with a token from keystone13:50
nightmare_unrealI mean if glance requires resource/info from other services13:50
nightmare_unrealI am still trying to make the identity client.13:50
nightmare_unrealthe link that you shared yesterday was helpful but it's too specific to nova ( i think ) .  the context part and nova utils. : https://github.com/openstack/nova/blob/master/nova/api/openstack/identity.py#L3413:51
dansmithgenerally when one service needs to talk to another on behalf of a user, it uses the token the user presented to do so, to make sure it doesn't escalate the privileges of the user with the other service13:51
dansmithnightmare_unreal: context is basically oslo_context, and glance uses the same pattern13:52
abhishekkjokke, dansmith around?13:53
dansmithabhishekk: yes? :)13:54
abhishekk:D13:54
abhishekkneed couple of minutes13:54
abhishekkwe have rc1 this week, I don't think that web_download patch (both size and cleanup) is going to make it13:55
nightmare_unrealoh okay dansmith . what should be the right way to do it? using tokens ?13:55
abhishekkwhat do you think13:55
dansmithabhishekk: well, one of us could just fix it up quick, or just wait and backport it right? the latter seems like it would be fine too, as it's not a huge change AFAICT13:56
dansmithnightmare_unreal: definitely13:56
nightmare_unrealokay13:57
abhishekkdansmith, I just don't want to duplicate the efforts, but not sure yebinama is around from yesterday so its good that we can fix the changes and get it done13:57
abhishekkLet me work on the fixes, I will also push reno patch on top of it13:59
dansmithabhishekk: okay, seems like the best thing to do if you want to land it first, yeah13:59
abhishekkIF we get couple of +2 tomorrow by this time then we are good14:00
dansmithabhishekk: I'll be on call :)14:01
dansmither, in case that doesn't translate.. I'll be here ready to review :)14:01
abhishekkack, thank you14:01
abhishekk:D14:02
*** lpetrut has joined #openstack-glance14:02
nightmare_unrealdansmith: do you have any example for glance, where existing user token is used to communicate with another service14:17
dansmithnightmare_unreal: looks like the cinder stuff uses the user token by default, and I would expect swift as well14:18
nightmare_unrealokay :)14:18
dansmithhowever, in the api code, you'll see the context just the same as in nova, which should be all you need14:18
dansmithglance is really strange in that it really buries the context stuff in layers of onion almost immediately, which makes it quite difficult to get at that stuff from the bowels,14:18
dansmithbut in the API you should have it relatively close by14:19
nightmare_unrealwell there is glance.api.middleware.context I tried with that. I was getting error that "glance.api.middleware.context has no attribute get_headers()"14:20
dansmiththat's a module, you can't just pass a python module and expect it to magically figure out what it needs from there :)14:21
dansmiththe context comes in via the request14:21
dansmithnightmare_unreal: for example: https://github.com/openstack/glance/blob/master/glance/api/v2/images.py#L7514:22
dansmithreq.context is what you want.. that's a context object filled out with all the details from the request, including the token they provided, etc14:22
nightmare_unrealaah, true. Thanks I will take a look14:23
*** Luzi has quit IRC14:25
*** k_mouza has quit IRC14:36
*** k_mouza has joined #openstack-glance14:43
openstackgerritAbhishek Kekane proposed openstack/glance master: Image import "web-download" check downloaded size  https://review.opendev.org/75206714:52
openstackgerritAbhishek Kekane proposed openstack/glance master: Fix cleaning of web-download image import  https://review.opendev.org/60768014:52
openstackgerritAbhishek Kekane proposed openstack/glance master: Victoria RC-1 release notes  https://review.opendev.org/75337114:52
abhishekkdansmith, ^^^14:53
abhishekkjokke, rosmaita, smcginnis kindly review when you get some time, thank you14:53
rosmaitaabhishekk: ack14:54
dansmithabhishekk: IMHO, you should just +W that bottom patch as you were +2 before and you just fixed a nit14:54
abhishekkdansmith, right, need reviews for cleaning and reno :D14:55
dansmithrgr14:55
*** abhishekk is now known as abhishekk-afk14:55
*** jawad_axd has quit IRC14:56
dansmithabhishekk-afk: small thing in the cleanup patch14:58
*** rcernin has joined #openstack-glance15:03
*** rcernin has quit IRC15:10
*** belmoreira has quit IRC15:21
abhishekk-afkdansmith, regarding that, to mock store.add I need to call execute method and then I need to trigger failure so that revert will be called for which again I need to mock execute method as well15:27
abhishekk-afkotherwise if I call execute method and didn't trigger failure its not logical to call revert method directly from test15:28
*** m75abrams has quit IRC15:33
*** abhishekk-afk is now known as abhishekk15:35
dansmithabhishekk: I'm not following15:45
abhishekkdansmith, just replied on the patch15:46
abhishekkwhat I was saying is calling both execute and revert method from same test doesn't looks good to me15:47
dansmithabhishekk: okay, the reply doesn't clear it up for me15:47
dansmithwhy?15:47
dansmithyou want to make sure that execute sets up the internal data that revert will need15:47
dansmithif you set up exactly what you need from the test and then call revert, you're testing that the *test* does the right thing, but not the actual code15:48
abhishekkyeah, but revert should be called only when execute fails15:48
dansmithyou could do a functional test to make sure it happens, but it'd be simpler to just do it here15:48
dansmithabhishekk: right, you're going to make execute fail,15:48
dansmithbecause you're going to mock out store.add15:48
*** lpetrut has quit IRC15:49
abhishekkhow will execute fail without mocking it?15:49
dansmithi.e. make the mocked store_add return an invalid size15:49
abhishekkhmm15:50
dansmithdon't mock execute, mock store_add15:50
dansmithhang on, brb15:50
abhishekkok15:50
dansmithsorry, local distraction here15:51
dansmithif you still don't understand, I can pull it down and write the change I'm suggesting15:51
abhishekkdansmith, let me try once and then you can do it if I didn't managed :D15:52
dansmithabhishekk: if you don't manage, then look at this, else ignore :) https://pastebin.com/uhmatKn816:03
abhishekkdansmith, ack, thank you16:05
*** irclogbot_3 has quit IRC16:08
*** bhagyashri|rover has quit IRC16:08
*** irclogbot_0 has joined #openstack-glance16:09
*** dosaboy has quit IRC16:09
*** bhagyashris has joined #openstack-glance16:10
abhishekkdansmith, only problem is test case implies revert without failure and we are imposing failure16:12
dansmithyou were already calling revert, so there was some failure.. is your point that the test case name implies that there wasn't a failure in *this* atom's execute?16:12
*** dosaboy has joined #openstack-glance16:13
abhishekkI think that is what I am assuming16:13
dansmith"without_failure" and "revert gets called" are incompatible anyway, so I'd just change the name to something appropriate :)16:13
dansmithwe're not actually testing any different outcome here, just being more comprehensive :)16:14
abhishekkack :D16:16
*** k_mouza has quit IRC16:25
*** k_mouza has joined #openstack-glance16:34
*** k_mouza has quit IRC16:38
*** k_mouza has joined #openstack-glance16:42
*** k_mouza has quit IRC16:46
*** k_mouza has joined #openstack-glance16:51
openstackgerritAbhishek Kekane proposed openstack/glance master: Fix cleaning of web-download image import  https://review.opendev.org/60768016:51
openstackgerritAbhishek Kekane proposed openstack/glance master: Victoria RC-1 release notes  https://review.opendev.org/75337116:51
openstackgerritErno Kuvaja proposed openstack/glance master: Do not use OSC in infra playbook  https://review.opendev.org/75021217:09
*** k_mouza has quit IRC17:11
*** k_mouza has joined #openstack-glance17:18
*** k_mouza has quit IRC17:23
*** k_mouza has joined #openstack-glance17:37
*** k_mouza has quit IRC17:41
openstackgerritAbhishek Kekane proposed openstack/glance master: Fix cleaning of web-download image import  https://review.opendev.org/60768017:41
openstackgerritAbhishek Kekane proposed openstack/glance master: Victoria RC-1 release notes  https://review.opendev.org/75337117:41
*** ralonsoh has quit IRC17:46
*** k_mouza has joined #openstack-glance17:46
*** k_mouza has quit IRC17:51
openstackgerritGrĂ©goire Unbekandt proposed openstack/glance master: Fix cleaning of web-download image import  https://review.opendev.org/60768017:59
*** belmoreira has joined #openstack-glance18:13
openstackgerritGrĂ©goire Unbekandt proposed openstack/glance master: Fix cleaning of web-download image import  https://review.opendev.org/60768018:31
*** gyee has joined #openstack-glance18:34
*** zzzeek has quit IRC19:08
*** zzzeek has joined #openstack-glance19:09
*** priteau has quit IRC19:23
*** belmoreira has quit IRC20:40
*** k_mouza has joined #openstack-glance21:09
*** k_mouza has quit IRC21:14
*** gmann has quit IRC22:04
*** gregwork has quit IRC22:04
*** nicolasbock has quit IRC22:04
*** gmann has joined #openstack-glance22:05
*** nicolasbock has joined #openstack-glance22:05
*** gregwork has joined #openstack-glance22:09
*** rcernin has joined #openstack-glance22:55
*** tkajinam has joined #openstack-glance22:57
openstackgerritMerged openstack/glance master: Image import "web-download" check downloaded size  https://review.opendev.org/75206723:17
*** zzzeek has quit IRC23:30
*** zzzeek has joined #openstack-glance23:31

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