Monday, 2021-07-26

opendevreviewCyril Roelandt proposed openstack/glance stable/ussuri: Add housekeeping module and staging cleaner  https://review.opendev.org/c/openstack/glance/+/78555200:16
opendevreviewRajat Dhasmana proposed openstack/glance_store master: Glance cinder nfs: Block creating qcow2 volumes  https://review.opendev.org/c/openstack/glance_store/+/79657706:46
opendevreviewRajat Dhasmana proposed openstack/glance_store master: WIP: Add multiattach handling  https://review.opendev.org/c/openstack/glance_store/+/78641006:47
opendevreviewAbhishek Kekane proposed openstack/glance master: Refactor gateway auth layer for task APIs  https://review.opendev.org/c/openstack/glance/+/80224309:12
opendevreviewAbhishek Kekane proposed openstack/glance master: Deprecate tasks_api_access policy  https://review.opendev.org/c/openstack/glance/+/80224409:12
opendevreviewAbhishek Kekane proposed openstack/glance master: Move Tasks policy checks in the API  https://review.opendev.org/c/openstack/glance/+/80224509:12
opendevreviewPranali Deore proposed openstack/glance master: Implement project personas for metadef resource-types  https://review.opendev.org/c/openstack/glance/+/79967110:16
opendevreviewPranali Deore proposed openstack/glance master: Implement project personas for metadef objects  https://review.opendev.org/c/openstack/glance/+/80205410:16
opendevreviewPranali Deore proposed openstack/glance master: Implement project personas for metadef properties  https://review.opendev.org/c/openstack/glance/+/80205510:16
opendevreviewPranali Deore proposed openstack/glance master: Implement project personas for metadef tags  https://review.opendev.org/c/openstack/glance/+/80205610:16
opendevreviewPranali Deore proposed openstack/glance-tempest-plugin master: Implement API protection testing for metadef namespaces  https://review.opendev.org/c/openstack/glance-tempest-plugin/+/80090210:34
diablo_rojoAs you might have seen on the ML, there was discussion about collecting operator pain points for each project to focus on as a community goal. If you know what the top one or two issues are for glance operators are, please add them to this etherpad!https://etherpad.opendev.org/p/pain-point-elimination13:07
croelandthttps://github.com/openstack/glance/blob/master/glance/common/wsgi_app.py#L96 my Python foo is probably failing me here13:19
croelandtbut how is "glance" resolved?13:19
croelandtIf I comment out "import glance.async" it cannot be resolved any more13:20
croelandtis this "clean"?13:20
opendevreviewAbhishek Kekane proposed openstack/glance stable/ussuri: Add housekeeping module and staging cleaner  https://review.opendev.org/c/openstack/glance/+/78555213:53
opendevreviewCyril Roelandt proposed openstack/glance stable/ussuri: Add housekeeping module and staging cleaner  https://review.opendev.org/c/openstack/glance/+/78555213:54
abhishekkdansmith, kindly have a look if this is appropriate approach  Deprecate tasks_api_access policy  https://review.opendev.org/c/openstack/glance/+/80224414:03
dansmithabhishekk: you're planning to add fine-grained task policies in place of the blanket tasks_api_access?14:05
dansmithor,14:05
dansmithmake the ones like modify_task actually enforced at the api so we don't need the blanket api-specific thing...14:06
abhishekkWe don't have any API to update the task14:07
abhishekkso modify_task is useless I guess14:07
abhishekkI am hoping to have task specific policies to be actually enforced at API level14:08
dansmithokay I was just picking the one above14:08
dansmithI don't really know how you would use add_task either14:08
dansmithI'm mostly just asking what you plan to keep14:08
abhishekkI think we should keep task_api_access and deprecate others14:09
dansmithso it sounds like get_task and get_tasks will stay, enforced at the API layer, modify_task is useless, maybe add_task too(?) and then tasks_api_access can go away14:09
dansmithis that right?14:09
croelandtabhishekk: oops I overwrote your latest patchset on https://review.opendev.org/c/openstack/glance/+/785552/, but we had the same change, so it's okay :)14:10
abhishekkthere is command task-create which was used earlier to create tasks before image import is introduced14:10
croelandtoh wait no, my import is out ofo rder14:10
croelandtdamn14:10
abhishekkcroelandt, sorry, I should have checked with you earlier, thought you are not around14:10
dansmithabhishekk: and you can create a task with meaningful work to do?14:11
opendevreviewCyril Roelandt proposed openstack/glance stable/ussuri: Add housekeeping module and staging cleaner  https://review.opendev.org/c/openstack/glance/+/78555214:11
croelandtabhishekk: np :)14:11
abhishekkdansmith, anyways tasks API are deprecated since long, so we should keep only one policy for them14:11
dansmithabhishekk: okay well, that's what I'm asking.. why deprecate tasks_api_policy and keep the others?14:12
abhishekkyeah, will change it, initially I thought to keep task specific APIs to be in consistent with other APIs14:12
abhishekkbut sounds like those will be just duplicates and doing same things14:13
abhishekkwill modify the patch and make changes accordingly14:13
abhishekkcroelandt, if you are still around then you can have your closer looks on metadef policy refactor patches14:14
dansmithif the tasks api is deprecated anyway, when will it just be removed? or will it stay deprecated forever?14:14
abhishekkIt will stay deprecated forever I guess14:15
abhishekkMay be one fine day someone will work on that 14:15
abhishekkcroelandt, https://review.opendev.org/c/openstack/glance/+/801129/14:15
dansmithabhishekk: okay well, then a single policy item to access any of it seems like the easiest thing yeah14:16
abhishekkdansmith, ack, will do the changes, kindly comment on the patch14:16
dansmithsure14:16
abhishekknext I will be picking image-members14:17
dansmithokay14:19
dansmithabhishekk: on this: https://review.opendev.org/c/openstack/glance/+/796067/18/glance/api/v2/images.py#560 , I'm going to write a test for the marker thing and fix the Forbidden raise to raise NotFound for the future when policy is actually the thing that checks access, okay?14:19
abhishekkyep14:20
*** diablo_rojo is now known as Guest229814:38
dansmithabhishekk: shockingly removing that forbidden handler yielded no test fails :/14:54
abhishekkohh14:54
dansmithI mean, probably expected because it's dead code, I'm just saying...14:55
abhishekkyeah, that was I was going to say14:56
dansmithsomeone reading the glance code and thinking that's where we hit forbidden in the image show path would be confused14:56
dansmithbecause glance enforces these things inconsistently in like eight places14:56
dansmithso you have to guess which one is the right one :/14:56
abhishekkdon't call it inconsistency, its standard :D14:57
abhishekkEven I am getting confused when we suppose to have 403 and 404 based on our policies 14:58
dansmith"consistently inconsistent".. got it :)14:58
abhishekkthat's the word14:58
opendevreviewAbhishek Kekane proposed openstack/glance master: Deprecate task specific policies  https://review.opendev.org/c/openstack/glance/+/80224415:19
opendevreviewAbhishek Kekane proposed openstack/glance master: Move Tasks policy checks in the API  https://review.opendev.org/c/openstack/glance/+/80224515:19
dansmithabhishekk: the rbac test failure on my get_images patch is because this was now missing: https://review.opendev.org/c/openstack/glance/+/796067/1/glance/tests/etc/policy.yaml15:48
dansmithbecause you removed that and I rebased,15:49
dansmithbut it's good because I needed to fix the actual default anyway,15:49
dansmithwhich I'm doing in the next rev15:49
dansmithjust FYI15:49
abhishekkack15:49
abhishekkthe rules which you added in policy.yaml, got it15:50
dansmithright15:50
dansmithI just overrode it for the test to make it pass in that original rev and never went back to fix the actual defaults15:50
abhishekkack15:53
dansmithugh,16:40
abhishekkdansmith, I think I need to wait for member APIs as it is depending on images 16:40
dansmiththat change seems to be breaking tons of stuff for reasons I don't understand16:40
dansmithand I have another call coming up16:41
abhishekkdo you want me to have a look ?16:41
dansmithno, I'll keep going on it for a while longer, but will punt to you if I get stuck :)16:41
abhishekkack, I will be around for next couple of hours16:42
opendevreviewMerged openstack/glance master: Add base policy check module  https://review.opendev.org/c/openstack/glance/+/80112916:48
abhishekkimage member policies are more confusing :P17:53
abhishekkglance client don't have support for /v2/images/{image-id/members/{member-id} API18:19
dansmithlol18:29
dansmithphew, figured out my problem19:08
dansmithstupid f-strings19:08
abhishekk:D19:16
dansmithbut rebased on your api policy base and now more fails19:23
dansmithohh19:28
dansmithabhishekk: just noticed you removed self._target = ImageTarget(image) from the base19:29
dansmithwhy was that?19:29
abhishekkdansmith, metadef don't use image at all19:29
dansmithah okay19:29
abhishekkin order to set target for metadef we need namespace19:30
dansmithyeah19:30
opendevreviewDan Smith proposed openstack/glance master: Remove dead 403->404 code  https://review.opendev.org/c/openstack/glance/+/79969919:49
opendevreviewDan Smith proposed openstack/glance master: Refactor gateway get_repo auth layer  https://review.opendev.org/c/openstack/glance/+/78991319:49
opendevreviewDan Smith proposed openstack/glance master: Add api_patch() to SynchronousAPIBase  https://review.opendev.org/c/openstack/glance/+/80111919:49
opendevreviewDan Smith proposed openstack/glance master: Make image update check policy at API layer  https://review.opendev.org/c/openstack/glance/+/78991519:49
opendevreviewDan Smith proposed openstack/glance master: Check get_image(s) in the API  https://review.opendev.org/c/openstack/glance/+/79606719:49
opendevreviewDan Smith proposed openstack/glance master: POC: Add a member field to Image when appropriate  https://review.opendev.org/c/openstack/glance/+/79606619:49
opendevreviewDan Smith proposed openstack/glance master: POC: Check delete_image policy in the API  https://review.opendev.org/c/openstack/glance/+/79807319:49
opendevreviewDan Smith proposed openstack/glance master: POC: Check deactivate, reactivate policy in the API  https://review.opendev.org/c/openstack/glance/+/79826619:49
* abhishekk signing out for the day19:50
abhishekkdansmith, will look at the patches tomorrow19:50
dansmithack19:50
*** ChanServ changes topic to "OpenStack Glance | This channel is recorded logs at http://eavesdrop.openstack.org/irclogs/%23openstack-glance/"22:55

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