python-novaclient does not report a warning when a volume cannot be hotplugged to an instance
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Mirantis OpenStack | Status tracked in 10.0.x | |||||
10.0.x |
Confirmed
|
Wishlist
|
MOS Nova | |||
9.x |
Won't Fix
|
Wishlist
|
MOS Nova |
Bug Description
Detailed bug description:
In a situation when a VM instance does not have a virtio driver installed cinder volumes are attached as IDE disks. Since IDE disks cannot be hotplugged these cinder volumes stay unattached; however "nova volume-attach" command does not report that the volume cannot be attached. A message about this error is only reported into /var/log/
root@node-4:~# grep TRACE /var/log/
2016-03-14 07:18:39.544 10193 TRACE oslo_messaging.
2016-03-14 07:18:39.544 10193 TRACE oslo_messaging.
2016-03-14 07:18:39.544 10193 TRACE oslo_messaging.
2016-03-14 07:18:39.544 10193 TRACE oslo_messaging.
2016-03-14 07:18:39.544 10193 TRACE oslo_messaging.
2016-03-14 07:18:39.544 10193 TRACE oslo_messaging.
2016-03-14 07:18:39.544 10193 TRACE oslo_messaging.
2016-03-14 07:18:39.544 10193 TRACE oslo_messaging.
2016-03-14 07:18:39.544 10193 TRACE oslo_messaging.
2016-03-14 07:18:39.544 10193 TRACE oslo_messaging.
root@node-4:~#
Steps to reproduce:
root@node-1:~# glance image-create --name RouterOS --copy-from http://
root@node-1:~# nova boot --image RouterOS --flavor m1.tiny --nic net-id=
<output skipped>
root@node-1:~# cinder create --display-name test_volume 1
<output skipped>
root@node-1:~# nova volume-attach 6b85d91c-
+------
| Property | Value |
+------
| device | /dev/hdb |
| id | 33d6e5bf-
| serverId | 6b85d91c-
| volumeId | 33d6e5bf-
+------
root@node-1:~# cinder show 33d6e5bf-
+------
| Property | Value |
+------
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| created_at | 2016-03-
| display_description | None |
| display_name | test_volume |
| encrypted | False |
| id | 33d6e5bf-
| metadata | {} |
| multiattach | false |
| os-vol-
| os-vol-
| os-vol-
| os-vol-
| os-volume-
| os-volume-
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | available |
| volume_type | None |
+------
Expected results:
"nova volume-attach" command should report that a volume cannot be hot-plugged
Workaround:
Install a virtio driver into VM images and attach volumes using virtio driver.
Description of the environment:
- Operation system: Description: Ubuntu 14.04.3 LTS
- Versions of components: MOS 7.0
tags: | added: area-nova enhancement |
Changed in mos: | |
status: | New → Confirmed |
importance: | Undecided → Wishlist |
assignee: | nobody → MOS Nova (mos-nova) |
milestone: | none → 9.0 |
tags: | added: 10.0-reviewed |
Related bugs: /bugs.launchpad .net/nova/ +bug/1231874 /bugs.launchpad .net/nova/ +bug/1379212
https:/
https:/