← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1340885] Re: Can't unset a flavor-key

 

** Changed in: nova
       Status: Fix Committed => Fix Released

** Changed in: nova
    Milestone: None => juno-rc1

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1340885

Title:
  Can't unset a flavor-key

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  I am able to set a flavor-key but not unset it.  devstack
  sha1=fdf1cffbd5d2a7b47d5bdadbc0755fcb2ff6d52f

  
  ubuntu@d8:~/devstack$ nova help flavor-key
  usage: nova flavor-key <flavor> <action> <key=value> [<key=value> ...]

  Set or unset extra_spec for a flavor.

  Positional arguments:
    <flavor>     Name or ID of flavor
    <action>     Actions: 'set' or 'unset'
    <key=value>  Extra_specs to set/unset (only key is necessary on unset)
  ubuntu@d8:~/devstack$ nova flavor-key m1.tiny set foo=bar
  ubuntu@d8:~/devstack$ nova flavor-show m1.tiny
  +----------------------------+----------------+
  | Property                   | Value          |
  +----------------------------+----------------+
  | OS-FLV-DISABLED:disabled   | False          |
  | OS-FLV-EXT-DATA:ephemeral  | 0              |
  | disk                       | 1              |
  | extra_specs                | {"foo": "bar"} |
  | id                         | 1              |
  | name                       | m1.tiny        |
  | os-flavor-access:is_public | True           |
  | ram                        | 512            |
  | rxtx_factor                | 1.0            |
  | swap                       |                |
  | vcpus                      | 1              |
  +----------------------------+----------------+
  ubuntu@d8:~/devstack$ nova flavor-key m1.tiny unset foo
  ubuntu@d8:~/devstack$ nova flavor-show m1.tiny
  +----------------------------+----------------+
  | Property                   | Value          |
  +----------------------------+----------------+
  | OS-FLV-DISABLED:disabled   | False          |
  | OS-FLV-EXT-DATA:ephemeral  | 0              |
  | disk                       | 1              |
  | extra_specs                | {"foo": "bar"} |
  | id                         | 1              |
  | name                       | m1.tiny        |
  | os-flavor-access:is_public | True           |
  | ram                        | 512            |
  | rxtx_factor                | 1.0            |
  | swap                       |                |
  | vcpus                      | 1              |
  +----------------------------+----------------+

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1340885/+subscriptions


References