yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #96102
[Bug 1996033] Re: glance CLI always shows hw_vif_multiqueue_enabled='True'
The issue is with Openstack CLI and not with glance CLI. If you use
equivalent glance command then it shows expected result.
glance image-update --property hw_vif_multiqueue_enabled=True a59674ec-064a-469b-8cf5-c9ad5e695b63
+---------------------------+----------------------------------------------------------------------------------+
| Property | Value |
+---------------------------+----------------------------------------------------------------------------------+
| checksum | c8fc807773e5354afe61636071771906 |
| container_format | bare |
| created_at | 2025-07-02T12:27:41Z |
| disk_format | raw |
| hw_vif_multiqueue_enabled | True |
| id | a59674ec-064a-469b-8cf5-c9ad5e695b63 |
| locations | [{"url": "rbd://ef5a43b8-33aa-4f95-8134-7bc4d441215f/images/a59674ec-064a-469b- |
| | 8cf5-c9ad5e695b63/snap", "metadata": {"store": "robust"}}] |
| min_disk | 0 |
| min_ram | 0 |
| name | location-test |
| os_hash_algo | sha512 |
| os_hash_value | 1103b92ce8ad966e41235a4de260deb791ff571670c0342666c8582fbb9caefe6af07ebb11d34f44 |
| | f8414b609b29c1bdf1d72ffa6faa39c88e8721d09847952b |
| os_hidden | False |
| owner | 768f27b43f9042fd8c3c92593f144a5d |
| protected | False |
| size | 21430272 |
| status | active |
| stores | robust |
| tags | [] |
| updated_at | 2025-07-02T14:17:20Z |
| virtual_size | 21430272 |
| visibility | shared |
+---------------------------+----------------------------------------------------------------------------------+
ubuntu@akekane-uwsgi:~$ glance image-update --property hw_vif_multiqueue_enabled=False a59674ec-064a-469b-8cf5-c9ad5e695b63
+---------------------------+----------------------------------------------------------------------------------+
| Property | Value |
+---------------------------+----------------------------------------------------------------------------------+
| checksum | c8fc807773e5354afe61636071771906 |
| container_format | bare |
| created_at | 2025-07-02T12:27:41Z |
| disk_format | raw |
| hw_vif_multiqueue_enabled | False |
| id | a59674ec-064a-469b-8cf5-c9ad5e695b63 |
| locations | [{"url": "rbd://ef5a43b8-33aa-4f95-8134-7bc4d441215f/images/a59674ec-064a-469b- |
| | 8cf5-c9ad5e695b63/snap", "metadata": {"store": "robust"}}] |
| min_disk | 0 |
| min_ram | 0 |
| name | location-test |
| os_hash_algo | sha512 |
| os_hash_value | 1103b92ce8ad966e41235a4de260deb791ff571670c0342666c8582fbb9caefe6af07ebb11d34f44 |
| | f8414b609b29c1bdf1d72ffa6faa39c88e8721d09847952b |
| os_hidden | False |
| owner | 768f27b43f9042fd8c3c92593f144a5d |
| protected | False |
| size | 21430272 |
| status | active |
| stores | robust |
| tags | [] |
| updated_at | 2025-07-02T14:17:48Z |
| virtual_size | 21430272 |
| visibility | shared |
+---------------------------+----------------------------------------------------------------------------------+
ubuntu@akekane-uwsgi:~$ glance image-show a59674ec-064a-469b-8cf5-c9ad5e695b63
+---------------------------+----------------------------------------------------------------------------------+
| Property | Value |
+---------------------------+----------------------------------------------------------------------------------+
| checksum | c8fc807773e5354afe61636071771906 |
| container_format | bare |
| created_at | 2025-07-02T12:27:41Z |
| disk_format | raw |
| hw_vif_multiqueue_enabled | False |
| id | a59674ec-064a-469b-8cf5-c9ad5e695b63 |
| locations | [{"url": "rbd://ef5a43b8-33aa-4f95-8134-7bc4d441215f/images/a59674ec-064a-469b- |
| | 8cf5-c9ad5e695b63/snap", "metadata": {"store": "robust"}}] |
| min_disk | 0 |
| min_ram | 0 |
| name | location-test |
| os_hash_algo | sha512 |
| os_hash_value | 1103b92ce8ad966e41235a4de260deb791ff571670c0342666c8582fbb9caefe6af07ebb11d34f44 |
| | f8414b609b29c1bdf1d72ffa6faa39c88e8721d09847952b |
| os_hidden | False |
| owner | 768f27b43f9042fd8c3c92593f144a5d |
| protected | False |
| size | 21430272 |
| status | active |
| stores | robust |
| tags | [] |
| updated_at | 2025-07-02T14:17:48Z |
| virtual_size | 21430272 |
| visibility | shared |
+---------------------------+----------------------------------------------------------------------------------+
** Changed in: glance
Status: New => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1996033
Title:
glance CLI always shows hw_vif_multiqueue_enabled='True'
Status in Glance:
Invalid
Bug description:
"openstack image show" reports incorrect properties when setting
hw_vif_multiqueue_enabled
in devstack master (also reproduced on wallaby), I have an image with
no hw_vif_multiqueue_enabled property
$ openstack image show -c properties -f value amphora-x64-haproxy
{'os_hidden': False, 'os_hash_algo': 'sha512', 'os_hash_value': 'fddf81f46b53ec0b3e1760cc0c1baa64578357003a00440ac4e0257af2af3556bb460f5fc38eab88e5aea43f997f59f75156bfdba92d9726f80bafba4e6a0911', 'owner_specified.openstack.md5': '', 'owner_specified.openstack.sha256': '', 'owner_specified.openstack.object': 'images/amphora-x64-haproxy', 'hw_architecture': 'x86_64', 'hw_rng_model': 'virtio'}
Set the hw_vif_multiqueue_enabled property to True, it is ok:
$ openstack image set --property hw_vif_multiqueue_enabled=True amphora-x64-haproxy
$ openstack image show -c properties -f value amphora-x64-haproxy
{'os_hidden': False, 'os_hash_algo': 'sha512', 'os_hash_value': 'fddf81f46b53ec0b3e1760cc0c1baa64578357003a00440ac4e0257af2af3556bb460f5fc38eab88e5aea43f997f59f75156bfdba92d9726f80bafba4e6a0911', 'owner_specified.openstack.md5': '', 'owner_specified.openstack.sha256': '', 'owner_specified.openstack.object': 'images/amphora-x64-haproxy', 'hw_architecture': 'x86_64', 'hw_rng_model': 'virtio', 'hw_vif_multiqueue_enabled': True}
Set the property to False (or false), it is not ok, image show still returns "True"
$ openstack image set --property hw_vif_multiqueue_enabled=False amphora-x64-haproxy
$ openstack image show -c properties -f value amphora-x64-haproxy
{'os_hidden': False, 'os_hash_algo': 'sha512', 'os_hash_value': 'fddf81f46b53ec0b3e1760cc0c1baa64578357003a00440ac4e0257af2af3556bb460f5fc38eab88e5aea43f997f59f75156bfdba92d9726f80bafba4e6a0911', 'owner_specified.openstack.md5': '', 'owner_specified.openstack.sha256': '', 'owner_specified.openstack.object': 'images/amphora-x64-haproxy', 'hw_architecture': 'x86_64', 'hw_rng_model': 'virtio', 'hw_vif_multiqueue_enabled': True}
The value is False (but it is a string not a boolean) in the DB:
$ mysql -u root glance -e "select * from image_properties where image_id = '394ec5e4-3aab-47e8-a36f-dfdba732994b' and name = 'hw_vif_multiqueue_enabled' \G"
*************************** 1. row ***************************
id: 15
image_id: 394ec5e4-3aab-47e8-a36f-dfdba732994b
name: hw_vif_multiqueue_enabled
value: False
created_at: 2022-11-09 07:42:24
updated_at: 2022-11-09 07:43:01
deleted_at: NULL
deleted: 0
Unsetting the property doesn't work:
$ openstack image unset --property hw_vif_multiqueue_enabled amphora-x64-haproxy
property unset failed, 'hw_vif_multiqueue_enabled' is a nonexistent property
Failed to unset 1 of 1 properties.
Note: this is an issue only with the CLI, the property is correctly read by nova when creating the VM.
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1996033/+subscriptions
References