← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1809689] [NEW] Using volume with az creating instance failed when configure ’cross_az_attach‘ on 'false'

 

Public bug reported:

Description
===========
Configure nova configuration item 'cross_az_attch' on 'false'. Using a volume with availability_zone property to create instance failed when all compute nodes are in same availability_zone.

Steps to reproduce
==================
1.Configure 'cross_az_attch' on 'false'.
openstack-config --set /etc/nova/nova.conf cinder cross_az_attach false

2.Available volume with 'nova' az property.
cinder show eb22acff-249c-43f4-82ac-84fa2091eee5
+--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|            Property            |                                                                                                                                                                                        Value                                                                                                                                                                                         |
+--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|          attachments           |                                                                                                                                                                                          []                                                                                                                                                                                          |
|       availability_zone        |                                                                                                                                                                                         nova                                                                                                                                                                                         |
|            bootable            |                                                                                                                                                                                         true                                                                                                                                                                                         |
|      consistencygroup_id       |                                                                                                                                                                                         None                                                                                                                                                                                         |
|           created_at           |                                                                                                                                                                              2018-12-10T22:15:04.000000                                                                                                                                                                              |
|          description           |                                                                                                                                                                                                                                                                                                                                                                                      |
|           encrypted            |                                                                                                                                                                                        False                                                                                                                                                                                         |
|               id               |                                                                                                                                                                         eb22acff-249c-43f4-82ac-84fa2091eee5                                                                                                                                                                         |
|            metadata            |                                                                                                                                                                                {'readonly': 'False'}                                                                                                                                                                                 |
|        migration_status        |                                                                                                                                                                                         None                                                                                                                                                                                         |
|          multiattach           |                                                                                                                                                                                        False                                                                                                                                                                                         |
|              name              |                                                                                                                                                                                        test3                                                                                                                                                                                         |
|     os-vol-host-attr:host      |                                                                                                                                                                           cinder@CLOVESTORAGE#CLOVESTORAGE                                                                                                                                                                           |
| os-vol-mig-status-attr:migstat |                                                                                                                                                                                         None                                                                                                                                                                                         |
| os-vol-mig-status-attr:name_id |                                                                                                                                                                                         None                                                                                                                                                                                         |
|  os-vol-tenant-attr:tenant_id  |                                                                                                                                                                           3e59147e467f4528a9e5dc2122232559                                                                                                                                                                           |
|       replication_status       |                                                                                                                                                                                       disabled                                                                                                                                                                                       |
|              size              |                                                                                                                                                                                          1                                                                                                                                                                                           |
|          snapshot_id           |                                                                                                                                                                                         None                                                                                                                                                                                         |
|          source_volid          |                                                                                                                                                                                         None                                                                                                                                                                                         |
|             status             |                                                                                                                                                                                      available                                                                                                                                                                                       |
|           updated_at           |                                                                                                                                                                              2018-12-10T22:25:20.000000                                                                                                                                                                              |
|            user_id             |                                                                                                                                                                           b120e57f3d124208b94deb63c8d25fa9                                                                                                                                                                           |
|     volume_image_metadata      | {'description': '', 'used_reference': '1', 'url': '', 'container_format': 'bare', 'min_ram': '0', 'disk_format': 'raw', 'image_name': 'cirros_cloud-init.img', 'fileName': 'cirros_cloud-init.img', 'image_id': 'ca402663-120e-4c42-bc02-6d1fad7fbd63', 'framework': '', 'image_type': 'image', 'min_disk': '0', 'checksum': '64d7c1cd2b6f60c92c14662941cb7913', 'size': '13167616'} |
|          volume_type           |                                                                                                                                                                                         None                                                                                                                                                                                         |
+--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

3.All compute_nodes are in 'nova' availability_zone.
nova availability-zone-list
+-----------------------+----------------------------------------+
| Name                  | Status                                 |
+-----------------------+----------------------------------------+
| internal              | available                              |
| |- host-10-43-239-5   |                                        |
| | |- nova-conductor   | enabled :-) 2018-12-17T15:19:01.000000 |
| | |- nova-consoleauth | enabled :-) 2018-12-17T15:19:05.000000 |
| | |- nova-monitor     | enabled :-) 2018-12-17T15:18:58.000000 |
| | |- nova-scheduler   | enabled :-) 2018-12-17T15:18:58.000000 |
| | |- nova-pointsman   | enabled :-) 2018-12-17T15:19:02.000000 |
| nova                  | available                              |
| |- E9000slot16        |                                        |
| | |- nova-storage     | enabled :-) 2018-12-17T15:18:57.000000 |
| | |- nova-compute     | enabled :-) 2018-12-17T15:19:03.000000 |
| |- E9000slot5         |                                        |
| | |- nova-storage     | enabled :-) 2018-12-17T15:19:04.000000 |
| | |- nova-compute     | enabled :-) 2018-12-17T15:18:58.000000 |
| |- E9000slot6         |                                        |
| | |- nova-storage     | enabled :-) 2018-12-17T15:18:57.000000 |
| | |- nova-compute     | enabled :-) 2018-12-17T15:19:06.000000 |
+-----------------------+----------------------------------------+

4.using the volume boot instance failed without assigning 'nova' availability_zone.
nova boot --boot-volume eb22acff-249c-43f4-82ac-84fa2091eee5 --flavor 652c1ad2-4a40-4cea-8826-9fa76c8deb21 --nic net-id=4859aa61-287c-477d-9872-3e825b775d3b test-volume
ERROR (BadRequest): Invalid volume: Instance 8324 and volume eb22acff-249c-43f4-82ac-84fa2091eee5 are not in the same availability_zone. Instance is in None. Volume is in nova (HTTP 400) (Request-ID: req-93261088-52d5-4ba0-8801-1c88cb1319c6)

Expected result
===============
Boot instance success.

Actual result
=============
raise 400 error

Environment
===========
1. Exact version of OpenStack you are running. See the following
   Pike

2. Which hypervisor did you use?
   Libvirt + KVM

3. Which storage type did you use?
   Ceph

3. Which networking type did you use?
   Neutron with OpenVSwitch

Logs & Configs
==============
ERROR (BadRequest): Invalid volume: Instance 8324 and volume eb22acff-249c-43f4-82ac-84fa2091eee5 are not in the same availability_zone. Instance is in None. Volume is in nova (HTTP 400) (Request-ID: req-93261088-52d5-4ba0-8801-1c88cb1319c6)

** Affects: nova
     Importance: Undecided
         Status: New

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

Title:
  Using volume with az creating instance failed when configure
  ’cross_az_attach‘ on 'false'

Status in OpenStack Compute (nova):
  New

Bug description:
  Description
  ===========
  Configure nova configuration item 'cross_az_attch' on 'false'. Using a volume with availability_zone property to create instance failed when all compute nodes are in same availability_zone.

  Steps to reproduce
  ==================
  1.Configure 'cross_az_attch' on 'false'.
  openstack-config --set /etc/nova/nova.conf cinder cross_az_attach false

  2.Available volume with 'nova' az property.
  cinder show eb22acff-249c-43f4-82ac-84fa2091eee5
  +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  |            Property            |                                                                                                                                                                                        Value                                                                                                                                                                                         |
  +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  |          attachments           |                                                                                                                                                                                          []                                                                                                                                                                                          |
  |       availability_zone        |                                                                                                                                                                                         nova                                                                                                                                                                                         |
  |            bootable            |                                                                                                                                                                                         true                                                                                                                                                                                         |
  |      consistencygroup_id       |                                                                                                                                                                                         None                                                                                                                                                                                         |
  |           created_at           |                                                                                                                                                                              2018-12-10T22:15:04.000000                                                                                                                                                                              |
  |          description           |                                                                                                                                                                                                                                                                                                                                                                                      |
  |           encrypted            |                                                                                                                                                                                        False                                                                                                                                                                                         |
  |               id               |                                                                                                                                                                         eb22acff-249c-43f4-82ac-84fa2091eee5                                                                                                                                                                         |
  |            metadata            |                                                                                                                                                                                {'readonly': 'False'}                                                                                                                                                                                 |
  |        migration_status        |                                                                                                                                                                                         None                                                                                                                                                                                         |
  |          multiattach           |                                                                                                                                                                                        False                                                                                                                                                                                         |
  |              name              |                                                                                                                                                                                        test3                                                                                                                                                                                         |
  |     os-vol-host-attr:host      |                                                                                                                                                                           cinder@CLOVESTORAGE#CLOVESTORAGE                                                                                                                                                                           |
  | os-vol-mig-status-attr:migstat |                                                                                                                                                                                         None                                                                                                                                                                                         |
  | os-vol-mig-status-attr:name_id |                                                                                                                                                                                         None                                                                                                                                                                                         |
  |  os-vol-tenant-attr:tenant_id  |                                                                                                                                                                           3e59147e467f4528a9e5dc2122232559                                                                                                                                                                           |
  |       replication_status       |                                                                                                                                                                                       disabled                                                                                                                                                                                       |
  |              size              |                                                                                                                                                                                          1                                                                                                                                                                                           |
  |          snapshot_id           |                                                                                                                                                                                         None                                                                                                                                                                                         |
  |          source_volid          |                                                                                                                                                                                         None                                                                                                                                                                                         |
  |             status             |                                                                                                                                                                                      available                                                                                                                                                                                       |
  |           updated_at           |                                                                                                                                                                              2018-12-10T22:25:20.000000                                                                                                                                                                              |
  |            user_id             |                                                                                                                                                                           b120e57f3d124208b94deb63c8d25fa9                                                                                                                                                                           |
  |     volume_image_metadata      | {'description': '', 'used_reference': '1', 'url': '', 'container_format': 'bare', 'min_ram': '0', 'disk_format': 'raw', 'image_name': 'cirros_cloud-init.img', 'fileName': 'cirros_cloud-init.img', 'image_id': 'ca402663-120e-4c42-bc02-6d1fad7fbd63', 'framework': '', 'image_type': 'image', 'min_disk': '0', 'checksum': '64d7c1cd2b6f60c92c14662941cb7913', 'size': '13167616'} |
  |          volume_type           |                                                                                                                                                                                         None                                                                                                                                                                                         |
  +--------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

  3.All compute_nodes are in 'nova' availability_zone.
  nova availability-zone-list
  +-----------------------+----------------------------------------+
  | Name                  | Status                                 |
  +-----------------------+----------------------------------------+
  | internal              | available                              |
  | |- host-10-43-239-5   |                                        |
  | | |- nova-conductor   | enabled :-) 2018-12-17T15:19:01.000000 |
  | | |- nova-consoleauth | enabled :-) 2018-12-17T15:19:05.000000 |
  | | |- nova-monitor     | enabled :-) 2018-12-17T15:18:58.000000 |
  | | |- nova-scheduler   | enabled :-) 2018-12-17T15:18:58.000000 |
  | | |- nova-pointsman   | enabled :-) 2018-12-17T15:19:02.000000 |
  | nova                  | available                              |
  | |- E9000slot16        |                                        |
  | | |- nova-storage     | enabled :-) 2018-12-17T15:18:57.000000 |
  | | |- nova-compute     | enabled :-) 2018-12-17T15:19:03.000000 |
  | |- E9000slot5         |                                        |
  | | |- nova-storage     | enabled :-) 2018-12-17T15:19:04.000000 |
  | | |- nova-compute     | enabled :-) 2018-12-17T15:18:58.000000 |
  | |- E9000slot6         |                                        |
  | | |- nova-storage     | enabled :-) 2018-12-17T15:18:57.000000 |
  | | |- nova-compute     | enabled :-) 2018-12-17T15:19:06.000000 |
  +-----------------------+----------------------------------------+

  4.using the volume boot instance failed without assigning 'nova' availability_zone.
  nova boot --boot-volume eb22acff-249c-43f4-82ac-84fa2091eee5 --flavor 652c1ad2-4a40-4cea-8826-9fa76c8deb21 --nic net-id=4859aa61-287c-477d-9872-3e825b775d3b test-volume
  ERROR (BadRequest): Invalid volume: Instance 8324 and volume eb22acff-249c-43f4-82ac-84fa2091eee5 are not in the same availability_zone. Instance is in None. Volume is in nova (HTTP 400) (Request-ID: req-93261088-52d5-4ba0-8801-1c88cb1319c6)

  Expected result
  ===============
  Boot instance success.

  Actual result
  =============
  raise 400 error

  Environment
  ===========
  1. Exact version of OpenStack you are running. See the following
     Pike

  2. Which hypervisor did you use?
     Libvirt + KVM

  3. Which storage type did you use?
     Ceph

  3. Which networking type did you use?
     Neutron with OpenVSwitch

  Logs & Configs
  ==============
  ERROR (BadRequest): Invalid volume: Instance 8324 and volume eb22acff-249c-43f4-82ac-84fa2091eee5 are not in the same availability_zone. Instance is in None. Volume is in nova (HTTP 400) (Request-ID: req-93261088-52d5-4ba0-8801-1c88cb1319c6)

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