Thursday, 2020-06-11

openstackgerritMonty Taylor proposed openstack/osc-lib master: Remove commandmanager subclass  https://review.opendev.org/73400000:10
*** lbragstad has joined #openstack-sdks01:18
openstackgerritMerged openstack/python-openstackclient stable/ussuri: Client should parse string to boolean for value 'is_domain'  https://review.opendev.org/73239702:37
*** ricolin has joined #openstack-sdks02:39
*** lbragstad has quit IRC03:36
*** evrardjp has quit IRC04:33
*** evrardjp has joined #openstack-sdks04:33
*** dustinc has quit IRC06:35
*** rpittau|afk is now known as rpittau07:18
*** ttsiouts has joined #openstack-sdks07:19
*** ralonsoh has joined #openstack-sdks07:21
*** jawad_axd has joined #openstack-sdks07:21
*** ttsiouts has quit IRC07:22
*** sshnaidm|afk is now known as sshnaidm07:23
*** ttsiouts has joined #openstack-sdks07:24
*** tosky has joined #openstack-sdks07:38
*** factor has quit IRC07:46
*** factor has joined #openstack-sdks07:47
*** jpena|off is now known as jpena07:57
*** jpich has joined #openstack-sdks08:06
*** slaweq has quit IRC08:15
*** slaweq has joined #openstack-sdks08:20
openstackgerritSagi Shnaidman proposed openstack/ansible-collections-openstack master: Add note about py3 in readme  https://review.opendev.org/73508108:51
*** rpittau is now known as rpittau|bbl09:15
*** factor has quit IRC09:16
*** factor has joined #openstack-sdks09:16
*** slaweq has quit IRC09:19
*** stingrayza has joined #openstack-sdks09:28
*** also_stingrayza has quit IRC09:31
openstackgerritDirk Mueller proposed openstack/osc-lib stable/ussuri: Replace assertItemsEqual with assertCountEqual  https://review.opendev.org/73509009:45
openstackgerritDirk Mueller proposed openstack/python-openstackclient stable/ussuri: Replace assertItemsEqual with assertCountEqual  https://review.opendev.org/73509109:48
openstackgerritSagi Shnaidman proposed openstack/ansible-collections-openstack master: Fix ansible-devel sanity tests for deprecations  https://review.opendev.org/73509509:55
*** slaweq has joined #openstack-sdks09:57
*** slaweq has quit IRC10:20
*** slaweq has joined #openstack-sdks10:26
*** slaweq has quit IRC10:30
*** efried has quit IRC10:32
*** ttsiouts has quit IRC10:39
*** ricolin has quit IRC10:47
*** purplerbot has joined #openstack-sdks10:58
*** ttsiouts has joined #openstack-sdks11:03
*** ttsiouts has quit IRC11:18
*** nightmare_unreal has joined #openstack-sdks11:23
*** slaweq has joined #openstack-sdks11:24
*** ttsiouts has joined #openstack-sdks11:31
*** jpich has quit IRC11:36
*** jpich has joined #openstack-sdks11:37
*** jpena is now known as jpena|lunch11:40
*** ttsiouts has quit IRC11:46
*** jpich has quit IRC11:50
*** jpich has joined #openstack-sdks11:51
*** rpittau|bbl is now known as rpittau11:54
*** slaweq has quit IRC12:13
*** slaweq has joined #openstack-sdks12:13
*** ttsiouts has joined #openstack-sdks12:17
mordreddtroyer, mnaser, dtantsur|afk, frickler: with the move of the group code to cliff, the osc-lib patch is now green: https://review.opendev.org/#/c/734000/12:18
*** slaweq has quit IRC12:18
*** tkajinam has quit IRC12:25
*** ttsiouts has quit IRC12:32
*** fyx has quit IRC12:32
*** vkmc has quit IRC12:32
*** fyx has joined #openstack-sdks12:32
*** mnaser has quit IRC12:32
*** gmann has quit IRC12:33
*** vkmc has joined #openstack-sdks12:33
*** gmann has joined #openstack-sdks12:33
*** mnaser has joined #openstack-sdks12:33
openstackgerritSagi Shnaidman proposed openstack/ansible-collections-openstack master: Add note about py3 in readme  https://review.opendev.org/73508112:34
*** ttsiouts has joined #openstack-sdks12:35
*** slaweq has joined #openstack-sdks12:43
*** jpena|lunch is now known as jpena12:46
*** slaweq has quit IRC12:47
sshnaidmhmm.. I've got a weird error while trying to use conn.compute.wait_for_server() - AttributeError: 'Munch' object has no attribute 'fetch'12:48
sshnaidmanybody knows what is the issue? ^12:48
openstackgerritjayaditya gupta proposed openstack/cliff master: Fix json output for security_groups property in "openstack server show -f json" command  https://review.opendev.org/73512812:49
nightmare_unrealfrickler mordred  , This is how I am thinking to fix the json properties issue. This i probably not the right way so please comment on it when anyone gets time :) Thanks12:50
nightmare_unrealPatch : https://review.opendev.org/73512812:50
mordredsshnaidm: sounds like you're using wait_for_server on something that's returning just the munch and not the Server resource - we haven't finished reworking the shade api to completely use the underlying sdk resource layer yet12:57
mordredsshnaidm: so there are places still where the shade layer is still making direct rest calls12:57
*** gtema has joined #openstack-sdks12:57
jawad_axdHi all, Is it to possible to allocate cidr(subnet) automatically when creating network? I came acorss with get-me-network, but I dont really need router creation, just network with automatic cidr. Any pointers?12:58
sshnaidmmordred, hmm.. maybe I don't understand something, but where is "resource" reinitialization in the loop? https://opendev.org/openstack/openstacksdk/src/branch/master/openstack/resource.py#L203513:00
sshnaidmdoes it just repeat "resource = resource.fetch(session)" ?13:01
mordredyes. iterate_timeout is a loop-until-timeout function13:01
mordredsshnaidm: where are you calling that?13:01
mordredsshnaidm: (I can almost certaily tell you how to do things in your code differently so it works, but what would be great is to take this as an opportunity to fix whatever gave you a server that doesn't work there)13:02
sshnaidmmordred, I'm calling from ansible module: self.conn.compute.wait_for_server(os_server,status=_action_map[self.params['action']],wait=self.params['timeout'])13:03
mordredsshnaidm: nod - and what did you call to get teh os_server object?13:03
sshnaidmmordred, self.conn.get_server(self.params['server'])13:04
mordredsshnaidm: wow13:04
mordredoh - wait13:05
mordredno, that's expected13:05
mordredand we should fix it - but for now13:05
mordreduse self.conn.wait_for_server if you use self.conn.get_server13:05
mordred(although that's not going to let you pass in a status)13:06
* mordred tries to decide which thing to fix here13:06
sshnaidmyeah, server is <class 'munch.Munch'>13:06
mordredsshnaidm: actually - for this case ...13:06
mordredsshnaidm: try using self.conn.compute.get_server(self.params['server'])13:06
fricklerjawad_axd: with subnetpools creating a subnet is pretty simple, but still a dedicated action, I don't think there's a way around that13:06
mordredsshnaidm: we need to finish https://review.opendev.org/#/c/630912 to fix the other thing, and that's important, but probably not a thing you want to wait on13:08
jawad_axd@frickler Thanks.13:08
*** gtema has quit IRC13:08
sshnaidmmordred, hmm, it didn't find server with self.conn.compute.get_server(self.params['server'])13:09
sshnaidmand w/o compute: TypeError: wait_for_server() got an unexpected keyword argument 'status'13:11
sshnaidmI think I'll wait a little to introduce this function..13:11
mordredsshnaidm: yeah - there's no status parameter for self.conn.wait_for_server13:11
mordredsshnaidm: one more thign to try (sorry, still on first coffee)13:12
mordredsshnaidm: self.conn.compute.find_server(self.params['server'])13:12
*** enriquetaso has joined #openstack-sdks13:15
sshnaidmmordred, that seems working13:15
*** efried has joined #openstack-sdks13:20
sshnaidmmordred, <class 'openstack.compute.v2.server.Server'> - it seems to have all attributes as "None"13:21
sshnaidmI've got only ID and name13:25
*** ttsiouts has quit IRC13:31
*** lbragstad has joined #openstack-sdks13:34
openstackgerritMerged openstack/ansible-collections-openstack master: Fix ansible-devel sanity tests for deprecations  https://review.opendev.org/73509513:35
mordredsshnaidm: that resource doesn't seem to have been fetched13:41
sshnaidmmordred, well, it got id and name13:42
*** olaph has joined #openstack-sdks13:47
*** ricolin has joined #openstack-sdks13:51
*** iurygregory_ has joined #openstack-sdks14:19
*** iurygregory has quit IRC14:19
*** iurygregory_ is now known as iurygregory14:19
*** jawad_axd has quit IRC14:20
*** ttsiouts has joined #openstack-sdks14:23
openstackgerritSagi Shnaidman proposed openstack/ansible-collections-openstack master: Add note about py3 in readme  https://review.opendev.org/73508114:24
*** ttsiouts has quit IRC14:34
*** slaweq has joined #openstack-sdks14:52
*** factor has quit IRC14:52
openstackgerritSagi Shnaidman proposed openstack/ansible-collections-openstack master: Add OpenstackModule to os_server_action  https://review.opendev.org/72174614:54
sshnaidmmordred, ended up with two objects, "Server" for wait_for_server and "Munch" for all the rest ^14:54
sshnaidmif it's not ok, let's leave _wait function as it was: https://review.opendev.org/#/c/721746/14..15/plugins/modules/server_action.py14:55
mordredsshnaidm: yeah - I think that's fine. I think we can simplify it in the future - but waiting on that is not valuable15:01
*** sshnaidm_ has joined #openstack-sdks15:15
*** sshnaidm has quit IRC15:16
*** slaweq has quit IRC15:20
*** slaweq has joined #openstack-sdks15:25
*** slaweq has quit IRC15:30
openstackgerritMerged openstack/python-openstackclient master: Remove os-client-config references  https://review.opendev.org/73409715:44
*** rpittau is now known as rpittau|afk15:58
*** iurygregory has quit IRC16:15
*** jpich has quit IRC16:25
*** jpich has joined #openstack-sdks16:25
*** sshnaidm_ is now known as sshnaidm16:46
*** sshnaidm is now known as sshnaidm|afk16:46
*** ricolin has quit IRC16:48
*** jpich has quit IRC16:56
*** jpena is now known as jpena|off17:00
openstackgerritMerged openstack/python-openstackclient stable/train: Client should parse string to boolean for value 'is_domain'  https://review.opendev.org/73239817:14
*** nightmare_unreal has quit IRC17:51
*** factor has joined #openstack-sdks18:08
*** dtroyer has quit IRC18:12
*** dtroyer has joined #openstack-sdks18:14
*** ralonsoh has quit IRC19:15
*** slaweq has joined #openstack-sdks19:49
*** slaweq has quit IRC20:26
*** slaweq has joined #openstack-sdks20:31
*** slaweq has quit IRC20:35
*** mgariepy has quit IRC20:44
*** mgariepy has joined #openstack-sdks20:48
*** dustinc has joined #openstack-sdks21:55
*** tkajinam has joined #openstack-sdks22:46
*** tosky has quit IRC23:10
openstackgerritMerged openstack/ansible-collections-openstack master: Add note about py3 in readme  https://review.opendev.org/73508123:51

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