← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1391737] [NEW] tenant id not checked in flavor-access-add

 

Public bug reported:

Nova flavor-access-add command does not validate the tenant and you can provide any random string as the tenant and it gets added. You can see the output through flavor-access-list, this can cause confusion as a tenant that does not exists gets added.
It should give a command error stating that no tenant with name or ID of '***' exists.
Openstack Version Icehouse

Steps to Reproduce:

1. Create a flavor
             $ nova flavor-create test_flavor 99 128 1 1
              +----+-------------+-----------+------+-----------+---------+-------+-------------+-----------+ 
| ID | Name        | Memory_MB | Disk | Ephemeral | Swap_MB | VCPUs | RXTX_Factor | Is_Public | 
+----+-------------+-----------+------+-----------+---------+-------+-------------+-----------+ 
| 99 | test_flavor | 128       | 1    | 0         |         | 1     | 1.0         | True      | 
+----+-------------+-----------+------+-----------+---------+-------+-------------+-----------+ 

2. Give access to any tenant that does not exist
 nova flavor-access-add 99 abcdef
 +--------------------------------------+----------------------------+
| Flavor_ID | Tenant_ID |
+--------------------------------------+----------------------------+
| 99              | abcdef |
+--------------------------------------+----------------------------+
So the flavor 99 gets added to a tenant 'abcdef' that does not exists.

** Affects: python-novaclient
     Importance: Undecided
     Assignee: Abhishek Talwar (abhishek-talwar)
         Status: New

** Project changed: nova => python-novaclient

** Changed in: python-novaclient
     Assignee: (unassigned) => Abhishek Talwar (abhishek-talwar)

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

Title:
  tenant id not checked in flavor-access-add

Status in Python client library for Nova:
  New

Bug description:
  Nova flavor-access-add command does not validate the tenant and you can provide any random string as the tenant and it gets added. You can see the output through flavor-access-list, this can cause confusion as a tenant that does not exists gets added.
  It should give a command error stating that no tenant with name or ID of '***' exists.
  Openstack Version Icehouse

  Steps to Reproduce:

  1. Create a flavor
               $ nova flavor-create test_flavor 99 128 1 1
                +----+-------------+-----------+------+-----------+---------+-------+-------------+-----------+ 
  | ID | Name        | Memory_MB | Disk | Ephemeral | Swap_MB | VCPUs | RXTX_Factor | Is_Public | 
  +----+-------------+-----------+------+-----------+---------+-------+-------------+-----------+ 
  | 99 | test_flavor | 128       | 1    | 0         |         | 1     | 1.0         | True      | 
  +----+-------------+-----------+------+-----------+---------+-------+-------------+-----------+ 

  2. Give access to any tenant that does not exist
   nova flavor-access-add 99 abcdef
   +--------------------------------------+----------------------------+
  | Flavor_ID | Tenant_ID |
  +--------------------------------------+----------------------------+
  | 99              | abcdef |
  +--------------------------------------+----------------------------+
  So the flavor 99 gets added to a tenant 'abcdef' that does not exists.

To manage notifications about this bug go to:
https://bugs.launchpad.net/python-novaclient/+bug/1391737/+subscriptions


Follow ups

References