← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1209101] Re: Non-public flavor cannot be used in created tenant

 

** Also affects: nova (Ubuntu)
   Importance: Undecided
       Status: New

** No longer affects: nova (Ubuntu)

-- 
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/1209101

Title:
  Non-public flavor cannot be used in created tenant

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  Non-public flavor cannot use in created tenant.
  If user run "nova flavor-access-add", It becomes available.

  The following message is written to the OpenStack Compute Administration Guide
  "Is_Public: Boolean value, whether flavor is available to all users or private to the
  tenant it was created in. Defaults to True."

  Actual:

  $ OS_USERNAME=admin OS_TENANT_NAME=demo nova flavor-create --is-public false secret.1 auto 512 0 1
  +--------------------------------------+----------+-----------+------+-----------+------+-------+-------------+-----------+
  | ID                                   | Name     | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
  +--------------------------------------+----------+-----------+------+-----------+------+-------+-------------+-----------+
  | 47d227f2-8942-451c-b73b-90adcc8985d0 | secret.1 | 512       | 0    | 0         |      | 1     | 1.0         | False     |
  +--------------------------------------+----------+-----------+------+-----------+------+-------+-------------+-----------+
  $
  $ OS_USERNAME=demo OS_TENANT_NAME=demo nova boot --flavor 47d227f2-8942-451c-b73b-90adcc8985d0 --image cirros-0.3.1-x86_64-uec foo
  ERROR: No flavor with a name or ID of '47d227f2-8942-451c-b73b-90adcc8985d0' exists.
  $
  $ OS_USERNAME=admin nova flavor-access-add 47d227f2-8942-451c-b73b-90adcc8985d0 89fc2fa5c447419b8a6b3d8426154b6b 
  +--------------------------------------+----------------------------------+
  | Flavor_ID                            | Tenant_ID                        |
  +--------------------------------------+----------------------------------+
  | 47d227f2-8942-451c-b73b-90adcc8985d0 | 89fc2fa5c447419b8a6b3d8426154b6b |
  +--------------------------------------+----------------------------------+
  $
  $ OS_USERNAME=demo OS_TENANT_NAME=demo nova boot --flavor 47d227f2-8942-451c-b73b-90adcc8985d0 --image cirros-0.3.1-x86_64-uec foo
  +--------------------------------------+--------------------------------------+
  | Property                             | Value                                |
  +--------------------------------------+--------------------------------------+
  | image                                | cirros-0.3.1-x86_64-uec              |
  | flavor                               | secret.1                             |
  | id                                   | 34698740-cd43-4bf8-82a8-8674347d57d5 |
  | security_groups                      | [{u'name': u'default'}]              |
  | user_id                              | a8f7158ae59a4d4ab2aafbe5de63dff6     |
  | accessIPv4                           |                                      |
  | accessIPv6                           |                                      |
  | progress                             | 0                                    |
  | config_drive                         |                                      |
  | status                               | BUILD                                |
  | updated                              | 2013-08-07T05:59:23Z                 |
  | hostId                               |                                      |
  | key_name                             | None                                 |
  | name                                 | foo                                  |
  | adminPass                            | 48gRi7qspeUL                         |
  | tenant_id                            | 89fc2fa5c447419b8a6b3d8426154b6b     |
  | created                              | 2013-08-07T05:59:23Z                 |
  | os-extended-volumes:volumes_attached | []                                   |
  | metadata                             | {}                                   |
  +--------------------------------------+--------------------------------------+
  $

  Expected:

  $ OS_USERNAME=admin OS_TENANT_NAME=demo nova flavor-create --is-public false secret.1 auto 512 0 1
  +--------------------------------------+----------+-----------+------+-----------+------+-------+-------------+-----------+
  | ID                                   | Name     | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
  +--------------------------------------+----------+-----------+------+-----------+------+-------+-------------+-----------+
  | 47d227f2-8942-451c-b73b-90adcc8985d0 | secret.1 | 512       | 0    | 0         |      | 1     | 1.0         | False     |
  +--------------------------------------+----------+-----------+------+-----------+------+-------+-------------+-----------+
  $
  $ OS_USERNAME=demo OS_TENANT_NAME=demo nova boot --flavor 47d227f2-8942-451c-b73b-90adcc8985d0 --image cirros-0.3.1-x86_64-uec foo
  +--------------------------------------+--------------------------------------+
  | Property                             | Value                                |
  +--------------------------------------+--------------------------------------+
  | image                                | cirros-0.3.1-x86_64-uec              |
  | flavor                               | secret.1                             |
  | id                                   | 34698740-cd43-4bf8-82a8-8674347d57d5 |
  | security_groups                      | [{u'name': u'default'}]              |
  | user_id                              | a8f7158ae59a4d4ab2aafbe5de63dff6     |
  | accessIPv4                           |                                      |
  | accessIPv6                           |                                      |
  | progress                             | 0                                    |
  | config_drive                         |                                      |
  | status                               | BUILD                                |
  | updated                              | 2013-08-07T05:59:23Z                 |
  | hostId                               |                                      |
  | key_name                             | None                                 |
  | name                                 | foo                                  |
  | adminPass                            | 48gRi7qspeUL                         |
  | tenant_id                            | 89fc2fa5c447419b8a6b3d8426154b6b     |
  | created                              | 2013-08-07T05:59:23Z                 |
  | os-extended-volumes:volumes_attached | []                                   |
  | metadata                             | {}                                   |
  +--------------------------------------+--------------------------------------+
  $

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