encrypted iSCSI volume attach fails when iscsi_use_multipath is enabled
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Tomoki Sekiyama | ||
Liberty |
Fix Released
|
Undecided
|
Unassigned | ||
Mitaka |
Fix Released
|
Medium
|
Lee Yarwood | ||
os-brick |
Fix Released
|
Undecided
|
Lisa Li |
Bug Description
When attempting to attach an encrypted iSCSI volume to an instance with iscsi_use_multipath set to True in nova.conf an error occurs in n-cpu.
The devstack system being used had the following nova version:
commit ab25f5f34b6ee37
Merge "instance termination with update_dns_entries set fails"
The following error occurs in n-cpu:
Stack Trace:
2015-04-02 13:46:22.641 ERROR nova.virt.
b5-b677-
2015-04-02 13:46:22.641 TRACE nova.virt.
2015-04-02 13:46:22.641 TRACE nova.virt.
2015-04-02 13:46:22.641 TRACE nova.virt.
2015-04-02 13:46:22.641 TRACE nova.virt.
2015-04-02 13:46:22.641 TRACE nova.virt.
2015-04-02 13:46:22.641 TRACE nova.virt.
2015-04-02 13:46:22.641 TRACE nova.virt.
2015-04-02 13:46:22.641 TRACE nova.virt.
2015-04-02 13:46:22.641 TRACE nova.virt.
2015-04-02 13:46:22.641 TRACE nova.virt.
2015-04-02 13:46:22.641 TRACE nova.virt.
2015-04-02 13:46:22.641 TRACE nova.virt.
2015-04-02 13:46:22.641 TRACE nova.virt.
2015-04-02 13:46:22.641 TRACE nova.virt.
2015-04-02 13:46:22.641 TRACE nova.virt.
2015-04-02 13:46:22.641 TRACE nova.virt.
2015-04-02 13:46:22.641 TRACE nova.virt.
2015-04-02 13:46:22.641 TRACE nova.virt.
2015-04-02 13:46:22.641 TRACE nova.virt.
0000000000036c /dev/mapper/
2015-04-02 13:46:22.641 TRACE nova.virt.
2015-04-02 13:46:22.641 TRACE nova.virt.
2015-04-02 13:46:22.641 TRACE nova.virt.
2015-04-02 13:46:22.641 TRACE nova.virt.
multipath-tools was installed
iscsi_use_multipath = True was set under the [libvirt] entry in nova.conf
To reproduce:
install multipath-tools
set iscsi_use_multipath to True in nova.conf under the [libvirt] section.
create an encrypted iSCSI volume and attempt to attach it to an instance (I was using CryptsetupEncry
The above error will occur in n-cpu.
Possibly related bug: https:/
description: | updated |
description: | updated |
description: | updated |
description: | updated |
Changed in nova: | |
assignee: | nobody → ugvddm (271025598-9) |
Changed in nova: | |
assignee: | ugvddm (271025598-9) → Tomoki Sekiyama (tsekiyama) |
Changed in nova: | |
status: | Confirmed → In Progress |
It appears that the local device name is completely bonkers in this case.
sudo nova-rootwrap /etc/nova/ rootwrap. conf cryptsetup create --key-file=- 36000eb37601bcf0200 36000eb37601bcf 020000000000000 36c
0000000000036c /dev/mapper/
Is just the wrong command entirely to be useful.