so, this is my workaround to handle the given problem:
# create snapshot (use "--force" if volume is currently in use)
$ openstack volume snapshot create --volume <VOLUME-UID> --force "test - snap"
# list new snapshot
$ openstack volume snapshot list
+--------------------------------------+-------------+-------------+-----------+------+
| ID | Name | Description | Status | Size |
+--------------------------------------+-------------+-------------+-----------+------+
| a940f54f-920c-4f00-8207-5992f290c185 | test - snap | None | available | 20 |
+--------------------------------------+-------------+-------------+-----------+------+
# create new volume from snapshot
$ openstack volume create --snapshot a940f54f-920c-4f00-8207-5992f290c185 "test - snap - vol"
# list new volume
$ openstack volume list
+--------------------------------------+-------------------+-----------+------+-------------+
| ID | Name | Status | Size | Attached to |
+--------------------------------------+-------------------+-----------+------+-------------+
| 3c9414bb-98bd-45d4-9b38-2b073e958f81 | test - snap - vol | available | 20 | |
+--------------------------------------+-------------------+-----------+------+-------------+
# create image from volume (this will run a longe runing task -> gemu-img)
$ openstack image create --volume 3c9414bb-98bd-45d4-9b38-2b073e958f81 --disk-format qcow2 "test - snap - vol - img"
# list images
$ openstack image list
+--------------------------------------+-------------------------+--------+
| ID | Name | Status |
+--------------------------------------+-------------------------+--------+
| 5394ce72-5bb5-49e7-8bf3-7e3ae472b1da | test - snap - vol - img | saving |
+--------------------------------------+-------------------------+--------+
# wait until "status" is "active"
#----
# save new created image to local disk
$ openstack image save --file "/opt/img-conversions/export/test.qcow2.img" 5394ce72-5bb5-49e7-8bf3-7e3ae472b1da
so, this is my workaround to handle the given problem:
# create snapshot (use "--force" if volume is currently in use)
$ openstack volume snapshot create --volume <VOLUME-UID> --force "test - snap"
# list new snapshot ------- ------- ------- ------- ----+-- ------- ----+-- ------- ----+-- ------- --+---- --+ ------- ------- ------- ------- ----+-- ------- ----+-- ------- ----+-- ------- --+---- --+ 920c-4f00- 8207-5992f290c1 85 | test - snap | None | available | 20 | ------- ------- ------- ------- ----+-- ------- ----+-- ------- ----+-- ------- --+---- --+
$ openstack volume snapshot list
+------
| ID | Name | Description | Status | Size |
+------
| a940f54f-
+------
# create new volume from snapshot 920c-4f00- 8207-5992f290c1 85 "test - snap - vol"
$ openstack volume create --snapshot a940f54f-
# list new volume ------- ------- ------- ------- ----+-- ------- ------- ---+--- ------- -+----- -+----- ------- -+ ------- ------- ------- ------- ----+-- ------- ------- ---+--- ------- -+----- -+----- ------- -+ 98bd-45d4- 9b38-2b073e958f 81 | test - snap - vol | available | 20 | | ------- ------- ------- ------- ----+-- ------- ------- ---+--- ------- -+----- -+----- ------- -+
$ openstack volume list
+------
| ID | Name | Status | Size | Attached to |
+------
| 3c9414bb-
+------
# create image from volume (this will run a longe runing task -> gemu-img) 98bd-45d4- 9b38-2b073e958f 81 --disk-format qcow2 "test - snap - vol - img"
$ openstack image create --volume 3c9414bb-
# list images ------- ------- ------- ------- ----+-- ------- ------- ------- --+---- ----+ ------- ------- ------- ------- ----+-- ------- ------- ------- --+---- ----+ 5bb5-49e7- 8bf3-7e3ae472b1 da | test - snap - vol - img | saving | ------- ------- ------- ------- ----+-- ------- ------- ------- --+---- ----+
$ openstack image list
+------
| ID | Name | Status |
+------
| 5394ce72-
+------
# wait until "status" is "active" conversions/ export/ test.qcow2. img" 5394ce72- 5bb5-49e7- 8bf3-7e3ae472b1 da
#----
# save new created image to local disk
$ openstack image save --file "/opt/img-
# check output conversions/ export/ test.qcow2. img conversions/ export/ test.qcow2. img
$ ll /opt/img-
-rw-r--r-- 1 wrsroot wrs 7959085056 Sep 20 12:17 /opt/img-
maybe this will help some one else...
greez, volker...