When creating an encrypted volume with a unencrypted image,
cinder just copies the unencrypted data to the volume,
which keeps unencrypted data in the volume.
But when booting/attaching the volume to Nova, it thinks
encrypted data on the volume. As a result, Nova reads
the data incorrectly.
The fix is to prevent such action. Later, we can
implement to write encrypted data in encrypted volumes
when creating from unencrypted image.
Reviewed: https:/ /review. openstack. org/210219 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=19d5610f938 50dd27cf3847135 289eb243c64bd8
Committed: https:/
Submitter: Jenkins
Branch: master
commit 19d5610f93850dd 27cf3847135289e b243c64bd8
Author: lisali <email address hidden>
Date: Fri Aug 7 14:35:27 2015 +0800
Prevent creating encrypted volume with image
When creating an encrypted volume with a unencrypted image,
cinder just copies the unencrypted data to the volume,
which keeps unencrypted data in the volume.
But when booting/attaching the volume to Nova, it thinks
encrypted data on the volume. As a result, Nova reads
the data incorrectly.
The fix is to prevent such action. Later, we can
implement to write encrypted data in encrypted volumes
when creating from unencrypted image.
Change-Id: I0af8318222cee0 23451c38812bf83 cdb4086faae
Closes-bug: #1482464