Friday, 2021-10-01

*** gmann is now known as gmann_afk00:07
*** gmann_afk is now known as gmann01:11
*** frickler_ is now known as frickler07:25
opendevreviewAlexandru Verdes proposed openstack/ansible-collections-openstack master: Add client and member listener timeouts for persistence (Ex. SSH)  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/81211008:59
opendevreviewAlexandru Verdes proposed openstack/ansible-collections-openstack master: Add client and member listener timeouts for persistence (Ex. SSH)  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/81211009:17
noonedeadpunkhey! I was wondering if there's any good way to import one of the commands to reuse code inside other one? I guess no?14:57
noonedeadpunkregsarding openstackclient14:57
gtemacan you be please more precise with your example? what are you thinking of?14:58
noonedeadpunkSo, I'm trying to write host-evacuate command for openstackclient. And what I;d ove to do is re-use https://opendev.org/openstack/python-openstackclient/src/branch/master/openstackclient/compute/v2/server.py#L345815:03
noonedeadpunkBut I guess I can't do that?15:03
noonedeadpunkso the way would be copy/pasting code? Which I'd hate doing...15:03
gtemareuse in the sense of a complete copy or only parts?15:04
noonedeadpunkI guess that was kind of reason why it hasn't been implemented yet...15:05
noonedeadpunkcomplete copy but pass different parsed_args15:05
gtemaand what about the action itself? it currently invoke server.evacuate(xx)15:06
noonedeadpunkyeah, it will be the same. So host evacuate is basically retrieves all servers for hypervisors and iterate on them15:07
noonedeadpunkie https://github.com/openstack/python-novaclient/blob/8066f8c745054caeb7bd66d4c2be15ab5fac1d1f/novaclient/v2/shell.py#L5190-L519915:07
gtemabut it is the still not really same. I would suggest just move evacuate implementation into helper function15:08
gtemaso that you can also iterate and invoke it15:08
*** artom_ is now known as artom15:13
noonedeadpunkSounds reasonable. And can you kindly point to some helper sample? Can find quickly in tree. Or they are osc_lib or somewhere?15:13
gtemahttps://opendev.org/openstack/python-openstackclient/src/branch/master/openstackclient/common/sdk_utils.py15:14
gtemawhatever is currently in common15:14
gtemabut I would rather simply have something in the compute part15:14
gtemahttps://opendev.org/openstack/python-openstackclient/src/branch/master/openstackclient/network/common.py15:14
noonedeadpunkyeah, great, thanks!15:16
opendevreviewMerged openstack/osc-lib stable/xena: Update .gitreview for stable/xena  https://review.opendev.org/c/openstack/osc-lib/+/80836118:23
opendevreviewMerged openstack/osc-lib stable/xena: Update TOX_CONSTRAINTS_FILE for stable/xena  https://review.opendev.org/c/openstack/osc-lib/+/80836218:23
-opendevstatus- NOTICE: The review.opendev.org Gerrit server has become unreachable as of approximately 19:10 UTC due to a networking issue in the provider, but should be reachable again shortly19:45

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