Boot from image and create a new volume ignores availability zone
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Andriy Kurilin |
Bug Description
Boot from image and creation of a new volume does not pass instance availability zone to cinder when creating volume.
Here is a fail scenario.
Configure cinder to run volume service in different availability zones.
Cross zone volume usage should be disabled (in nova conf cinder_
[root@node-7 ~]# cinder service-list
+------
| Binary | Host | Zone | Status | State | Updated_at |
+------
| cinder-scheduler | node-10.domain.tld | internal | enabled | up | 2014-10-
| cinder-scheduler | node-7.domain.tld | internal | enabled | up | 2014-10-
| cinder-scheduler | node-8.domain.tld | internal | enabled | up | 2014-10-
| cinder-volume | node-10.reg1a | reg1a | enabled | up | 2014-10-
| cinder-volume | node-10.reg1b | reg1b | enabled | up | 2014-10-
| cinder-volume | node-7.reg1a | reg1a | enabled | up | 2014-10-
| cinder-volume | node-7.reg1b | reg1b | enabled | up | 2014-10-
| cinder-volume | node-8.reg1a | reg1a | enabled | up | 2014-10-
| cinder-volume | node-8.reg1b | reg1b | enabled | up | 2014-10-
+------
Run CLI as below to create a volume from an existing image and using it to boot an instance.
nova boot test --flavor 1 --image 32705323-
This will attempt to create volume in internal (default) availability zone. But creation will fail because there are no volume service in internal availability zone.
+------
| Property | Value |
+------
| attachments | [] |
| availability_zone | internal |
| bootable | false |
| created_at | 2014-10-
| display_description | |
| display_name | |
| encrypted | False |
| id | e358b519-
| metadata | {} |
| os-vol-
| os-vol-
| os-vol-
| os-vol-
| size | 10 |
| snapshot_id | None |
| source_volid | None |
| status | error |
| volume_type | None |
+------
The instance boot fail with error: "InvalidVolume: Invalid volume: status must be 'available'".
Changed in nova: | |
status: | Incomplete → New |
Changed in nova: | |
assignee: | Trung Trinh (trung-t-trinh) → nobody |
description: | updated |
Changed in nova: | |
assignee: | nobody → Andrey Kurilin (akurilin) |
Changed in nova: | |
importance: | Undecided → Low |
Changed in nova: | |
milestone: | none → kilo-3 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | kilo-3 → 2015.1.0 |
tags: | added: volumes |
What version of nova is this using?