Thursday, 2017-08-24

* SamYaple sighs00:46
SamYaplethe logic in grant role is a bit foobar00:46
SamYaplehttps://github.com/openstack-infra/shade/blob/master/shade/operatorcloud.py#L1675 is inaccurate00:47
SamYapleyou can be granted a role in a domain without belonging to that domain00:47
SamYaplemordred: im not sure if this would be a change in shade behaviour to fix it00:51
SamYaplebasically granting a user or group a role to a domain if the user or group is not in that domain fails00:52
*** rods has quit IRC01:36
*** thrash is now known as thrash|g0ne02:09
openstackgerritSam Yaple proposed openstack-infra/shade master: Fix user role grants  https://review.openstack.org/49698002:28
SamYaplemordred ^ that definetly changes behaviour, but the previous behaviour was wrong and broken02:28
openstackgerritSam Yaple proposed openstack-infra/shade master: Allow domain_id for roles  https://review.openstack.org/49699202:53
openstackgerritSam Yaple proposed openstack-infra/shade master: Allow domain_id for roles  https://review.openstack.org/49699203:00
*** gkadam has joined #openstack-shade03:24
*** gouthamr has quit IRC05:13
*** rods has joined #openstack-shade06:29
*** slaweq has joined #openstack-shade06:32
*** gkadam_ has joined #openstack-shade07:40
*** gkadam has quit IRC07:42
*** gkadam_ has quit IRC07:45
*** rods has quit IRC07:58
*** rods has joined #openstack-shade07:58
*** rods has quit IRC07:59
*** rods has joined #openstack-shade07:59
*** rods has quit IRC07:59
*** rods has joined #openstack-shade08:00
*** rods has quit IRC08:00
*** rods has joined #openstack-shade08:01
*** rods has quit IRC08:01
*** rods has joined #openstack-shade08:02
*** rods has quit IRC08:02
*** rods has joined #openstack-shade08:02
*** rods has quit IRC08:03
*** rods has joined #openstack-shade08:03
*** rods has quit IRC08:07
*** spredzy has quit IRC08:36
*** rods has joined #openstack-shade09:00
*** slaweq has quit IRC09:11
*** slaweq has joined #openstack-shade09:12
*** spredzy has joined #openstack-shade09:16
*** slaweq has quit IRC09:16
openstackgerritSamuel de Medeiros Queiroz proposed openstack-infra/shade master: De-client-ify Service Update  https://review.openstack.org/48219609:18
openstackgerritSamuel de Medeiros Queiroz proposed openstack-infra/shade master: De-client-ify Service Delete  https://review.openstack.org/48219709:30
openstackgerritSamuel de Medeiros Queiroz proposed openstack-infra/shade master: Switch to _is_client_version in list_services  https://review.openstack.org/49717109:34
*** slaweq has joined #openstack-shade09:59
*** ioggstream has joined #openstack-shade10:04
*** thrash|g0ne is now known as thrash11:08
*** ioggstream has quit IRC11:18
*** rods has quit IRC11:25
*** ioggstream has joined #openstack-shade12:03
*** rods_ has joined #openstack-shade12:11
*** rods_ has quit IRC12:12
*** rods_ has joined #openstack-shade12:19
*** gouthamr has joined #openstack-shade13:27
*** rods_ has quit IRC13:36
*** rods has joined #openstack-shade13:37
*** slaweq has quit IRC14:29
SamYapleinstead of adding several new *_id paramaters everywhere, how about a new param named 'ids' that would be a dict we could query?15:04
openstackgerritSam Yaple proposed openstack-infra/shade master: Allow domain_id for roles  https://review.openstack.org/49699215:26
openstackgerritSam Yaple proposed openstack-infra/shade master: Fix user role grants  https://review.openstack.org/49698015:26
openstackgerritSam Yaple proposed openstack-infra/shade master: Allow domain_id for roles  https://review.openstack.org/49699215:33
openstackgerritSam Yaple proposed openstack-infra/shade master: Fix user role grants  https://review.openstack.org/49698015:33
*** openstackgerrit has quit IRC16:04
*** ioggstream has quit IRC16:23
*** thrash is now known as thrash|biab16:31
*** openstackgerrit has joined #openstack-shade16:36
openstackgerritSam Yaple proposed openstack-infra/shade master: Support domain_id for user operations  https://review.openstack.org/49748316:36
openstackgerritSam Yaple proposed openstack-infra/shade master: Support domain_id for user operations  https://review.openstack.org/49748316:38
openstackgerritSam Yaple proposed openstack-infra/shade master: Support domain_id for user operations  https://review.openstack.org/49748316:51
mordredSamYaple: sorry I've been absent today - I'll be around better tomorrow16:52
mordredSamYaple: there is a thought I want to put in your head whileyou're looking at that stuff ...16:52
mordredSamYaple: we had an idea a little while ago about making a context manager or something like that which would be "do this operation in the context of this other project/domain"16:53
mordredSamYaple: so thatyou could do with cloud.in_project('other-project') as cloud_other_project: cloud_other_project.create_network('foo')16:54
mordredSamYaple: it's not the same as what your'e doing now - because there's ALSO obviously some things that specifically take domian/project arguments16:54
mordredbut for some resources project/domain is tied to what you've authed to and the admin usage of making one in a different project gets wonky from shade16:55
mordredSamYaple: mostly mentioning it if, while you're touching any of this you have an aha and are like "oh, that would solve all my problems in XXX way"16:55
SamYaplemordred: ill have to mull over a context manager16:55
SamYaplei was playing with a patch that added an 'ids' argument to basically all the functions that could be referened for ids of things16:56
mordredSamYaple: my simplistic thinking was that it would essentially give you a new OpenStackCloud object based on the current one but with project_id/domain_id overridden16:56
SamYapleright now i just need to get some minimum functionality done (like domain_id support in *_user functions16:56
SamYaple)16:56
mordred++16:56
mordredI'll look at those patches either tomorrow or today on the plane16:56
mordredthanks for working on those btw16:56
SamYapleno problem. the shade salt modules for keystone are almost done, but this is holding it up16:57
mordredwoot16:57
SamYapleim hoping to get the patches for shade done and maybe merged this week16:57
SamYapledo you have an idea of when a new shade version might be cut?16:57
mordredI was just thinking this morning that I need to get a new one cut16:58
SamYapleok let me double time these patches because i want them in16:58
mordredSamYaple: no rush - I'll cut one whenever we get them in - you're the only one with a specific pressing need16:58
SamYapleright now the place im working is..... using salt modules (written in python) to wrap the openstack cli.....16:59
SamYapleit hurts to type that16:59
SamYaplemordred: this patch is most important for your attention, it changes the behaviour of shade. granted its changed to the correct way but still https://review.openstack.org/#/c/496980/17:04
*** slaweq has joined #openstack-shade17:06
slaweqmordred: hello17:14
slaweqmordred: yesterday I made patch for cleaning cinder volumes: https://review.openstack.org/#/c/496939/117:14
slaweqI rechecked it few times and it didn't fails on cinder tests17:15
slaweqso maybe it will help little bit17:15
slaweqplease take a look on it if You will have a while17:15
openstackgerritSam Yaple proposed openstack-infra/shade master: Support domain_id for user operations  https://review.openstack.org/49748317:20
*** thrash|biab is now known as thrash17:22
mordredslaweq: awesome - looks great!17:29
slaweqmordred: thx17:30
mordredSamYaple: the domain argument for grant_role / revoke_role wasn't working because you potentially need different domains foruser, project and group - am I understanding you right?17:32
SamYaplemordred: yes17:35
SamYaplealso, a user or group can be granted a role for a domain (no project involed)17:36
SamYaplewhy do we not take advantage of the keystone filter options that are available, instead we opt to do filtering in shade itself after retrieving a full list of data?17:52
mordrednod. just maing sure I grokked the issue18:00
openstackgerritSam Yaple proposed openstack-infra/shade master: Add domain_id to groups  https://review.openstack.org/49753718:04
*** olaph has joined #openstack-shade18:38
*** olaph1 has quit IRC18:40
*** rods has quit IRC19:33
*** gouthamr has quit IRC20:01
*** gouthamr has joined #openstack-shade20:05
openstackgerritSam Yaple proposed openstack-infra/shade master: Make endpoint id an optional paramater  https://review.openstack.org/49760120:20
*** gouthamr has quit IRC20:22
openstackgerritMerged openstack-infra/shade master: Fix cleaning of Cinder volumes in functional tests  https://review.openstack.org/49693920:27
*** slaweq has quit IRC20:47
*** slaweq has joined #openstack-shade20:59
*** gouthamr has joined #openstack-shade21:05
*** rods has joined #openstack-shade21:13
*** slaweq has quit IRC21:52
*** thrash is now known as thrash|g0ne21:57

Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!