Comment 5 for bug 1482464

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

Reviewed: https://review.openstack.org/217365
Committed: https://git.openstack.org/cgit/openstack/cinder/commit/?id=d836a8f6b0da95b09dc58d4d34e5ab0d5a357ceb
Submitter: Jenkins
Branch: stable/kilo

commit d836a8f6b0da95b09dc58d4d34e5ab0d5a357ceb
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.

    The test case file had conflicts due to tests moving from
    cinder/tests to cinder/tests/unit. I have resolved the
    issues for this cherry pick.

    Conflicts: cinder/tests/test_create_volume_flow.py

    (cherry picked from commit: 19d5610f93850dd27c)
    Change-Id: I0af8318222cee023451c38812bf83cdb4086faae
    Closes-bug: #1482464