Wednesday, 2017-08-23

*** thrash is now known as thrash|g0ne00:40
*** gouthamr has joined #openstack-shade01:56
*** rods has quit IRC03:26
*** gkadam has joined #openstack-shade03:40
*** mrhillsman has quit IRC05:02
*** mordred has quit IRC05:02
*** dhellmann has quit IRC05:02
*** mrhillsman has joined #openstack-shade05:02
*** dhellmann has joined #openstack-shade05:03
*** mordred has joined #openstack-shade05:04
*** slaweq has joined #openstack-shade06:08
*** slaweq has quit IRC06:12
*** gouthamr has quit IRC06:47
*** rods has joined #openstack-shade07:42
*** rods has quit IRC07:42
*** rods has joined #openstack-shade07:44
*** rods has quit IRC07:44
*** rods has joined #openstack-shade07:45
*** rods has quit IRC07:45
*** rods has joined #openstack-shade07:45
*** rods has quit IRC07:46
*** rods has joined #openstack-shade07:46
*** rods has quit IRC07:46
*** rods has joined #openstack-shade07:47
*** rods has quit IRC07:47
*** rods has joined #openstack-shade07:48
*** rods has quit IRC07:48
*** rods has joined #openstack-shade07:49
*** rods has quit IRC07:49
*** rods has joined #openstack-shade07:49
*** rods has quit IRC07:50
*** rods has joined #openstack-shade07:50
*** rods has quit IRC07:50
*** rods has joined #openstack-shade07:51
*** rods has quit IRC07:51
*** rods has joined #openstack-shade07:52
*** rods has joined #openstack-shade07:53
*** rods has quit IRC07:53
*** ioggstream has joined #openstack-shade07:55
*** openstackgerrit has quit IRC08:03
*** slaweq has joined #openstack-shade08:32
*** mrhillsman has quit IRC08:51
*** mrhillsman has joined #openstack-shade08:52
*** rods has joined #openstack-shade09:20
*** rods has quit IRC09:25
*** thrash|g0ne is now known as thrash11:50
*** dtroyer has quit IRC12:23
*** dtroyer has joined #openstack-shade12:32
*** gkadam has quit IRC12:43
*** gouthamr has joined #openstack-shade13:46
*** gouthamr has quit IRC13:49
*** gouthamr has joined #openstack-shade13:49
*** rods has joined #openstack-shade14:44
*** slaweq has quit IRC14:50
*** openstackgerrit has joined #openstack-shade16:22
openstackgerritMerged openstack/os-client-config master: Updated from global requirements  https://review.openstack.org/49486516:22
SamYapleshouldnt delete_user() support domain_id? https://github.com/openstack-infra/shade/blob/master/shade/openstackcloud.py#L108916:23
SamYapleyea because if we don't support domain_id then we can't support "name" because users are only unique per domain16:25
*** ioggstream has quit IRC16:26
SamYaplemordred: while walking through alot of these apis ive notied a lack of *_id params. for example, when deleting a service i already have the service_id, but the delete_service() function only takes name_or_id leading it to have to lookup the services again16:26
SamYaplewould you be opposed to adding user_id service_id domain_id etc fields to everything?16:26
mordredSamYaple: MAYBE - there's an interface weirdness here I think we should think about - but I'm in an in-person meeting atm16:26
SamYapleah ok16:27
mordredSamYaple: that said - a thing that may not be evident is that you can pass an object dict to name_or_id params16:27
mordredSamYaple: you can also do delete_service(name_or_id=dict(id=service_id))  (or you should be able to and if you can't it's a bug) if you know you have an id and you want to skip the get16:28
SamYaplehmmm16:28
SamYapleok ill have to dig into _utils._filter_list16:28
SamYaplei wasn't aware name_or_id could be a dict16:28
mordredSamYaple: which is my verbose way of saying I agree with the thing you want to do - but I think we've got a few different cobbled together ways of doing it and we should step back and think about how we want to deal with this broadly so we don't make things yuckier16:29
SamYapleagreed there16:29
mordredSamYaple: ya- we added a dict optimization a little while ago - but it's not a super awesome or evident interface16:29
SamYaplebut its there now so its safe to use it, yes?16:29
SamYaplelike its not going away16:29
mordredyah16:30
mordredtotally safe - we depend on it internally16:30
SamYaplekk. ill see how far that gets me with removing the GETs16:30
mordredcool16:31
SamYaplehaving dedicated *_id vars might make it more clear long term, but being fairly generic and overloading name_or_id makes it a bit more adaptable to api changes16:32
SamYaplenot sure how i feel about it yet16:32
SamYaplename_or_id=dict(id=user.id, domain_id=domain.id) should work right?17:05
openstackgerritSamuel de Medeiros Queiroz proposed openstack-infra/shade master: De-client-ify Service List  https://review.openstack.org/48219517:05
*** thrash is now known as thrash|biab17:07
samueldmqthere is something wrong with shade jobs17:14
samueldmq^ just succeeded and only tox-py35-constraints was ran17:14
samueldmqrun*17:15
openstackgerritSamuel de Medeiros Queiroz proposed openstack-infra/shade master: De-client-ify Service Update  https://review.openstack.org/48219617:23
mordredsamueldmq: that's from zuul v3 - zuul v3 hasn't resonded yet17:27
samueldmqaha! thanks17:33
openstackgerritSamuel de Medeiros Queiroz proposed openstack-infra/shade master: De-client-ify Service Delete  https://review.openstack.org/48219717:34
*** slaweq has joined #openstack-shade17:44
*** slaweq has quit IRC17:49
*** thrash|biab is now known as thrash17:56
*** gouthamr has quit IRC17:57
*** gouthamr has joined #openstack-shade18:00
*** slaweq has joined #openstack-shade18:45
*** slaweq has quit IRC18:51
SamYapleok mordred. delete_user will delete with only the user name (not id) if the user lives in the domain the token is scoped for18:56
SamYapleim not able ot delete a user in a different domain, even proving the id in the form of name_or_id='{"id":"XXX"}'18:56
SamYapleproviding*18:56
*** ioggstream has joined #openstack-shade18:57
SamYaplemordred: delete_user will search_users but search_users doesn't provide the ability to search a specific domain_id. you cannot search users across all domains when mixing sql and ldap19:02
SamYapleso with shade and ldap you can only delete users in the default domain (default as configured in the keystone.conf)19:03
SamYaplewe need to extend list_users to allow domain_id too19:08
openstackgerritMerged openstack-infra/shade master: De-client-ify Service List  https://review.openstack.org/48219519:23
*** ioggstream has quit IRC19:24
*** slaweq has joined #openstack-shade19:38
*** olaph1 has joined #openstack-shade19:41
*** olaph has quit IRC19:41
SamYaplelist_roles also needs to accept domain_id, though i dont htink that has anything to do with ldap this time19:46
SamYaplethere is also no update_role function at all. that needs to be added19:58
*** gouthamr has quit IRC20:58
*** gouthamr has joined #openstack-shade21:35
openstackgerritSlawek Kaplonski proposed openstack-infra/shade master: Fix cleaning of Cinder volumes in functional tests  https://review.openstack.org/49693921:39
*** slaweq has quit IRC21:51
*** rods has quit IRC22:52
*** rods has joined #openstack-shade22:54
SamYaplethe same issue with groups. groups also needs a domain_id specfic thing23:23

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