Thursday, 2021-09-09

*** diablo_rojo is now known as Guest673301:00
*** sshnaidm is now known as sshnaidm|off08:04
gtemathomasb06 - if your question is still valid - you should not really use git pull (unless willing to go to real clean master). Instead you do `git review -d CHANGE_ID`. This will ensure you get latest version of your change13:21
gtemaotherwise (for branch) `git checkout master && git pull`13:21
opendevreviewAlfredo Moralejo proposed openstack/python-openstackclient master: Replace assertItemsEqual with assertCountEqual  https://review.opendev.org/c/openstack/python-openstackclient/+/80807913:50
ebbexI have a problem where "openstack image set --property hw_qemu_guest_agent=no <uuid> && openstack image show <uuid>" always shows up as hw_qemu_guest_agent='True' in the output, can anyone else see if they get the same result?14:52
gtemayou may try to use `openstack image unset --property hw_qemu_guest_agent <uuid>`. Maybe this can make it14:53
ebbex"glance image-show <uuid>" shows it correctly as "no".14:53
ebbexI can even set the property to "horse" and glance shows it correctly but the openstack-client always evaluates it to 'True' for some reason.14:54
gtemahmm, can you post output of the API response from`openstack image show <uuid> --debug`?14:54
ebbexand it's only this property for some reason, hw_machine_type, hw_disk_bus, hw_scsi_model, etc. all fine.14:55
gtemahmm14:55
gtemaok, found14:56
gtemain the SDK the attribute is declared as bool14:56
gtemawhich means it will not really support `no`, but `false`14:56
ebbexaha, that explains that I suppose.14:59
ebbexthe docs I've read on the property say it should be "yes", so really scratched my head when I set it to "no" but it still showed as 'True'.15:00
gtemathat was quite bad implementation decision in glance/wherever, cause all other known attributes are really bools, here it is described as "boolean `yes` or `no`"15:03
ebbexhmm, well it doesn't help that i set the property to 'False', 'false' or 'no'. It still reports it back as 'True'.15:09
gtemawell:15:11
* gtema < https://matrix.org/_matrix/media/r0/download/matrix.org/HdLyfeqfzrrPMQcOLSPvdAMY/message.txt >15:11
ebbexoh dear :(15:13
ebbexso there is only setting the property or unsetting it? But nova respects the property if 'no' or 'yes'? (I'll have to check that out next)15:14
gtemathis question I can not answer sadly15:15
ebbexnova/objects/image_meta.py: 'hw_qemu_guest_agent': fields.FlexibleBooleanField()15:16
ebbexso nova seems to respect the the value, they even have tests for it with values "yes" and "no".15:19
gtemahttps://opendev.org/openstack/oslo.utils/src/branch/master/oslo_utils/strutils.py#L12215:20
gtemathis is where it lands15:20
gtemaanyway - we should fix it in SDK. This is clearly not a bool, but string for us15:20
ebbexthanks, any place I should file a bug for this?15:22
gtemareports are not welcome, but fixes are ;-)15:23
gtemaI will do this shortly15:23
opendevreviewMerged openstack/openstacksdk master: Add compute microversion 2.78  https://review.opendev.org/c/openstack/openstacksdk/+/78629015:24
ebbexIs it as easy as changing the line "hw_qemu_guest_agent = resource.Body('hw_qemu_guest_agent', type=bool)" ?15:24
ebbex(to something else that is)15:25
opendevreviewArtem Goncharov proposed openstack/openstacksdk master: Change image.hw_qemu_guest_agent to be string  https://review.opendev.org/c/openstack/openstacksdk/+/80810115:31
gtemayeah ebbex - like that but also test should be adapted15:31
*** efried1 is now known as efried17:30
*** slaweq1 is now known as slaweq19:19

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