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 CryptsetupEncryptor).
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 e495aa338aeb90b 914f622b9d
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. block_device [req-61f49ff8- b814-42c0- 8cf8-ffe7b6a356 1c admin admin] [instance: 41d0c192- a1ce-45eb- a5ff-bcb96ec0d8 e5] Driver failed to attach volume 4778e71c-a1b5-4d 1d8191468e87 at /dev/vdb block_device [instance: 41d0c192- a1ce-45eb- a5ff-bcb96ec0d8 e5] Traceback (most recent call last): block_device [instance: 41d0c192- a1ce-45eb- a5ff-bcb96ec0d8 e5] File "/opt/stack/ nova/nova/ virt/block_ device. py", line 251, in attach block_device [instance: 41d0c192- a1ce-45eb- a5ff-bcb96ec0d8 e5] device_ type=self[ 'device_ type'], encryption= encryption) block_device [instance: 41d0c192- a1ce-45eb- a5ff-bcb96ec0d8 e5] File "/opt/stack/ nova/nova/ virt/libvirt/ driver. py", line 1064, in attach_volume block_device [instance: 41d0c192- a1ce-45eb- a5ff-bcb96ec0d8 e5] self._disconnec t_volume( connection_ info, disk_dev) block_device [instance: 41d0c192- a1ce-45eb- a5ff-bcb96ec0d8 e5] File "/usr/local/ lib/python2. 7/dist- packages/ oslo_utils/ excutils. py", line 85, in __exit__ block_device [instance: 41d0c192- a1ce-45eb- a5ff-bcb96ec0d8 e5] six.reraise( self.type_ , self.value, self.tb) block_device [instance: 41d0c192- a1ce-45eb- a5ff-bcb96ec0d8 e5] File "/opt/stack/ nova/nova/ virt/libvirt/ driver. py", line 1051, in attach_volume block_device [instance: 41d0c192- a1ce-45eb- a5ff-bcb96ec0d8 e5] encryptor. attach_ volume( context, **encryption) block_device [instance: 41d0c192- a1ce-45eb- a5ff-bcb96ec0d8 e5] File "/opt/stack/ nova/nova/ volume/ encryptors/ cryptsetup. py", line 93, in attach_volume block_device [instance: 41d0c192- a1ce-45eb- a5ff-bcb96ec0d8 e5] self._open_ volume( passphrase, **kwargs) block_device [instance: 41d0c192- a1ce-45eb- a5ff-bcb96ec0d8 e5] File "/opt/stack/ nova/nova/ volume/ encryptors/ cryptsetup. py", line 78, in _open_volume block_device [instance: 41d0c192- a1ce-45eb- a5ff-bcb96ec0d8 e5] check_exit_ code=True, run_as_root=True) block_device [instance: 41d0c192- a1ce-45eb- a5ff-bcb96ec0d8 e5] File "/opt/stack/ nova/nova/ utils.py" , line 206, in execute block_device [instance: 41d0c192- a1ce-45eb- a5ff-bcb96ec0d8 e5] return processutils. execute( *cmd, **kwargs) block_device [instance: 41d0c192- a1ce-45eb- a5ff-bcb96ec0d8 e5] File "/usr/local/ lib/python2. 7/dist- packages/ oslo_concurrenc y/processutils. py", line 233, in execute block_device [instance: 41d0c192- a1ce-45eb- a5ff-bcb96ec0d8 e5] cmd=sanitized_cmd) block_device [instance: 41d0c192- a1ce-45eb- a5ff-bcb96ec0d8 e5] ProcessExecutio nError: Unexpected error while running command. block_device [instance: 41d0c192- a1ce-45eb- a5ff-bcb96ec0d8 e5] Command: sudo nova-rootwrap /etc/nova/ rootwrap. conf cryptsetup create --key-file=- 36000eb37601bcf0200 36000eb37601bcf 020000000000000 36c block_device [instance: 41d0c192- a1ce-45eb- a5ff-bcb96ec0d8 e5] Exit code: 1 block_device [instance: 41d0c192- a1ce-45eb- a5ff-bcb96ec0d8 e5] Stdout: u'' block_device [instance: 41d0c192- a1ce-45eb- a5ff-bcb96ec0d8 e5] Stderr: u'' block_device [instance: 41d0c192- a1ce-45eb- a5ff-bcb96ec0d8 e5]
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 ptor).
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.