Wednesday, 2021-08-11

opendevreviewMerged openstack/glance_store master: Doc: Use Block Storage API v3  https://review.opendev.org/c/openstack/glance_store/+/80215305:34
*** bhagyashris_ is now known as bhagyashris05:39
opendevreviewAbhishek Kekane proposed openstack/glance master: Move metadef object policy checks in the API  https://review.opendev.org/c/openstack/glance/+/79963406:07
opendevreviewAbhishek Kekane proposed openstack/glance master: Move metadef resource type association policy checks in the API  https://review.opendev.org/c/openstack/glance/+/79963706:58
opendevreviewAbhishek Kekane proposed openstack/glance master: Move metadef property policy checks in the API  https://review.opendev.org/c/openstack/glance/+/79963507:18
opendevreviewAbhishek Kekane proposed openstack/glance master: Move metadef tag policy checks in the API  https://review.opendev.org/c/openstack/glance/+/79963607:58
opendevreviewAbhishek Kekane proposed openstack/glance master: Refactor gateway auth layer for member APIs  https://review.opendev.org/c/openstack/glance/+/80252509:11
opendevreviewAbhishek Kekane proposed openstack/glance master: Move member policy checks to API layer  https://review.opendev.org/c/openstack/glance/+/80299609:11
opendevreviewAbhishek Kekane proposed openstack/glance master: Refactor gateway auth layer for task APIs  https://review.opendev.org/c/openstack/glance/+/80224309:28
opendevreviewAbhishek Kekane proposed openstack/glance master: Deprecate task specific policies  https://review.opendev.org/c/openstack/glance/+/80224409:28
opendevreviewAbhishek Kekane proposed openstack/glance master: Move Tasks policy checks in the API  https://review.opendev.org/c/openstack/glance/+/80224509:28
opendevreviewMerged openstack/glance_store master: swift: Take into account swift_store_endpoint  https://review.opendev.org/c/openstack/glance_store/+/77661110:11
*** abhishekk is now known as akekane|home13:44
*** akekane|home is now known as abhishekk13:44
abhishekk@all cores, I have 10 patches which are in nice shape (hopefully), kindly review13:48
abhishekkhttps://review.opendev.org/q/topic:%2522policy-refactor%2522+(status:open)13:49
dansmithabhishekk: This https://review.opendev.org/c/openstack/glance/+/799634/17/glance/tests/functional/v2/test_metadef_object_api_policy.py line 209...14:00
abhishekklooking14:00
dansmiththat does what we want, but I'm not sure why.. where does get_metadef_namespace get checked if we got the repo with auth_layer=False ?14:01
abhishekkdansmith, same will be case for delete as well14:04
dansmithright, but you're saying that disabling get_metadef_namespace policy will cause the check on L192 here https://review.opendev.org/c/openstack/glance/+/799634/17/glance/api/v2/metadef_objects.py to fail right?14:04
abhishekkhttps://review.opendev.org/c/openstack/glance/+/799634/17/glance/api/v2/policy.py14:06
abhishekkline #17814:06
dansmithah, right okay, so your get is not failing (which means no test coverage for L67 in metadef_objects.py), you just get the repo to pass to the policy check, which then checks get_ if the update_ check fails14:08
dansmithso can we add a test to make sure that if the get fails we get the right notfound as well?14:08
dansmithL67 here: https://review.opendev.org/c/openstack/glance/+/799634/17/glance/api/v2/metadef_objects.py14:08
abhishekklooking14:09
abhishekkack14:10
dansmithdo you want to do that in a separate patch or just rev this real quick?14:10
dansmithunless someone is going to +W this right now, it's probably quicker to rev this, but that's my only concern and can +2 if you're going to do it separately14:10
abhishekkI think I will do it in same patch, and need to replicate the same in other patches as well14:11
dansmithokay14:11
abhishekkComment on the patch and vote -1 there 14:11
dansmithokay14:11
abhishekkalso I think same is needed in namespace patch as well14:11
abhishekkYou can then shift focus to tasks and members patches :D14:12
abhishekkBut other than that its good right?14:13
dansmithyup!14:13
abhishekkcool14:15
abhishekkwill add your comment as a note as well14:16
dansmithack14:16
abhishekkNote to other reviewers, this causes our "check get if modify fails" logic to return 404 as we expect, but not related to the latest rev that checks the namespace get operation first.14:16
abhishekkthis one14:16
dansmithcool14:18
dansmithabhishekk: This is exactly the same pattern as several others,  think I can probably ninja this unless you'd rather get someone else to look: https://review.opendev.org/c/openstack/glance/+/80252514:18
abhishekkcroelandt, has already given +2 on previous patch and after that I have just rebased it, so I think good to go14:19
dansmithah yeah, cool14:20
abhishekkdansmith, just confirming one more time, new test needed for getting non-existing namespace which will return 404 right 14:26
dansmithnot non-existing, because that will raise on its own,14:27
dansmithbut you catch forbidden from ns_repo.get() and translate to NotFound, but you don't test that (AFAICT)14:27
abhishekkack14:29
opendevreviewAbhishek Kekane proposed openstack/glance master: Move metadef namespace policy checks in the API  https://review.opendev.org/c/openstack/glance/+/79963315:20
abhishekkdansmith, please have a look at test (sorry to distract you)15:21
opendevreviewMerged openstack/glance master: Refactor gateway auth layer for member APIs  https://review.opendev.org/c/openstack/glance/+/80252515:37
opendevreviewAbhishek Kekane proposed openstack/glance master: Move metadef object policy checks in the API  https://review.opendev.org/c/openstack/glance/+/79963415:51
* abhishekk going for dinner15:51
opendevreviewAbhishek Kekane proposed openstack/glance master: Move metadef resource type association policy checks in the API  https://review.opendev.org/c/openstack/glance/+/79963716:06
* abhishekk now going for dinner16:06
* abhishekk back16:43
abhishekkdansmith, do you have any specific questions on member related stuff ?16:48
dansmithabhishekk: just the ones I left in the patch16:49
dansmithtrying to finish the top metadef one now16:49
abhishekkack, added answer their, take your time16:50
abhishekkcroelandt, if around could you please have a look as well ?16:51
opendevreviewAbhishek Kekane proposed openstack/glance master: Move metadef property policy checks in the API  https://review.opendev.org/c/openstack/glance/+/79963516:51
* dansmith is so sick of metadef17:02
abhishekkwelcome to the club17:08
dansmithI don't like your club and would like to leave.17:09
abhishekkwe should leave together :P17:10
opendevreviewAbhishek Kekane proposed openstack/glance master: Move metadef tag policy checks in the API  https://review.opendev.org/c/openstack/glance/+/79963617:10
dansmithUnion of Concerned Developers for the Removal of Metadefs17:11
abhishekkhaha17:12
opendevreviewAbhishek Kekane proposed openstack/glance master: Refactor gateway auth layer for task APIs  https://review.opendev.org/c/openstack/glance/+/80224317:42
opendevreviewAbhishek Kekane proposed openstack/glance master: Deprecate task specific policies  https://review.opendev.org/c/openstack/glance/+/80224417:42
opendevreviewAbhishek Kekane proposed openstack/glance master: Move Tasks policy checks in the API  https://review.opendev.org/c/openstack/glance/+/80224517:42
croelandtno one uses metadefs anyway18:01
croelandtwe realized that when abhishekk saw that commands were missing in the client :D18:01
abhishekkthere are more problems in it than I have highlighted :D18:02
abhishekkthis is one more example, https://bugs.launchpad.net/glance/+bug/193916918:03
croelandtI say we remove the feature and see if anyone complains18:05
abhishekk:D18:07
croelandtWhat's the performance cost of creating a MetadefAPIPolicy object?18:11
abhishekkI don;t think it will hamper much18:15
croelandtyeah 18:16
croelandtwe could have avoided a few object creations in https://review.opendev.org/c/openstack/glance/+/799633/ but well, it's not our most pressing issue right now :D18:16
abhishekkbut I see what you trying to point out18:16
abhishekkAdd a comment there18:16
abhishekkI think I will push a final revision for all patches by tomorrow 18:17
croelandtoh if you think you're gonna need one more patchset then18:18
abhishekkI think its better to get it right rather than pushing followups18:19
croelandtDo we have a list of reviews we want to merge before M3? I think you had a giant spreadsheet18:21
* croelandt is trying to figure out when to go on PTO18:21
abhishekkyes, that spreadsheet contains all important patches18:21
abhishekkOr we (probably someone other than me) could create custom review dashboard18:22
croelandtdo you have the link to the spreadsheet?18:23
abhishekkyep18:25
abhishekkhttps://docs.google.com/spreadsheets/d/1SWBq0CsHw8jofHxmOG8QeZEX6veDE4eU0QHItOu8uQs/edit?pli=1#gid=018:25
abhishekkI think we need a plan here18:26
abhishekkthis week we should get metadef stuff merged (or till monday as Friday will be holiday for most of all)18:27
abhishekkThen next week we should target members/tasks and remaining open image related actions18:27
opendevreviewAbhishek Kekane proposed openstack/glance master: Move metadef namespace policy checks in the API  https://review.opendev.org/c/openstack/glance/+/79963319:03
abhishekkdansmith, croelandt I think I have addressed all comments here19:03
dansmithabhishekk: just replied here: https://review.opendev.org/c/openstack/glance/+/79963719:04
abhishekkdansmith, ack, going to revert it19:05
dansmithokay, also failed zuul.. unrelated?19:05
dansmithyeah, cinder dance :/19:06
abhishekkyes19:06
abhishekkpurposely not added recheck as going to submit new revision19:07
dansmithokay19:07
abhishekkdansmith, do you think I should remove nested try from here as well ?19:09
abhishekkhttps://review.opendev.org/c/openstack/glance/+/799634/18/glance/api/v2/metadef_objects.py19:09
abhishekkI am ok to restructure it19:09
dansmithno, unless there's a problem let's just move on19:09
abhishekkno problem, but I think we should keep consistent pattern everywhere19:11
dansmithyup .. up to you19:11
dansmithrestructure later would be easier just to avoid the churn in this patch.. it has changed so much that delta between PS N and M is a lot19:12
abhishekkack, thanks19:12
opendevreviewAbhishek Kekane proposed openstack/glance master: Move metadef object policy checks in the API  https://review.opendev.org/c/openstack/glance/+/79963419:37
opendevreviewAbhishek Kekane proposed openstack/glance master: Move metadef resource type association policy checks in the API  https://review.opendev.org/c/openstack/glance/+/79963719:37
opendevreviewAbhishek Kekane proposed openstack/glance master: Move metadef property policy checks in the API  https://review.opendev.org/c/openstack/glance/+/79963519:48
opendevreviewAbhishek Kekane proposed openstack/glance master: Move metadef tag policy checks in the API  https://review.opendev.org/c/openstack/glance/+/79963620:02
abhishekkGlance Xena 3 review dashboard - https://tinyurl.com/glance-xena-320:37
abhishekkcroelandt, ^^20:37
* abhishekk signing out for the day20:37
opendevreviewMerged openstack/glance master: Move metadef namespace policy checks in the API  https://review.opendev.org/c/openstack/glance/+/79963322:13

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