Re-attaching an encrypted(Barbican) Cinder volume to an instance fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
High
|
Eric Harney |
Bug Description
Description of problem:
An attached encrypted (Barbican) RBD Cinder volume was attached to instance, write data to it.
Then volume was detached, when trying to reattach the volume to same instance volume fails to attach. Odd errors on attached nova-compute.log
2018-04-15 13:14:06.274 1 ERROR nova.compute.
2018-04-15 13:14:06.274 1 ERROR nova.compute.
2018-04-15 13:14:06.523 1 ERROR oslo_messaging.
2018-04-15 13:14:06.523 1 ERROR oslo_messaging.
2018-04-15 13:14:06.523 1 ERROR oslo_messaging.
2018-04-15 13:14:06.523 1 ERROR oslo_messaging.
How reproducible:
Unsure looks like every time I try to re-attach.
Steps to Reproduce:
1. Boot an instance
2. Create an encrypted(Barbican) backed Cinder(RBD) volume, attach to instance write data.
3. Detach volume from instance
4. Try to reattach same volume to same instance.
$nova volume-attach 923c5318-
5. Volume fails to attach
No error volume remains unattached
cinder list
+------
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+------
| 16584072-
Actual results:
Volume fails to attach.
Expected results:
Volume should successfully reattach.
Environment / Version-Release number of selected component (if applicable):
rhel7.5
openstack-
python-
python-
openstack-
openstack-
openstack-
puppet-
openstack-
python2-
python-
openstack-
openstack-
puppet-
openstack-
openstack-
openstack-
Libvirt + KVM
Neutron networking
Cinder volume is RBD backed and encrypted via Barbican.
tags: | added: cinder volumes |
Changed in cinder: | |
importance: | Undecided → High |
assignee: | nobody → Eric Harney (eharney) |
summary: |
- Re-attaching an encrypted(Barbican) Cinder (RBD) volume to an instance - fails + Re-attaching an encrypted(Barbican) Cinder volume to an instance fails |
Doesn't show up in logs as tested again after I uploaded.
A new encrypted RBD volume was created: Template- 256 --name NewEncVol
#cinder create 1 --volume-type LuksEncryptor-
It successfully attached:
| ac8045f2- a8d6-4567- 8476-40f7e0f63d cf | in-use | NewEncVol | 1 | LuksEncryptor- Template- 256 | false | 923c5318- 8502-4f85- a215-78afc4fd64 1b |
Volume detach works 8502-4f85- a215-78afc4fd64 1b ac8045f2- a8d6-4567- 8476-40f7e0f63d cf
#nova volume-detach 923c5318-
Cinder list -> a8d6-4567- 8476-40f7e0f63d cf | available | NewEncVol | 1 | LuksEncryptor- Template- 256 | false | |
| ac8045f2-
Re-attaching this new volume, now worked. 8502-4f85- a215-78afc4fd64 1b ac8045f2- a8d6-4567- 8476-40f7e0f63d cf auto
nova volume-attach 923c5318-
| ac8045f2- a8d6-4567- 8476-40f7e0f63d cf | in-use | NewEncVol | 1 | LuksEncryptor- Template- 256 | false | 923c5318- 8502-4f85- a215-78afc4fd64 1b |
Now I'm not sure if this bug is a one off / fluke, or maybe only original volume had an issue.