]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Copy glance_image_metadata when cloning volumes.
authorJohn Griffith <john.griffith@solidfire.com>
Tue, 5 Feb 2013 00:54:56 +0000 (17:54 -0700)
committerJohn Griffith <john.griffith@solidfire.com>
Tue, 5 Feb 2013 00:55:34 +0000 (17:55 -0700)
commitf8842781cdc7a7a2a82333f3f728e0dfac30a501
treeaf2c488c3aa45c71ac645ae0d63adb2f16edaba1
parent4275a23af9950ba607d703243e3c6a1592286e93
Copy glance_image_metadata when cloning volumes.

When cloning a volume we were not capturing/copying
the glance_image_metadata from the source volume.

This change implements a copy_image_metadata_from_vol_to_vol.
So now we can clone bootable volumes without going back to glance
or messing with them otherwise, they're just ready to be booted.

Fixes bug: 1115634

Change-Id: I859bb2550267c6a5142e85ec89f1c7ff885588ac
cinder/db/api.py
cinder/db/sqlalchemy/api.py
cinder/tests/test_volume_glance_metadata.py
cinder/volume/manager.py