yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #45482
[Bug 1538484] [NEW] Renaming Flavors
Public bug reported:
I have several problems with renaming a flavor here.
I have the flavor 'astra-test-flavor'.
root@cloud:~# nova flavor-list --all
+--------------------------------------+-------------------------+-----------+------+-----------+------+-------+-------------+-----------+
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+--------------------------------------+-------------------------+-----------+------+-----------+------+-------+-------------+-----------+
| 1 | m1.tiny | 512 | 1 | 0 | | 1 | 1.0 | True |
| 2 | m1.small | 2048 | 20 | 0 | | 1 | 1.0 | True |
| 3 | m1.medium | 4096 | 40 | 0 | | 2 | 1.0 | True |
| 4 | m1.large | 8192 | 80 | 0 | | 4 | 1.0 | True |
| 5 | m1.xlarge | 16384 | 160 | 0 | | 8 | 1.0 | True |
| b3ecba5c-9432-4787-9ff3-ce0e7c08084f | astra-test-flavor | 512 | 0 | 1 | | 1 | 1.0 | True |
+--------------------------------------+-------------------------+-----------+------+-----------+------+-------+-------------+-----------+
The flavor is used by the VM 'astra-test-vm'.
root@cloud:~# nova show astra-test-vm
+--------------------------------------+------------------------------------------------------------+
| Property | Value |
+--------------------------------------+------------------------------------------------------------+
| Int-net network | 10.0.0.60 |
| OS-DCF:diskConfig | AUTO |
| OS-EXT-AZ:availability_zone | nova |
| OS-EXT-SRV-ATTR:host | kvm1.openstack3.lan |
| OS-EXT-SRV-ATTR:hypervisor_hostname | kvm1.openstack3.lan |
| OS-EXT-SRV-ATTR:instance_name | instance-00000066 |
| OS-EXT-STS:power_state | 1 |
| OS-EXT-STS:task_state | - |
| OS-EXT-STS:vm_state | active |
| OS-SRV-USG:launched_at | 2016-01-26T09:19:54.000000 |
| OS-SRV-USG:terminated_at | - |
| accessIPv4 | |
| accessIPv6 | |
| config_drive | |
| created | 2016-01-26T09:19:38Z |
| flavor | astra-test-flavor (b3ecba5c-9432-4787-9ff3-ce0e7c08084f) |
| hostId | 42a9413f62afdd8dbfb52086dffdc5f68bbc36c12ecc3740379c9d7d |
| id | b3e3f0b6-8b5c-4930-adab-ad5b0cd90d88 |
| image | Cirros-0.3.2-x86_64 (d14f288b-f7bf-45e8-8374-f7d98731dbcb) |
| key_name | PS_linux |
| metadata | {} |
| name | astra-test-vm |
| os-extended-volumes:volumes_attached | [] |
| progress | 0 |
| security_groups | default |
| status | ACTIVE |
| tenant_id | 27eaa26280904fe09637020a37112e2b |
| updated | 2016-01-26T09:19:54Z |
| user_id | f22a3f9f2235471fb512e50d004cae93 |
+--------------------------------------+------------------------------------------------------------+
I renamed the flavor 'astra-test-flavor' to 'astra-test-renamed' via
Horizon here. I can see that the flavor ID changed, too. That's wrong.
root@cloud:~# nova flavor-list --all
+--------------------------------------+-------------------------+-----------+------+-----------+------+-------+-------------+-----------+
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+--------------------------------------+-------------------------+-----------+------+-----------+------+-------+-------------+-----------+
| 1 | m1.tiny | 512 | 1 | 0 | | 1 | 1.0 | True |
| 2 | m1.small | 2048 | 20 | 0 | | 1 | 1.0 | True |
| 3 | m1.medium | 4096 | 40 | 0 | | 2 | 1.0 | True |
| 4 | m1.large | 8192 | 80 | 0 | | 4 | 1.0 | True |
| 5 | m1.xlarge | 16384 | 160 | 0 | | 8 | 1.0 | True |
| 94473765-993a-4e45-b8b1-98dcf803589c | astra-test-renamed | 512 | 0 | 1 | | 1 | 1.0 | True |
+--------------------------------------+-------------------------+-----------+------+-----------+------+-------+-------------+-----------+
Still the flavor with old ID can be retrived by 'flavor-show' command,
but it's not in 'flavor-list'. That does not look right.
root@cloud:~# nova flavor-show b3ecba5c-9432-4787-9ff3-ce0e7c08084f
+----------------------------+--------------------------------------+
| Property | Value |
+----------------------------+--------------------------------------+
| OS-FLV-DISABLED:disabled | False |
| OS-FLV-EXT-DATA:ephemeral | 1 |
| disk | 0 |
| extra_specs | {} |
| id | b3ecba5c-9432-4787-9ff3-ce0e7c08084f |
| name | astra-test-flavor |
| os-flavor-access:is_public | True |
| ram | 512 |
| rxtx_factor | 1.0 |
| swap | |
| vcpus | 1 |
+----------------------------+--------------------------------------+
The VM 'astra-test-vm' still uses the flavor with the old name and old
ID. That's wrong.
root@cloud:~# nova show astra-test-vm
+--------------------------------------+------------------------------------------------------------+
| Property | Value |
+--------------------------------------+------------------------------------------------------------+
| Int-net network | 10.0.0.60 |
| OS-DCF:diskConfig | AUTO |
| OS-EXT-AZ:availability_zone | nova |
| OS-EXT-SRV-ATTR:host | kvm1.openstack3.lan |
| OS-EXT-SRV-ATTR:hypervisor_hostname | kvm1.openstack3.lan |
| OS-EXT-SRV-ATTR:instance_name | instance-00000066 |
| OS-EXT-STS:power_state | 1 |
| OS-EXT-STS:task_state | - |
| OS-EXT-STS:vm_state | active |
| OS-SRV-USG:launched_at | 2016-01-26T09:19:54.000000 |
| OS-SRV-USG:terminated_at | - |
| accessIPv4 | |
| accessIPv6 | |
| config_drive | |
| created | 2016-01-26T09:19:38Z |
| flavor | astra-test-flavor (b3ecba5c-9432-4787-9ff3-ce0e7c08084f) |
| hostId | 42a9413f62afdd8dbfb52086dffdc5f68bbc36c12ecc3740379c9d7d |
| id | b3e3f0b6-8b5c-4930-adab-ad5b0cd90d88 |
| image | Cirros-0.3.2-x86_64 (d14f288b-f7bf-45e8-8374-f7d98731dbcb) |
| key_name | PS_linux |
| metadata | {} |
| name | astra-test-vm |
| os-extended-volumes:volumes_attached | [] |
| progress | 0 |
| security_groups | default |
| status | ACTIVE |
| tenant_id | 27eaa26280904fe09637020a37112e2b |
| updated | 2016-01-26T09:19:54Z |
| user_id | f22a3f9f2235471fb512e50d004cae93 |
+--------------------------------------+------------------------------------------------------------+
** Affects: nova
Importance: Undecided
Status: New
** Tags: flavor rename
--
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/1538484
Title:
Renaming Flavors
Status in OpenStack Compute (nova):
New
Bug description:
I have several problems with renaming a flavor here.
I have the flavor 'astra-test-flavor'.
root@cloud:~# nova flavor-list --all
+--------------------------------------+-------------------------+-----------+------+-----------+------+-------+-------------+-----------+
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+--------------------------------------+-------------------------+-----------+------+-----------+------+-------+-------------+-----------+
| 1 | m1.tiny | 512 | 1 | 0 | | 1 | 1.0 | True |
| 2 | m1.small | 2048 | 20 | 0 | | 1 | 1.0 | True |
| 3 | m1.medium | 4096 | 40 | 0 | | 2 | 1.0 | True |
| 4 | m1.large | 8192 | 80 | 0 | | 4 | 1.0 | True |
| 5 | m1.xlarge | 16384 | 160 | 0 | | 8 | 1.0 | True |
| b3ecba5c-9432-4787-9ff3-ce0e7c08084f | astra-test-flavor | 512 | 0 | 1 | | 1 | 1.0 | True |
+--------------------------------------+-------------------------+-----------+------+-----------+------+-------+-------------+-----------+
The flavor is used by the VM 'astra-test-vm'.
root@cloud:~# nova show astra-test-vm
+--------------------------------------+------------------------------------------------------------+
| Property | Value |
+--------------------------------------+------------------------------------------------------------+
| Int-net network | 10.0.0.60 |
| OS-DCF:diskConfig | AUTO |
| OS-EXT-AZ:availability_zone | nova |
| OS-EXT-SRV-ATTR:host | kvm1.openstack3.lan |
| OS-EXT-SRV-ATTR:hypervisor_hostname | kvm1.openstack3.lan |
| OS-EXT-SRV-ATTR:instance_name | instance-00000066 |
| OS-EXT-STS:power_state | 1 |
| OS-EXT-STS:task_state | - |
| OS-EXT-STS:vm_state | active |
| OS-SRV-USG:launched_at | 2016-01-26T09:19:54.000000 |
| OS-SRV-USG:terminated_at | - |
| accessIPv4 | |
| accessIPv6 | |
| config_drive | |
| created | 2016-01-26T09:19:38Z |
| flavor | astra-test-flavor (b3ecba5c-9432-4787-9ff3-ce0e7c08084f) |
| hostId | 42a9413f62afdd8dbfb52086dffdc5f68bbc36c12ecc3740379c9d7d |
| id | b3e3f0b6-8b5c-4930-adab-ad5b0cd90d88 |
| image | Cirros-0.3.2-x86_64 (d14f288b-f7bf-45e8-8374-f7d98731dbcb) |
| key_name | PS_linux |
| metadata | {} |
| name | astra-test-vm |
| os-extended-volumes:volumes_attached | [] |
| progress | 0 |
| security_groups | default |
| status | ACTIVE |
| tenant_id | 27eaa26280904fe09637020a37112e2b |
| updated | 2016-01-26T09:19:54Z |
| user_id | f22a3f9f2235471fb512e50d004cae93 |
+--------------------------------------+------------------------------------------------------------+
I renamed the flavor 'astra-test-flavor' to 'astra-test-renamed' via
Horizon here. I can see that the flavor ID changed, too. That's wrong.
root@cloud:~# nova flavor-list --all
+--------------------------------------+-------------------------+-----------+------+-----------+------+-------+-------------+-----------+
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+--------------------------------------+-------------------------+-----------+------+-----------+------+-------+-------------+-----------+
| 1 | m1.tiny | 512 | 1 | 0 | | 1 | 1.0 | True |
| 2 | m1.small | 2048 | 20 | 0 | | 1 | 1.0 | True |
| 3 | m1.medium | 4096 | 40 | 0 | | 2 | 1.0 | True |
| 4 | m1.large | 8192 | 80 | 0 | | 4 | 1.0 | True |
| 5 | m1.xlarge | 16384 | 160 | 0 | | 8 | 1.0 | True |
| 94473765-993a-4e45-b8b1-98dcf803589c | astra-test-renamed | 512 | 0 | 1 | | 1 | 1.0 | True |
+--------------------------------------+-------------------------+-----------+------+-----------+------+-------+-------------+-----------+
Still the flavor with old ID can be retrived by 'flavor-show' command,
but it's not in 'flavor-list'. That does not look right.
root@cloud:~# nova flavor-show b3ecba5c-9432-4787-9ff3-ce0e7c08084f
+----------------------------+--------------------------------------+
| Property | Value |
+----------------------------+--------------------------------------+
| OS-FLV-DISABLED:disabled | False |
| OS-FLV-EXT-DATA:ephemeral | 1 |
| disk | 0 |
| extra_specs | {} |
| id | b3ecba5c-9432-4787-9ff3-ce0e7c08084f |
| name | astra-test-flavor |
| os-flavor-access:is_public | True |
| ram | 512 |
| rxtx_factor | 1.0 |
| swap | |
| vcpus | 1 |
+----------------------------+--------------------------------------+
The VM 'astra-test-vm' still uses the flavor with the old name and old
ID. That's wrong.
root@cloud:~# nova show astra-test-vm
+--------------------------------------+------------------------------------------------------------+
| Property | Value |
+--------------------------------------+------------------------------------------------------------+
| Int-net network | 10.0.0.60 |
| OS-DCF:diskConfig | AUTO |
| OS-EXT-AZ:availability_zone | nova |
| OS-EXT-SRV-ATTR:host | kvm1.openstack3.lan |
| OS-EXT-SRV-ATTR:hypervisor_hostname | kvm1.openstack3.lan |
| OS-EXT-SRV-ATTR:instance_name | instance-00000066 |
| OS-EXT-STS:power_state | 1 |
| OS-EXT-STS:task_state | - |
| OS-EXT-STS:vm_state | active |
| OS-SRV-USG:launched_at | 2016-01-26T09:19:54.000000 |
| OS-SRV-USG:terminated_at | - |
| accessIPv4 | |
| accessIPv6 | |
| config_drive | |
| created | 2016-01-26T09:19:38Z |
| flavor | astra-test-flavor (b3ecba5c-9432-4787-9ff3-ce0e7c08084f) |
| hostId | 42a9413f62afdd8dbfb52086dffdc5f68bbc36c12ecc3740379c9d7d |
| id | b3e3f0b6-8b5c-4930-adab-ad5b0cd90d88 |
| image | Cirros-0.3.2-x86_64 (d14f288b-f7bf-45e8-8374-f7d98731dbcb) |
| key_name | PS_linux |
| metadata | {} |
| name | astra-test-vm |
| os-extended-volumes:volumes_attached | [] |
| progress | 0 |
| security_groups | default |
| status | ACTIVE |
| tenant_id | 27eaa26280904fe09637020a37112e2b |
| updated | 2016-01-26T09:19:54Z |
| user_id | f22a3f9f2235471fb512e50d004cae93 |
+--------------------------------------+------------------------------------------------------------+
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1538484/+subscriptions
Follow ups