← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1996033] [NEW] glance CLI always shows hw_vif_multiqueue_enabled='True'

 

Public bug reported:

"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.

** Affects: glance
     Importance: Undecided
         Status: New

-- 
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:
  New

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