← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1446990] [NEW] Create VM with selected Availability Zone will always return information with default AZ

 

Public bug reported:

Version: Juno

using multinode configuration, 3 compute nodes.

Reproduce steps:
1. create 2 availability-zones

root@controller:~# nova availability-zone-list
+-----------------------+-----------------------------------------------------------------+
| Name                  | Status                                                       |
+-----------------------+-----------------------------------------------------------------+
| internal              | available                                                     |
| |- controller         |                                                                |
| | |- nova-conductor   | enabled :-) 2015-04-22T07:02:00.000000 |
| | |- nova-cert        | enabled :-) 2015-04-22T07:02:00.000000     |
| | |- nova-consoleauth | enabled :-) 2015-04-22T07:02:00.000000 |
| | |- nova-scheduler   | enabled :-) 2015-04-22T07:02:00.000000  |
| My_AZ                 | available                                                  |
| |- compute3           |                                                             |
| | |- nova-compute     | enabled :-) 2015-04-22T07:02:02.000000 |
| nova                  | available                                                    |
| |- compute2           |                                                             |
| | |- nova-compute     | enabled :-) 2015-04-22T07:02:02.000000 |
+-----------------------+-----------------------------------------------------------------+

2. create an instance with selected az information as My_AZ (the nova az
is the default az):

root@controller:~# nova boot --flavor 2 --image a64ac92f-7339-45a9-92dd-05f35db64995 --nic net-id=2db1b733-7433-4994-93aa-ce18fcb059cc --availability-zone My_AZ AZ_Test1
+--------------------------------------+---------------------------------------------------------------------------+
| Property                             | Value                                                                  |
+--------------------------------------+---------------------------------------------------------------------------+
| OS-DCF:diskConfig                                     | MANUAL                                        |
| OS-EXT-AZ:availability_zone                        | nova                                             |
| OS-EXT-SRV-ATTR:host                               | -                                                  |
| OS-EXT-SRV-ATTR:hypervisor_hostname        | -                                                  |
| OS-EXT-SRV-ATTR:instance_name                 | instance-00003de6                         |
| OS-EXT-STS:power_state                             | 0                                                 |
| OS-EXT-STS:task_state                                | scheduling                                    |
| OS-EXT-STS:vm_state                                 | building                                       |
| OS-SRV-USG:launched_at                            | -                                                 |
| OS-SRV-USG:terminated_at                          | -                                                 |
| accessIPv4                                                |                                                   |
| accessIPv6                                                |                                                   |
| adminPass                                                | T7VZnMBVK3Ed                             |
| config_drive                                              |                                                   |
| created                                                     | 2015-04-22T07:02:19Z                  |
| flavor                                                      | m1.small (2)                                  |
| hostId                                                      |                                                   |
| id                                            | d25108fe-0f7e-4047-8e6f-c23c7fd96937          |
| image                                 | ubuntu (a64ac92f-7339-45a9-92dd-05f35db64995) |
| key_name                                                   | -                                             |
| metadata                             | {}                                            |
| name                                 | AZ_Test1                                      |
| os-extended-volumes:volumes_attached | []                                            |
| progress                             | 0                                             |
| security_groups                      | default                                       |
| status                               | BUILD                                         |
| tenant_id                            | 8e5d4fc300e04f1486dcd57dd65d0449              |
| updated                              | 2015-04-22T07:02:20Z                          |
| user_id                              | 3a0a4b6e9e3c456cadf5eac46871e6c0              |
+--------------------------------------+---------------------------------------------------------------------------+

nova will automatically return a list about this instance and the OS-
EXT-AZ:availability_zone  is nova (the default az), which is incorrect.

3.after the instance is successfully built, using nova show uuid , the
az is then correct.

root@controller:~# nova show d25108fe-0f7e-4047-8e6f-c23c7fd96937
+--------------------------------------+----------------------------------------------------------+
| Property                             | Value                                                    |
+--------------------------------------+----------------------------------------------------------+
| OS-DCF:diskConfig                    | MANUAL                                                   |
| OS-EXT-AZ:availability_zone          | My_AZ                                                    |
| OS-EXT-SRV-ATTR:host                 | compute3                                                 |
| OS-EXT-SRV-ATTR:hypervisor_hostname  | compute3                                                 |
| OS-EXT-SRV-ATTR:instance_name        | instance-00003de6                                        |
| OS-EXT-STS:power_state               | 1                                                        |
| OS-EXT-STS:task_state                | -                                                        |
| OS-EXT-STS:vm_state                  | active                                                   |
| OS-SRV-USG:launched_at               | 2015-04-22T07:02:31.000000                               |
| OS-SRV-USG:terminated_at             | -                                                        |
| accessIPv4                           |                                                          |
| accessIPv6                           |                                                          |
| config_drive                         |                                                          |
| created                              | 2015-04-22T07:02:19Z                                     |
| flavor                               | m1.small (2)                                             |
| hostId                               | 4a6570f72b06666925cd93db7e3ce6a51dc079c76a77e4119873bea9 |
| id                                   | d25108fe-0f7e-4047-8e6f-c23c7fd96937                     |
| image                                | ubuntu (a64ac92f-7339-45a9-92dd-05f35db64995)            |
| key_name                             | -                                                        |
| metadata                             | {}                                                       |
| name                                 | AZ_Test1                                                 |
| os-extended-volumes:volumes_attached | []                                                       |
| progress                             | 0                                                        |
| security_groups                      | default                                                  |
| status                               | ACTIVE                                                   |
| tenant_id                            | 8e5d4fc300e04f1486dcd57dd65d0449                         |
| updated                              | 2015-04-22T07:02:23Z                                     |
| user_id                              | 3a0a4b6e9e3c456cadf5eac46871e6c0                         |
| test network              | 192.168.1.22                                             |
+--------------------------------------+----------------------------------------------------------+

** Affects: nova
     Importance: Undecided
     Assignee: Zhenyu Zheng (zhengzhenyu)
         Status: Confirmed

** Changed in: nova
     Assignee: (unassigned) => Zhenyu Zheng (zhengzhenyu)

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

Title:
  Create VM with selected Availability Zone will always return
  information with default AZ

Status in OpenStack Compute (Nova):
  Confirmed

Bug description:
  Version: Juno

  using multinode configuration, 3 compute nodes.

  Reproduce steps:
  1. create 2 availability-zones

  root@controller:~# nova availability-zone-list
  +-----------------------+-----------------------------------------------------------------+
  | Name                  | Status                                                       |
  +-----------------------+-----------------------------------------------------------------+
  | internal              | available                                                     |
  | |- controller         |                                                                |
  | | |- nova-conductor   | enabled :-) 2015-04-22T07:02:00.000000 |
  | | |- nova-cert        | enabled :-) 2015-04-22T07:02:00.000000     |
  | | |- nova-consoleauth | enabled :-) 2015-04-22T07:02:00.000000 |
  | | |- nova-scheduler   | enabled :-) 2015-04-22T07:02:00.000000  |
  | My_AZ                 | available                                                  |
  | |- compute3           |                                                             |
  | | |- nova-compute     | enabled :-) 2015-04-22T07:02:02.000000 |
  | nova                  | available                                                    |
  | |- compute2           |                                                             |
  | | |- nova-compute     | enabled :-) 2015-04-22T07:02:02.000000 |
  +-----------------------+-----------------------------------------------------------------+

  2. create an instance with selected az information as My_AZ (the nova
  az is the default az):

  root@controller:~# nova boot --flavor 2 --image a64ac92f-7339-45a9-92dd-05f35db64995 --nic net-id=2db1b733-7433-4994-93aa-ce18fcb059cc --availability-zone My_AZ AZ_Test1
  +--------------------------------------+---------------------------------------------------------------------------+
  | Property                             | Value                                                                  |
  +--------------------------------------+---------------------------------------------------------------------------+
  | OS-DCF:diskConfig                                     | MANUAL                                        |
  | OS-EXT-AZ:availability_zone                        | nova                                             |
  | OS-EXT-SRV-ATTR:host                               | -                                                  |
  | OS-EXT-SRV-ATTR:hypervisor_hostname        | -                                                  |
  | OS-EXT-SRV-ATTR:instance_name                 | instance-00003de6                         |
  | OS-EXT-STS:power_state                             | 0                                                 |
  | OS-EXT-STS:task_state                                | scheduling                                    |
  | OS-EXT-STS:vm_state                                 | building                                       |
  | OS-SRV-USG:launched_at                            | -                                                 |
  | OS-SRV-USG:terminated_at                          | -                                                 |
  | accessIPv4                                                |                                                   |
  | accessIPv6                                                |                                                   |
  | adminPass                                                | T7VZnMBVK3Ed                             |
  | config_drive                                              |                                                   |
  | created                                                     | 2015-04-22T07:02:19Z                  |
  | flavor                                                      | m1.small (2)                                  |
  | hostId                                                      |                                                   |
  | id                                            | d25108fe-0f7e-4047-8e6f-c23c7fd96937          |
  | image                                 | ubuntu (a64ac92f-7339-45a9-92dd-05f35db64995) |
  | key_name                                                   | -                                             |
  | metadata                             | {}                                            |
  | name                                 | AZ_Test1                                      |
  | os-extended-volumes:volumes_attached | []                                            |
  | progress                             | 0                                             |
  | security_groups                      | default                                       |
  | status                               | BUILD                                         |
  | tenant_id                            | 8e5d4fc300e04f1486dcd57dd65d0449              |
  | updated                              | 2015-04-22T07:02:20Z                          |
  | user_id                              | 3a0a4b6e9e3c456cadf5eac46871e6c0              |
  +--------------------------------------+---------------------------------------------------------------------------+

  nova will automatically return a list about this instance and the OS-
  EXT-AZ:availability_zone  is nova (the default az), which is
  incorrect.

  3.after the instance is successfully built, using nova show uuid , the
  az is then correct.

  root@controller:~# nova show d25108fe-0f7e-4047-8e6f-c23c7fd96937
  +--------------------------------------+----------------------------------------------------------+
  | Property                             | Value                                                    |
  +--------------------------------------+----------------------------------------------------------+
  | OS-DCF:diskConfig                    | MANUAL                                                   |
  | OS-EXT-AZ:availability_zone          | My_AZ                                                    |
  | OS-EXT-SRV-ATTR:host                 | compute3                                                 |
  | OS-EXT-SRV-ATTR:hypervisor_hostname  | compute3                                                 |
  | OS-EXT-SRV-ATTR:instance_name        | instance-00003de6                                        |
  | OS-EXT-STS:power_state               | 1                                                        |
  | OS-EXT-STS:task_state                | -                                                        |
  | OS-EXT-STS:vm_state                  | active                                                   |
  | OS-SRV-USG:launched_at               | 2015-04-22T07:02:31.000000                               |
  | OS-SRV-USG:terminated_at             | -                                                        |
  | accessIPv4                           |                                                          |
  | accessIPv6                           |                                                          |
  | config_drive                         |                                                          |
  | created                              | 2015-04-22T07:02:19Z                                     |
  | flavor                               | m1.small (2)                                             |
  | hostId                               | 4a6570f72b06666925cd93db7e3ce6a51dc079c76a77e4119873bea9 |
  | id                                   | d25108fe-0f7e-4047-8e6f-c23c7fd96937                     |
  | image                                | ubuntu (a64ac92f-7339-45a9-92dd-05f35db64995)            |
  | key_name                             | -                                                        |
  | metadata                             | {}                                                       |
  | name                                 | AZ_Test1                                                 |
  | os-extended-volumes:volumes_attached | []                                                       |
  | progress                             | 0                                                        |
  | security_groups                      | default                                                  |
  | status                               | ACTIVE                                                   |
  | tenant_id                            | 8e5d4fc300e04f1486dcd57dd65d0449                         |
  | updated                              | 2015-04-22T07:02:23Z                                     |
  | user_id                              | 3a0a4b6e9e3c456cadf5eac46871e6c0                         |
  | test network              | 192.168.1.22                                             |
  +--------------------------------------+----------------------------------------------------------+

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


Follow ups

References