Wednesday, 2021-06-30

opendevreviewPranali Deore proposed openstack/glance master: WIP Implement secure rbac for metadef namespaces  https://review.opendev.org/c/openstack/glance/+/79870005:36
abhishekkdansmith, around?14:18
dansmithabhishekk: yeah14:29
abhishekkdansmith, I added this question in commit message also, how we are going to flip authorization flag ?14:32
dansmithwell,14:32
dansmithI was thinking we'd do it like I currently do, which is underneath a stack of code that has been converted14:32
abhishekkI am thinking of writing separate litespec for this change 14:33
dansmithokay14:33
dansmithI'm not sure why your patch to flip all the tests to defaults doesn't fail a bunch of tests14:33
dansmithbecause I would expect a lot of the tests I had to fix for the new defaults to potentially be broken with the old ones14:34
abhishekkhmm, I think I have fixed around 32 tests which were failing14:35
abhishekkfor example, publicize_image is admin only action and in yaml file it was open for all14:36
dansmithyeah, I saw you fixed some, but I expected more14:36
dansmithmaybe more default to admin or something14:36
dansmithI guess a lot of the fails were around member/reader changes so maybe that's why I was thinking there would be more14:36
abhishekkhmm, I haven't made any changes related to reader role14:37
abhishekkand all our tests still refers to legacy policies and not rbac 14:37
dansmithright I mean _my_ patches were doing the member->reader thing14:38
abhishekkhmm and my patch is not on top of your patches14:38
dansmithright, I'm not saying something is wrong, I'm saying I think that's why I was expecting more fail than you had to fix14:39
abhishekkyeah, me too14:39
dansmithokay :)14:39
dansmithso what is the plan to be testing the new defaults? we kinda need a new glance-functional job that runs with the default flipped to rbac or something14:39
abhishekkearlier I was thinking of removing .yaml from repo which resulted in failing around 70% tests14:39
abhishekkso I took this shortcut14:40
dansmithlike the rbac tempest job14:40
abhishekkI think that will be much better14:40
dansmithokay, so non-voting, and iterate until both functional jobs pass?14:40
abhishekkcorrect14:40
dansmithokay, let me play with that on top of this patch of yours14:41
abhishekkgreat14:41
abhishekkI will ping you if I have any questions while writing lite spec14:42
abhishekkI will do it mostly tomorrow after meeting though14:42
dansmithokay14:42
abhishekkcool, thank you14:43
dansmithokay, 50% of test_images fails in that mode15:04
abhishekk:D15:06
dansmithgmann: can I set an envar in a zuul job def, or do I need to create a new tox env with setenv?15:08
gmanndansmith: abhishekk yeah that is what I am also planning in Temepst side. during migrating the tempest tests to new rbac add a n-v job with new rbac enable on service side15:23
dansmithgmann: cool15:23
gmanndansmith: we can add that in job definition only. I have few patches up for those but need to merge those, let me check15:23
abhishekkack15:23
gmanndansmith: abhishekk this is what i started https://review.opendev.org/c/openstack/devstack/+/77894515:24
gmannother services https://review.opendev.org/q/topic:%2522secure-rbac%2522+(status:open+OR+status:merged)+project:openstack/devstack+owner:gmann%2540ghanshyammann.com15:24
dansmithgmann: okay but I'm asking about functional, where I just need to set an envar in a jobdef15:25
gmannI need to debug on keystone patch first and then we can merge the service side things15:25
gmanndansmith: ohk15:25
dansmithwhat I started is a job def with new tox env, which does setenv= in tox.ini.. is that the way?15:25
gmannyou can create the separate tox env which can help to run locally also.15:25
gmannyeah, like we do for api-ref env in nova15:26
gmannapi-sample i think15:26
dansmithack15:26
gmannhttps://github.com/openstack/nova/blob/master/tox.ini#L14015:26
dansmithyeah was just hoping I could use passenv instead of setenv and a new target, but no worries, almost done15:28
opendevreviewDan Smith proposed openstack/glance master: Add a nonvoting functional job with RBAC defaults  https://review.opendev.org/c/openstack/glance/+/79892215:40
dansmithabhishekk: ^15:40
abhishekkdansmith, ack, will have a look15:40
abhishekkperfect15:50
dansmithabhishekk: so we should probably get that merged so we can iterate on separate tests16:03
abhishekkSo I need to modify my test patch 1st16:04
dansmithyup16:04
abhishekkAck, will do it after dinner break16:04
abhishekkwait, there is just spelling mistake, right?16:05
dansmiththere are two, one in the commit message and one in the policy file16:06
abhishekkyeah, will just do it online before going for dinner16:06
dansmithokay16:06
abhishekkcould you please create this blueprint in LP, policy-tests-refactoring ?16:07
dansmithabhishekk: I thought that was the name of yours16:09
dansmithbecause of the topic of your patch underneath16:09
dansmithI don't think we need a bp for it, I just thought this was supposed to line up with your lite spec and topic :)16:10
abhishekkAck, I guess we link it to policy-refactor BP then16:10
dansmithyeah, was just going to say16:10
dansmithcan you fix when you update the patch below? else I will after you do16:10
abhishekkwill do it, hopefully it will work from browser editing16:11
opendevreviewAbhishek Kekane proposed openstack/glance master: Use default policies in our tests  https://review.opendev.org/c/openstack/glance/+/79838116:12
opendevreviewAbhishek Kekane proposed openstack/glance master: Add a nonvoting functional job with RBAC defaults  https://review.opendev.org/c/openstack/glance/+/79892216:13
opendevreviewAbhishek Kekane proposed openstack/glance master: Add a nonvoting functional job with RBAC defaults  https://review.opendev.org/c/openstack/glance/+/79892216:14
dansmithwill wait for the test run on yours before voting16:14
opendevreviewAbhishek Kekane proposed openstack/glance master: Add a nonvoting functional job with RBAC defaults  https://review.opendev.org/c/openstack/glance/+/79892216:14
abhishekkdansmith, ack16:14
* abhishekk going for dinner16:14
opendevreviewDan Smith proposed openstack/glance master: Add a nonvoting functional job with RBAC defaults  https://review.opendev.org/c/openstack/glance/+/79892217:47
abhishekkwe need to pursue someone to approve test refactor patch17:53
dansmithhow come steap is never in upstream irc?17:55
abhishekkHe use to be there, but don't know what happens lately17:55
abhishekkjokke_, rosmaita when you have some time, kindly have a look https://review.opendev.org/c/openstack/glance/+/79838118:27
rosmaitaack18:27
dansmithrosmaita: and when budgeting time, know that it's just a test refactor which is pretty quick to review18:29
dansmithalong with the job def patch above it18:29
rosmaitaok, thanks18:29
* abhishekk signing out for the day18:46
opendevreviewMerged openstack/glance master: Enforce keystone limits for image upload  https://review.opendev.org/c/openstack/glance/+/78805521:34

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