Eqlx: Encrypted volumes fails to attach - cryptsetup name is too long Edit

Bug #1440187 reported by Rajini Karthik
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
New
Undecided
Unassigned

Bug Description

Encrypted volumes are failing to attach due to long volume names

When running eqlx storage with Cinder and the following TestEncryptedCinderVolumes tests:

cryptsetup complains about the name being too long:

015-04-03 15:54:52.499 ERROR nova.virt.libvirt.driver [req-5874a880-6cb9-4a55-ab99-637e3bf76a06 TestEncryptedCinderVolumes-616200795 TestEncryptedCinderVolumes-1486254354] [instance: 803f6b0f-acab-476f-b4f7-d72e1f9c1c98] Failed to attach volume at mountpoint: /dev/vdb
2015-04-03 15:54:52.499 9358 TRACE nova.virt.libvirt.driver [instance: 803f6b0f-acab-476f-b4f7-d72e1f9c1c98] Traceback (most recent call last):
2015-04-03 15:54:52.499 9358 TRACE nova.virt.libvirt.driver [instance: 803f6b0f-acab-476f-b4f7-d72e1f9c1c98] File "/opt/stack/nova/nova/virt/libvirt/driver.py", line 1050, in attach_volume
2015-04-03 15:54:52.499 9358 TRACE nova.virt.libvirt.driver [instance: 803f6b0f-acab-476f-b4f7-d72e1f9c1c98] encryptor.attach_volume(context, **encryption)
2015-04-03 15:54:52.499 9358 TRACE nova.virt.libvirt.driver [instance: 803f6b0f-acab-476f-b4f7-d72e1f9c1c98] File "/opt/stack/nova/nova/volume/encryptors/cryptsetup.py", line 86, in attach_volume
2015-04-03 15:54:52.499 9358 TRACE nova.virt.libvirt.driver [instance: 803f6b0f-acab-476f-b4f7-d72e1f9c1c98] self._open_volume(passphrase, **kwargs)
2015-04-03 15:54:52.499 9358 TRACE nova.virt.libvirt.driver [instance: 803f6b0f-acab-476f-b4f7-d72e1f9c1c98] File "/opt/stack/nova/nova/volume/encryptors/cryptsetup.py", line 71, in _open_volume
2015-04-03 15:54:52.499 9358 TRACE nova.virt.libvirt.driver [instance: 803f6b0f-acab-476f-b4f7-d72e1f9c1c98] check_exit_code=True, run_as_root=True)
2015-04-03 15:54:52.499 9358 TRACE nova.virt.libvirt.driver [instance: 803f6b0f-acab-476f-b4f7-d72e1f9c1c98] File "/opt/stack/nova/nova/utils.py", line 206, in execute
2015-04-03 15:54:52.499 9358 TRACE nova.virt.libvirt.driver [instance: 803f6b0f-acab-476f-b4f7-d72e1f9c1c98] return processutils.execute(*cmd, **kwargs)
2015-04-03 15:54:52.499 9358 TRACE nova.virt.libvirt.driver [instance: 803f6b0f-acab-476f-b4f7-d72e1f9c1c98] File "/usr/local/lib/python2.7/dist-packages/oslo_concurrency/processutils.py", line 233, in execute
2015-04-03 15:54:52.499 9358 TRACE nova.virt.libvirt.driver [instance: 803f6b0f-acab-476f-b4f7-d72e1f9c1c98] cmd=sanitized_cmd)
2015-04-03 15:54:52.499 9358 TRACE nova.virt.libvirt.driver [instance: 803f6b0f-acab-476f-b4f7-d72e1f9c1c98] ProcessExecutionError: Unexpected error while running command.
2015-04-03 15:54:52.499 9358 TRACE nova.virt.libvirt.driver [instance: 803f6b0f-acab-476f-b4f7-d72e1f9c1c98] Command: sudo nova-rootwrap /etc/nova/rootwrap.conf cryptsetup create --key-file=- --cipher aes-xts-plain64 --key-size 512 ip-10.125.165.140:3260-iscsi-iqn.2001-05.com.equallogic:0-8a0906-7c2d1c401-046eb4d0faa551eb-volume-781f1a47-3c98-44d2-ba8b-802674629f81-lun-0 /dev/sdb
2015-04-03 15:54:52.499 9358 TRACE nova.virt.libvirt.driver [instance: 803f6b0f-acab-476f-b4f7-d72e1f9c1c98] Exit code: 1
2015-04-03 15:54:52.499 9358 TRACE nova.virt.libvirt.driver [instance: 803f6b0f-acab-476f-b4f7-d72e1f9c1c98] Stdout: u''
2015-04-03 15:54:52.499 9358 TRACE nova.virt.libvirt.driver [instance: 803f6b0f-acab-476f-b4f7-d72e1f9c1c98] Stderr: u'Name "ip-10.125.165.140:3260-iscsi-iqn.2001-05.com.equallogic:0-8a0906-7c2d1c401-046eb4d0faa551eb-volume-781f1a47-3c98-44d2-ba8b-802674629f81-lun-0" too long.\n'

Revision history for this message
Rajini Karthik (rajini-karthik) wrote :

Related bug https://bugs.launchpad.net/tempest/+bug/1432490

This is causing the CI tests to fail

* dell-eql-dsvm-volume http://oslogs.compellent.com/dell-eql-169858-9/ : FAILURE

Revision history for this message
Rajini Karthik (rajini-karthik) wrote :

Can the test case generate a shorter name?

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.