Activity log for bug #1317515

Date Who What changed Old value New value Message
2014-05-08 13:15:49 Julie Pichon bug added bug
2014-05-08 13:23:26 Julie Pichon description I can use a random string to represent the tenant when calling flavor-access-create, and it will be shown in the flavor-access-list output even though it has no meaning and won't work. This causes confusion for users, who use the command to add tenants by name and then wonder why they can't access the new flavour (e.g. bug 1083602, bug 1315479). Steps to reproduce: 1. Create a private flavour $ nova flavor-create --is-public false abcdef auto 1 1 1 +--------------------------------------+--------+-----------+------+-----------+------+-------+-------------+-----------+ | ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public | +--------------------------------------+--------+-----------+------+-----------+------+-------+-------------+-----------+ | f349c9a1-ce16-4511-9da0-eeced2f1baa4 | abcdef | 1 | 1 | 0 | | 1 | 1.0 | False | +--------------------------------------+--------+-----------+------+-----------+------+-------+-------------+-----------+ 2. Give access to a tenant by name $ nova flavor-access-add f349c9a1-ce16-4511-9da0-eeced2f1baa4 demo 3. It looks like it was added correctly, but if I do 'nova flavor-list' with a user from the demo tenant it will not show the flavour. $ nova flavor-access-list --flavor f349c9a1-ce16-4511-9da0-eeced2f1baa4 +--------------------------------------+-----------+ | Flavor_ID | Tenant_ID | +--------------------------------------+-----------+ | f349c9a1-ce16-4511-9da0-eeced2f1baa4 | demo | +--------------------------------------+-----------+ The name doesn't need to exist at all, I can successfully add random strings: $ nova flavor-access-add f349c9a1-ce16-4511-9da0-eeced2f1baa4 this-tenant-does-not-exist +--------------------------------------+----------------------------+ | Flavor_ID | Tenant_ID | +--------------------------------------+----------------------------+ | f349c9a1-ce16-4511-9da0-eeced2f1baa4 | demo | | f349c9a1-ce16-4511-9da0-eeced2f1baa4 | this-tenant-does-not-exist | +--------------------------------------+----------------------------+ I think we shouldn't allow invalid IDs when running "nova flavor-access-add". I can use a random string to represent the tenant when calling flavor-access-add, and it will be shown in the flavor-access-list output even though it has no meaning and won't work. This causes confusion for users, who use the command to add tenants by name and then wonder why they can't access the new flavour (e.g. bug 1083602, bug 1315479). Steps to reproduce: 1. Create a private flavour $ nova flavor-create --is-public false abcdef auto 1 1 1 +--------------------------------------+--------+-----------+------+-----------+------+-------+-------------+-----------+ | ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public | +--------------------------------------+--------+-----------+------+-----------+------+-------+-------------+-----------+ | f349c9a1-ce16-4511-9da0-eeced2f1baa4 | abcdef | 1 | 1 | 0 | | 1 | 1.0 | False | +--------------------------------------+--------+-----------+------+-----------+------+-------+-------------+-----------+ 2. Give access to a tenant by name $ nova flavor-access-add f349c9a1-ce16-4511-9da0-eeced2f1baa4 demo 3. It looks like it was added correctly, but if I do 'nova flavor-list' with a user from the demo tenant it will not show the flavour. $ nova flavor-access-list --flavor f349c9a1-ce16-4511-9da0-eeced2f1baa4 +--------------------------------------+-----------+ | Flavor_ID | Tenant_ID | +--------------------------------------+-----------+ | f349c9a1-ce16-4511-9da0-eeced2f1baa4 | demo | +--------------------------------------+-----------+ The name doesn't need to exist at all, I can successfully add random strings: $ nova flavor-access-add f349c9a1-ce16-4511-9da0-eeced2f1baa4 this-tenant-does-not-exist +--------------------------------------+----------------------------+ | Flavor_ID | Tenant_ID | +--------------------------------------+----------------------------+ | f349c9a1-ce16-4511-9da0-eeced2f1baa4 | demo | | f349c9a1-ce16-4511-9da0-eeced2f1baa4 | this-tenant-does-not-exist | +--------------------------------------+----------------------------+ I think we shouldn't allow invalid IDs when running "nova flavor-access-add".
2014-05-09 03:49:46 Thang Pham nova: assignee Thang Pham (thang-pham)
2014-05-21 16:20:38 Tracy Jones tags compute
2014-05-21 16:20:47 Tracy Jones tags compute api
2014-06-23 01:53:43 Christopher Yeoh nova: status New Confirmed
2014-09-08 11:52:55 Davanum Srinivas (DIMS) nova: importance Undecided Low
2014-11-11 11:12:30 Abhishek Talwar nova: assignee Thang Pham (thang-pham) Abhishek Talwar (abhishek-talwar)
2014-11-11 12:27:58 Thang Pham nova: assignee Abhishek Talwar (abhishek-talwar) Thang Pham (thang-pham)
2014-12-29 17:24:01 OpenStack Infra nova: status Confirmed In Progress
2015-03-04 13:11:21 Davanum Srinivas (DIMS) nova: status In Progress Confirmed
2015-07-30 05:17:59 Bruno Lago bug task added cinder
2015-07-30 05:18:12 Bruno Lago bug task added neutron
2015-09-30 12:11:42 Vincent Legoll bug added subscriber Vincent Legoll
2015-11-22 11:08:08 Gary Kotton bug task deleted neutron
2016-01-09 20:29:08 Sheel Rana bug added subscriber Sheel Rana
2016-02-12 13:57:54 Sean Dague marked as duplicate 1544989