cinder cross_az_attach uses instance AZ value

Bug #1376398 reported by Roman Podoliaka
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Fix Released
Medium
MOS Nova
4.1.x
Won't Fix
Medium
MOS Nova
5.0.x
Won't Fix
Medium
MOS Nova
5.1.x
Won't Fix
Medium
MOS Nova
6.0.x
Fix Released
Medium
MOS Nova

Bug Description

Upstream bug https://bugs.launchpad.net/nova/+bug/1255347

Steps to reproduce:

Boot 2 VMs:

nova boot ac-instance --flavor micro --image 6.5.1-latest --nic net id=neid

nova boot ac2-instance --flavor micro --image 6.5.1-latest --nic net-id=netid --availability-zone=az1b

Create volume in the same az:

$ cinder create 100 --availability-zone az1b
Attach to the instance with scheduler-picked az

$ nova volume-attach ac-instance bfdaf9f5-1f4e-4d5f-89ca-26bc839cfb0f
ERROR (BadRequest): Invalid volume: Instance and volume not in same availability_zone (HTTP 400) (Request-ID: req-75fde250-c9d8-437d-bc64-2897d82f1ad4)
Attach to the instance with explicit az:
$ nova volume-attach ac2-instance bfdaf9f5-1f4e-4d5f-89ca-26bc839cfb0f
+----------+--------------------------------------+
| Property | Value |
+----------+--------------------------------------+
| device | /dev/vdb |
| id | bfdaf9f5-1f4e-4d5f-89ca-26bc839cfb0f |
| serverId | 3f9b4366-c17d-43c0-968e-6731dc6af851 |
| volumeId | bfdaf9f5-1f4e-4d5f-89ca-26bc839cfb0f |
+----------+--------------------------------------+

tags: added: nova
description: updated
tags: added: customer-found
Revision history for this message
Dmitry Mescheryakov (dmitrymex) wrote :

Roman, please specify which version is affected. I guess it is 5.x only, right?

Changed in mos:
status: New → Incomplete
Revision history for this message
Roman Podoliaka (rpodolyaka) wrote :

Dmitry, done.

Revision history for this message
Oleksii Aleksieiev (alexzzman) wrote :

I have tested patch for icehouse proposed by Roman. It work properly.

I was able to attach volume to instance booted without AZ while still getting reject if i try to attach volume to host booted in another AZ.

Revision history for this message
Alexander Gubanov (ogubanov) wrote :

I have verified it on mos6.0 (build 56)
Proof: http://pastebin.com/cPKqx5XF

Changed in mos:
status: Fix Committed → Fix Released
Revision history for this message
Vitaly Sedelnik (vsedelnik) wrote :

The issue was fixed for 6.0, this is feature request for 5.1.1 - Won't Fix in 5.1.1-updates

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.