Friday, 2021-09-10

*** udesale is now known as udesale|holiday06:58
dansmithlbragstad: question for you here: https://review.opendev.org/c/openstack/glance/+/806775/5/glance/tests/functional/v2/metadef_utils.py13:58
dansmithotherwise a big fan of the cleanups of course13:58
dansmithI'm happy to squash those for you if you agree13:58
lbragstaddansmith yep - i agree with that13:59
dansmithokay you want me to do the squashing?14:00
lbragstaddansmith my initial thought was to separate the assertions from the thing creating the namespace14:01
lbragstadbut after i did that, i realized the method only contained a single line for the POST14:01
lbragstadwhich probably doesn't make much sense14:01
dansmithI guess I'm not sure why they should be separate at all14:02
lbragstadyeah - i don't think they need to be 14:02
lbragstadi thought it was something to try initially, but in doing so i don't think it useful or necessary 14:03
dansmithack, just looking through the others real quick14:03
lbragstadthe main thing i wanted to do was to remove the duplicated method from every file14:03
dansmithfor sure14:04
lbragstadand separating create_namespace into a method for creation and a method for assertions was probably a step too far14:04
dansmithwell, and in the last patch, you define _headers on the test base and not the thing with the POST helper14:04
dansmithwhich seems contradictory :)14:04
lbragstadyeah - exactly 14:05
dansmithokay, let me pull these down and squash that bit together and then I'll ninja them all14:05
lbragstaddansmith thank you, i've been meaning to get back to those, but i've been in a fist-fight was tripleo all week 14:06
lbragstadi appreciate the help 14:06
dansmithhah14:06
dansmithI don't envy that position14:06
opendevreviewDan Smith proposed openstack/glance master: Remove duplicate namespace utilities in functional tests  https://review.opendev.org/c/openstack/glance/+/80677514:11
opendevreviewDan Smith proposed openstack/glance master: Move global constants to test module setUp  https://review.opendev.org/c/openstack/glance/+/80677914:11
opendevreviewDan Smith proposed openstack/glance master: Remove duplicate _url() methods from functional test classes  https://review.opendev.org/c/openstack/glance/+/80679714:11
opendevreviewDan Smith proposed openstack/glance master: Remove duplicate _header() implementations in metadef tests  https://review.opendev.org/c/openstack/glance/+/80680114:11
dansmithninja'd thusly14:13
opendevreviewOpenStack Release Bot proposed openstack/glance_store stable/xena: Update .gitreview for stable/xena  https://review.opendev.org/c/openstack/glance_store/+/80825714:32
opendevreviewOpenStack Release Bot proposed openstack/glance_store stable/xena: Update TOX_CONSTRAINTS_FILE for stable/xena  https://review.opendev.org/c/openstack/glance_store/+/80825914:32
opendevreviewOpenStack Release Bot proposed openstack/glance_store master: Update master for stable/xena  https://review.opendev.org/c/openstack/glance_store/+/80826114:32
opendevreviewOpenStack Release Bot proposed openstack/glance_store master: Add Python3 yoga unit tests  https://review.opendev.org/c/openstack/glance_store/+/80826514:32
opendevreviewOpenStack Release Bot proposed openstack/python-glanceclient stable/xena: Update .gitreview for stable/xena  https://review.opendev.org/c/openstack/python-glanceclient/+/80830614:33
opendevreviewOpenStack Release Bot proposed openstack/python-glanceclient stable/xena: Update TOX_CONSTRAINTS_FILE for stable/xena  https://review.opendev.org/c/openstack/python-glanceclient/+/80830714:33
opendevreviewOpenStack Release Bot proposed openstack/python-glanceclient master: Update master for stable/xena  https://review.opendev.org/c/openstack/python-glanceclient/+/80830914:33
opendevreviewOpenStack Release Bot proposed openstack/python-glanceclient master: Add Python3 yoga unit tests  https://review.opendev.org/c/openstack/python-glanceclient/+/80831114:33
opendevreviewErno Kuvaja proposed openstack/glance master: Fixed image_format typo in doc  https://review.opendev.org/c/openstack/glance/+/80641414:49
opendevreviewMerged openstack/glance master: Make signature verification go back to 'queued'  https://review.opendev.org/c/openstack/glance/+/80793216:26
opendevreviewMerged openstack/glance master: Remove duplicate namespace utilities in functional tests  https://review.opendev.org/c/openstack/glance/+/80677516:26
opendevreviewMerged openstack/glance master: Move global constants to test module setUp  https://review.opendev.org/c/openstack/glance/+/80677916:26
opendevreviewMerged openstack/glance master: Remove duplicate _url() methods from functional test classes  https://review.opendev.org/c/openstack/glance/+/80679716:26
opendevreviewMerged openstack/glance master: Remove duplicate _header() implementations in metadef tests  https://review.opendev.org/c/openstack/glance/+/80680116:26
opendevreviewMerged openstack/glance stable/ussuri: Revert "Remove all usage of keystoneclient"  https://review.opendev.org/c/openstack/glance/+/80010318:11
opendevreviewMerged openstack/glance master: Fixed image_format typo in doc  https://review.opendev.org/c/openstack/glance/+/80641418:12
gmanndansmith: I am seeing a failure where 'member' role is not able to update the image member https://storyboard.openstack.org/#!/story/200921018:56
gmanndansmith: is it something to do with https://review.opendev.org/c/openstack/glance/+/796066 ?18:57
dansmithgmann: not directly, but potentially that whole refactor.. is this on a new proposed patch or existing tempest?18:58
gmanndansmith: it is in patrole tests. 19:02
dansmithgmann: with rbac turned on?19:02
gmannexisting patrole tests which were passing before19:02
gmanndansmith: no, with legacy rbac19:02
dansmithgmann: can you point me at the test?19:03
dansmiththe refactored policy is definitely tighter/more-correct than it was before, so possible the test is wrong19:03
gmannhttps://github.com/openstack/patrole/blob/master/patrole_tempest_plugin/tests/api/image/test_images_member_rbac.py#L9319:04
gmannit is simple test to update member on image with configured role in different job-  admin, member, reader19:04
dansmithyeah, but still19:05
dansmithit's failing in the "override role" thing right? what does that change?19:05
gmannyeah in override role. that (in member role job) basically check 1. policy directly with member role in oslo.policy 2. run tests with member role. former is passing policy but later fail in tests with 403 19:06
dansmithgmann: what I'm asking is what is the difference between L103 and L108? admin first, then member?19:07
dansmiththere was a bug before (I think) that allowed the owner of the image to update the member status, which isn't supposed to be allowed or something, only the recipient of the share is allowed to do that19:08
gmanndansmith: L103 is always admin role19:08
dansmithright, okay19:08
dansmithgmann: so the test should be:19:08
dansmith1. create image with tenant1, shared19:09
dansmith2. as tenant1 (owner), add tenant2 to members list19:09
dansmith3. As tenant2, change status between pending and accepted19:09
dansmithtenant1 cannot do that (but admin always can I think)19:09
gmannok, I think that what we tests in tempest https://github.com/openstack/tempest/blob/master/tempest/api/image/v2/test_images_member_negative.py#L3619:09
dansmithso I think that test is wrong, and the code before was letting it do it but shouldn't have19:09
gmannand that is changed recently right ?19:10
gmanni mean fixed19:10
gmannin glance19:10
gmannok19:10
dansmithyes19:10
dansmithlet me see if I can find any discussion to link you to19:10
dansmithgmann: https://review.opendev.org/c/openstack/glance/+/802996/8/glance/tests/functional/v2/test_member_api_policy.py#13519:12
dansmiththat's not super clear because I think it took some irc discussion for me to realize what was going on, but that's kinda where we noted that it needed to be different in our own tests19:13
dansmithgmann: yes, that tempest test is exactly right.. the owner can't change accept status, only the person the image is shared *with*19:13
gmanndansmith: ok, but tempest test was passing with forbidden even before glance recent change ?19:15
dansmithgmann: yeah, not sure why patrole would be tickling something different, but maybe because it was using admin?19:15
gmannhumm yeah may be, it change the role to admin before override thing. 19:16
gmannthanks for clarity. it explain the things now. let me fix the patrole test19:19
dansmithcool :)19:19
opendevreviewMerged openstack/python-glanceclient stable/xena: Update .gitreview for stable/xena  https://review.opendev.org/c/openstack/python-glanceclient/+/80830619:41
opendevreviewMerged openstack/python-glanceclient stable/xena: Update TOX_CONSTRAINTS_FILE for stable/xena  https://review.opendev.org/c/openstack/python-glanceclient/+/80830719:41
opendevreviewMerged openstack/python-glanceclient master: Update master for stable/xena  https://review.opendev.org/c/openstack/python-glanceclient/+/80830919:41
opendevreviewMerged openstack/glance_store stable/xena: Update .gitreview for stable/xena  https://review.opendev.org/c/openstack/glance_store/+/80825719:42
opendevreviewMerged openstack/glance_store stable/xena: Update TOX_CONSTRAINTS_FILE for stable/xena  https://review.opendev.org/c/openstack/glance_store/+/80825919:42
opendevreviewMerged openstack/glance_store master: Update master for stable/xena  https://review.opendev.org/c/openstack/glance_store/+/80826119:48
opendevreviewMerged openstack/glance_store master: Add Python3 yoga unit tests  https://review.opendev.org/c/openstack/glance_store/+/80826520:54
opendevreviewMerged openstack/glance stable/wallaby: Fix image/tasks API for in-progress tasks  https://review.opendev.org/c/openstack/glance/+/78542021:20

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