Retype of non-encrypted root volume to encrypted fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
New
|
High
|
Unassigned | ||
OpenStack Compute (nova) |
Incomplete
|
Undecided
|
Unassigned | ||
os-brick |
New
|
High
|
Unassigned |
Bug Description
Description
===========
I tried to retype volume from unencrypted to encrypted one. That works fine for non-root volumes, however it doesn't work when volume was/is root volume.
Steps to reproduce
==================
1. Create an instance with unencrypted root volume(select do not delete volume on termination)
2. Delete instance
3. Retype left volume from deleted instance to encrypted one and wait till retype will finish successfully
4. Launch an instance from this encrypted volume(increase original size by +2GB)
Expected result
===============
New instance is started from encrypted volume
Actual result
=============
Instance fails to start. At horizon we can see an error message:
Traceback (most recent call last): File "/usr/lib/
Environment
===========
1. Version of cinder:
ii cinder-api 2:13.0.
ii cinder-backup 2:13.0.
ii cinder-common 2:13.0.
ii cinder-scheduler 2:13.0.
ii cinder-volume 2:13.0.
ii python-cinder 2:13.0.
ii python-cinderclient 1:3.5.0-0ubuntu1 all Python bindings to the OpenStack Volume API - Python 2.x
Version of barbican:
ii barbican-api 1:10.0.
ii barbican-common 1:10.0.
ii barbican-
ii barbican-worker 1:10.0.
ii python-barbican 1:6.0.1-0ubuntu1 all OpenStack Key Management Service - Python files
ii python3-barbican 1:10.0.
ii python3-
Version of nova:
ii nova-api 2:18.3.
ii nova-common 2:18.3.
ii nova-conductor 2:18.3.
ii nova-consoleauth 2:18.3.
ii nova-novncproxy 2:18.3.
ii nova-placement-api 2:18.3.
ii nova-scheduler 2:18.3.
ii python-nova 2:18.3.
ii python-novaclient 2:11.0.
2. We use iSCSI storage(Huawei dorado)
Logs & Configs
==============
Cinder volume logs:
2021-04-23 16:33:43.288 17298 INFO cinder.
2021-04-23 16:34:05.883 17298 INFO cinder.
2021-04-23 16:34:12.452 17298 INFO cinder.
2021-04-23 16:34:58.111 17298 INFO cinder.
In case some additional logs are needed, just let me know.
Changed in cinder: | |
importance: | Undecided → High |
tags: | added: encryption retype volumes |
tags: | added: multipath |
tags: | added: cryptsetup |
Changed in os-brick: | |
importance: | Undecided → High |
I'm attaching error code from nova-compute logs. It is a bit weird, before attachment dm-55 is not in-use, so this error message doesn't make a sense.