Friday, 2017-06-09

*** jamielennox|away is now known as jamielennox00:02
*** slaweq has quit IRC00:02
rodsmordred this test might be broken https://github.com/openstack-infra/shade/blob/master/shade/tests/functional/test_floating_ip.py#L16900:16
rodsnets comes from a REST call so the result should a list of dict, how does nets[0].id works00:17
rods*work00:17
rodsI mean the tests that use that function :)00:26
*** yfried has joined #openstack-shade00:47
*** jamielennox is now known as jamielennox|away01:00
*** jamielennox|away is now known as jamielennox01:10
*** yfried has quit IRC01:12
mordredrods: nets = self.user_cloud._compute_client.get('/os-tenant-networks') should be returning a Munch (the adapter does a conversion at the end of the function - meta.obj_to_dict call)01:18
mordredor obj_list_to_dict01:19
rodsmordred ah, I guess this patch we merged is wrong then https://review.openstack.org/#/c/472268/1/shade/_adapter.py01:23
rodswe are just returning json01:23
rodsand not all the call in openstackcloud are normalizing the result01:25
rods*calls01:25
*** slaweq has joined #openstack-shade01:59
*** slaweq has quit IRC02:04
*** larainema has quit IRC03:02
*** larainema has joined #openstack-shade03:13
*** gkadam has joined #openstack-shade03:38
*** slaweq has joined #openstack-shade04:01
*** slaweq has quit IRC04:06
*** slaweq has joined #openstack-shade05:02
*** slaweq has quit IRC05:06
calebbmordred: hey, figured out the ansible thing, looks like because im using a public ip and "auto_ip" defaults to true, each time ansible runs, it sees that my instance doesnt have a floating ip and so it tries to add one and sets changed to true, although I'm not sure why it doesnt fail when trying to add a floating IP to my instance, you probably have more insight into how OpenStack/Shade/Ansible05:34
calebbdeals with that05:34
calebbso just setting "auto_ip" to false fixes it, although it probably makes sense to find some way to fix this, not entirely sure how, but I'll poke it, ansible can probably just check if the instance has a public ip or floating ip instead of just floating05:35
*** iogg has joined #openstack-shade06:24
*** noshankus has joined #openstack-shade08:36
*** cdent has joined #openstack-shade08:43
*** noshankus has quit IRC10:05
*** nokes has joined #openstack-shade10:06
*** nokes is now known as noshankus10:06
*** cdent has quit IRC10:29
*** cdent has joined #openstack-shade10:58
*** iogg has quit IRC11:30
*** iogg has joined #openstack-shade11:30
*** yfried has joined #openstack-shade12:05
*** yfried has quit IRC12:24
mordredrods: oh - whoops. yah - we should run those through meta.obj_to_dict12:48
mordredcalebb: ah.12:48
mordredcalebb: looking real quick12:48
mordredcalebb: bug in module12:50
mordredcalebb: https://github.com/ansible/ansible/pull/2554013:00
*** purplerbot has quit IRC13:16
*** purplerbot has joined #openstack-shade13:16
rodsmordred patch is on the way :)13:18
rodsjust out of curiosity once we moved everything to REST API call, do we still need to convert everything to Munch objects?13:20
rods*calls13:20
rodswe are already getting dictionary from the raw clients13:21
openstackgerritRosario Di Somma proposed openstack-infra/shade master: Convert data from raw clients to dict or list of dicts  https://review.openstack.org/47269013:53
rods^^ what about something like this?13:54
*** cdent has quit IRC14:23
mordredrods: we do - because it's part of the API we're giving to users - so they may have code that does "server cloud.get_server('foo') ; server.id" and if we stopped converting we might break those users14:23
mordredrods: yes - that patch looks great. however, maybe just for clarify we should call th emethod "get_and_munchify"14:25
mordredrods: and, in fact, we could also rename obj_to_dict to obj_to_munch and obj_list_to_dict to obj_list_to_munch - but then follow with obj_to_dict = obj_to_munch for backwards compat)14:26
*** gkadam_ has joined #openstack-shade14:26
*** gkadam has quit IRC14:26
mordredI don't think the second thing is as important- but if we're adding a new thing it might help developer clarity14:27
*** gkadam_ has quit IRC14:31
rodsmordred ya, I can take care of it14:31
rodsI'm renaming get_and_dictify in the current patch and make a new one for the obj_to_dict and obj_list_to_dict14:33
mordredwoot. thanks!14:37
*** yfried has joined #openstack-shade14:52
*** cdent has joined #openstack-shade14:53
-openstackstatus- NOTICE: The Gerrit service on review.openstack.org is being restarted now to clear an issue arising from an unanticipated SSH API connection flood14:57
*** yfried has quit IRC15:13
openstackgerritRosario Di Somma proposed openstack-infra/shade master: Convert data from raw clients to dict or list of dicts  https://review.openstack.org/47269015:25
openstackgerritRosario Di Somma proposed openstack-infra/shade master: Convert data from raw clients to Munch objects  https://review.openstack.org/47269015:31
calebbmordred: sweet, I'll check and test in a bit, thanks!16:37
calebbworks for me!17:13
*** iogg has quit IRC18:07
*** yolanda has quit IRC18:43
*** yolanda has joined #openstack-shade18:45
*** slaweq has joined #openstack-shade19:04
*** slaweq has quit IRC19:20
*** slaweq has joined #openstack-shade19:35
samueldmqmordred: can you tell me what piece of code is doing the version discovery properly ?20:08
samueldmqso that I will be able to restify things for keystone20:08
mordredsamueldmq: yes!20:17
mordredsamueldmq: https://github.com/openstack-infra/shade/blob/master/shade/openstackcloud.py#L414 calls https://github.com/openstack-infra/shade/blob/master/shade/openstackcloud.py#L45220:17
mordredsamueldmq: so as long as you use _identity_client - it should all just work20:17
mordredsamueldmq: here's an example: https://review.openstack.org/#/c/467784/20:18
samueldmqmordred: ah so you've fixed the _identity_client for me too20:21
samueldmqI thought I was supposed to that on the top of what you had built20:21
samueldmqbut anyways, thanks!20:21
*** slaweq has quit IRC20:55
*** slaweq has joined #openstack-shade20:56
*** slaweq has quit IRC21:22
*** slaweq has joined #openstack-shade21:22
*** slaweq has quit IRC21:27
*** slaweq has joined #openstack-shade21:43
rodsmordred when you have a sec, this should be ready to go https://review.openstack.org/#/c/472690/21:45
*** slaweq has quit IRC21:47
*** slaweq has joined #openstack-shade22:03
*** slaweq has quit IRC22:05
*** cdent has quit IRC23:44

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