** Changed in: nova
Status: Fix Committed => Fix Released
** Changed in: nova
Milestone: None => havana-3
--
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/1203250
Title:
availability_zone was not updated on time
Status in OpenStack Compute (Nova):
Fix Released
Bug description:
Step 1) Create an aggregate
root@liugya-ubuntu:~# nova aggregate-create agg1 nova
+----+------+-------------------+-------+---------------------------------+
| Id | Name | Availability Zone | Hosts | Metadata |
+----+------+-------------------+-------+---------------------------------+
| 1 | agg1 | nova | [] | {u'availability_zone': u'nova'} |
+----+------+-------------------+-------+---------------------------------+
root@liugya-ubuntu:~# nova aggregate-add-host 1 liugya-ubuntu
Aggregate 1 has been successfully updated.
+----+------+-------------------+--------------------+---------------------------------+
| Id | Name | Availability Zone | Hosts | Metadata
|
+----+------+-------------------+--------------------+---------------------------------+
| 1 | agg1 | nova | [u'liugya-ubuntu'] | {u'availability_zone':
u'nova'} |
+----+------+-------------------+--------------------+---------------------------------+
root@liugya-ubuntu:~# nova aggregate-list
+----+------+-------------------+
| Id | Name | Availability Zone |
+----+------+-------------------+
| 1 | agg1 | nova |
+----+------+-------------------+
Step 2) Update aggregate
root@liugya-ubuntu:~# nova aggregate-update 1 agg1 nova1
Aggregate 1 has been successfully updated.
+----+------+-------------------+--------------------+----------------------------------+
| Id | Name | Availability Zone | Hosts | Metadata
|
+----+------+-------------------+--------------------+----------------------------------+
| 1 | agg1 | nova1 | [u'liugya-ubuntu'] | {u'availability_zone':
u'nova1'} |
+----+------+-------------------+--------------------+----------------------------------+
root@liugya-ubuntu:~# nova aggregate-list
+----+------+-------------------+
| Id | Name | Availability Zone |
+----+------+-------------------+
| 1 | agg1 | nova1 |
+----+------+-------------------+
Step 3) Boot one instance
root@liugya-ubuntu:~# nova boot --image cirros-0.3.1-x86_64-uec --flavor 1
vm2
+--------------------------------------+--------------------------------------+
| Property | Value
|
+--------------------------------------+--------------------------------------+
| OS-EXT-STS:task_state | scheduling
|
| image | cirros-0.3.1-x86_64-uec
|
| OS-EXT-STS:vm_state | building
|
| OS-EXT-SRV-ATTR:instance_name | instance-00000002
|
| OS-SRV-USG:launched_at | None
|
| flavor | m1.tiny
|
| id | 59b66dd5-1484-4471-ba64-fc41d1dfa8b1
|
| security_groups | [{u'name': u'default'}]
|
| user_id | 5d988016150c4de0bed7f5b480b0cec8
|
| OS-DCF:diskConfig | MANUAL
|
| accessIPv4 |
|
| accessIPv6 |
|
| progress | 0
|
| OS-EXT-STS:power_state | 0
|
| OS-EXT-AZ:availability_zone | nova
|
| config_drive |
|
| status | BUILD
|
| updated | 2013-07-20T03:35:55Z
|
| hostId |
|
| OS-EXT-SRV-ATTR:host | None
|
| OS-SRV-USG:terminated_at | None
|
| key_name | None
|
| OS-EXT-SRV-ATTR:hypervisor_hostname | None
|
| name | vm2
|
| adminPass | 5oxXcm5N6LQK
|
| tenant_id | 9215cf095ae844f5aa2e7d8f1f966c1a
|
| created | 2013-07-20T03:35:55Z
|
| os-extended-volumes:volumes_attached | []
|
| metadata | {}
|
root@liugya-ubuntu:~# nova show vm2
+--------------------------------------+----------------------------------------------------------------+
| Property | Value
|
+--------------------------------------+----------------------------------------------------------------+
| status | ACTIVE
|
| updated | 2013-07-20T03:36:04Z
|
| OS-EXT-STS:task_state | None
|
| OS-EXT-SRV-ATTR:host | liugya-ubuntu
|
| key_name | None
|
| image | cirros-0.3.1-x86_64-uec
(67d33b7f-cd36-4d8d-8163-4703930f84e4) |
| private network | 10.0.0.3
|
| hostId |
8ca66826661862c21e5cce57d3351767e30685ed53c7e6ae02094563 |
| OS-EXT-STS:vm_state | active
|
| OS-EXT-SRV-ATTR:instance_name | instance-00000002
|
| OS-SRV-USG:launched_at | 2013-07-20T03:36:04.000000
|
| OS-EXT-SRV-ATTR:hypervisor_hostname | liugya-ubuntu
|
| flavor | m1.tiny (1)
|
| id | 59b66dd5-1484-4471-ba64-fc41d1dfa8b1
|
| security_groups | [{u'name': u'default'}]
|
| OS-SRV-USG:terminated_at | None
|
| user_id | 5d988016150c4de0bed7f5b480b0cec8
|
| name | vm2
|
| created | 2013-07-20T03:35:55Z
|
| tenant_id | 9215cf095ae844f5aa2e7d8f1f966c1a
|
| OS-DCF:diskConfig | MANUAL
|
| metadata | {}
|
| os-extended-volumes:volumes_attached | []
|
| accessIPv4 |
|
| accessIPv6 |
|
| progress | 0
|
| OS-EXT-STS:power_state | 1
|
| OS-EXT-AZ:availability_zone | nova
| <<< Still nova, not right, should be nova1
| config_drive |
|
+--------------------------------------+----------------------------------------------------------------+
root@liugya-ubuntu:~# nova aggregate-list
+----+------+-------------------+
| Id | Name | Availability Zone |
+----+------+-------------------+
| 1 | agg1 | nova1 |
+----+------+-------------------+
Step 4) Restart nova api, availability_zone update to the latest value
of nova1
root@liugya-ubuntu:~# nova show vm2
+--------------------------------------+----------------------------------------------------------------+
| Property | Value
|
+--------------------------------------+----------------------------------------------------------------+
| status | ACTIVE
|
| updated | 2013-07-20T03:36:04Z
|
| OS-EXT-STS:task_state | None
|
| OS-EXT-SRV-ATTR:host | liugya-ubuntu
|
| key_name | None
|
| image | cirros-0.3.1-x86_64-uec
(67d33b7f-cd36-4d8d-8163-4703930f84e4) |
| private network | 10.0.0.3
|
| hostId |
8ca66826661862c21e5cce57d3351767e30685ed53c7e6ae02094563 |
| OS-EXT-STS:vm_state | active
|
| OS-EXT-SRV-ATTR:instance_name | instance-00000002
|
| OS-SRV-USG:launched_at | 2013-07-20T03:36:04.000000
|
| OS-EXT-SRV-ATTR:hypervisor_hostname | liugya-ubuntu
|
| flavor | m1.tiny (1)
|
| id | 59b66dd5-1484-4471-ba64-fc41d1dfa8b1
|
| security_groups | [{u'name': u'default'}]
|
| OS-SRV-USG:terminated_at | None
|
| user_id | 5d988016150c4de0bed7f5b480b0cec8
|
| name | vm2
|
| created | 2013-07-20T03:35:55Z
|
| tenant_id | 9215cf095ae844f5aa2e7d8f1f966c1a
|
| OS-DCF:diskConfig | MANUAL
|
| metadata | {}
|
| os-extended-volumes:volumes_attached | []
|
| accessIPv4 |
|
| accessIPv6 |
|
| progress | 0
|
| OS-EXT-STS:power_state | 1
|
| OS-EXT-AZ:availability_zone | nova1
| <<<<<<<<
| config_drive |
|
+--------------------------------------+----------------------------------------------------------------+
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1203250/+subscriptions
--
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp