Comment 2 for bug 1482464

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cinder (master)

Reviewed: https://review.openstack.org/210219
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=19d5610f93850dd27cf3847135289eb243c64bd8
Submitter: Jenkins
Branch: master

commit 19d5610f93850dd27cf3847135289eb243c64bd8
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: I0af8318222cee023451c38812bf83cdb4086faae
    Closes-bug: #1482464