Wednesday, 2021-09-29

*** diablo_rojo is now known as Guest128404:53
thomasb06gtema: Hello. It seems this is pretty much it for the unit directory. Would you have another series of refactoring for me?07:51
gtemahi thomasb06. Yes07:51
gtemathis is also part of the bigger cleanup07:52
gtemait's about fixing identation of the docstrings through the code07:52
thomasb06cool. Then, I can go on elsewhere07:52
gtemahttps://opendev.org/openstack/openstacksdk/src/branch/master/openstack/block_storage/v3/_proxy.py#L574 - good example of docstring identation07:53
gtemahttps://opendev.org/openstack/openstacksdk/src/branch/master/openstack/block_storage/v3/_proxy.py#L368 - bad example07:53
gtemaso overall I want our docstring to be properly idented (so that linebreak of the param description gets +4 chars identation and not something else07:54
thomasb06it's all in openstacksdk/openstack ?07:54
gtemaI would say it currently distracts in openstack///_proxy.py and openstack/cloud/**.py07:55
gtemas//////* */* *//07:55
gtemamaybe same is also present in tons of other places (in the resource files themselves) and it should be also fixed there, but proxy files are the most disturbing ones07:55
thomasb06alright, then switch on indenting07:56
gtemathks a lot07:57
thomasb06First attempt: https://review.opendev.org/c/openstack/openstacksdk/+/81165808:43
thomasb06It seems it can be handled by a regexp script08:44
thomasb06the keywords are: `:param ?:`, `:returns:`, `:rtype:`, and `:raises:`. And there are second level indentation after a `*`08:47
thomasb06maybe I go for an awk script for a couple of days08:47
gtemaI doubt it can be very easy with regex09:04
gtemastephenfin: I remember around a year ago we were discussing what to do with hypervisor statistics in OSC but I forgot what we actually agreed upon10:27
gtemaI try to rebase my hypervisor change now https://review.opendev.org/c/openstack/python-openstackclient/+/763414 and figure out it doesn't work really, cause in SDK there is no support for statistics10:27
stephenfinCould you leave that using novaclient and simply deprecate it?10:29
stephenfinThe alternative to provide something like it by querying placement, but we haven't completed placement support in SDK yet either10:29
gtemacan be done. But then we can not get rid of dependency on novaclient (I was actually sure we do not have it, but we do)10:30
stephenfinWe can't do it this cycle, but we can do it in Z10:30
stephenfinthat's not that far away, tbf10:30
gtemathat's clear, I mean even overall10:31
gtemawhat I can do actually is to use SDK for direct API call from OSC10:31
gtemaso that we do not need to implement it in SDK10:31
stephenfinI didn't know that was an option. Sure, that works for me too10:32
gtemaok, will do so. I actually used this few times in ansible modules already10:32
opendevreviewArtem Goncharov proposed openstack/python-openstackclient master: Switch hypervisor operations to SDK  https://review.opendev.org/c/openstack/python-openstackclient/+/76341413:23
opendevreviewLajos Katona proposed openstack/python-openstackclient master: Add BFD monitor commands  https://review.opendev.org/c/openstack/python-openstackclient/+/81028613:49
opendevreviewSven Anders proposed openstack/ansible-collections-openstack master: Flavor properties are not deleted on changes and id will stay  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/81173915:14
opendevreviewSven Anders proposed openstack/ansible-collections-openstack master: Flavor properties are not deleted on changes and id will stay  https://review.opendev.org/c/openstack/ansible-collections-openstack/+/81173915:40

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