stop cinder backup service. [c-bak service in devstack]
now try to create cinder backup.
cinder driver /client should throw error saying backup service not present.
current cinder driver not throwing any exception to cinder client hence status enter to 'creating' backup list and 'backing-up' cinder volume and convey same to cinder client so that they can show some meaning full error.
same the case for restore also.
see below commands :
ssatya@pr-devstack:~$ cinder list
+--------------------------------------+-----------+------------+------+-------------+----------+-------------+
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------+------------+------+-------------+----------+-------------+
| 07edcb91-de05-4f63-b40c-95345866b5d8 | available | small_vol | 1 | None | false | |
| c8fe4e3c-144d-4e88-8a4a-b6e5bd685a0f | available | sparse_vol | 1 | None | true | |
| eab6daa2-28dc-467c-a110-1970f8373faf | available | sparse_vol | 1 | None | true | |
| eccc4d31-478e-4dca-9161-310471ea475c | available | bigvol | 3 | None | false | |
| f4c4076e-c404-492b-82d7-32815878d7ff | available | bigvol | 2 | None | false | |
+--------------------------------------+-----------+------------+------+-------------+----------+-------------+
ssatya@pr-devstack:~$ cinder backup-create 07edcb91-de05-4f63-b40c-95345866b5d8 --name test1
+-----------+--------------------------------------+
| Property | Value |
+-----------+--------------------------------------+
| id | 7b6f0b8d-29fd-4024-9e16-39bb567000a9 |
| name | test1 |
| volume_id | 07edcb91-de05-4f63-b40c-95345866b5d8 |
+-----------+--------------------------------------+
ssatya@pr-devstack:~$ cinder backup-list
+--------------------------------------+--------------------------------------+-----------+------------------------+------+--------------+---------------+
| ID | Volume ID | Status | Name | Size | Object Count | Container |
+--------------------------------------+--------------------------------------+-----------+------------------------+------+--------------+---------------+
| 16c48e8f-4974-490c-af65-5cd1079484d3 | eab6daa2-28dc-467c-a110-1970f8373faf | available | sparse_vol_snap_backup | 1 | 2 | volumebackups |
| 4200b860-739d-4a8c-8541-c0eda1df5cf2 | 44a9106f-e432-449e-a5fb-f76888f0fad8 | available | image_vol_backup | 1 | 2 | volumebackups |
| 7b6f0b8d-29fd-4024-9e16-39bb567000a9 | 07edcb91-de05-4f63-b40c-95345866b5d8 | creating | test1 | 1 | None | None |
| e8644438-82c5-4d0e-a422-1f6ad1cbdca2 | f4c4076e-c404-492b-82d7-32815878d7ff | available | bigbackup | 2 | 2 | volumebackups |
+--------------------------------------+--------------------------------------+-----------+------------------------+------+--------------+---------------+
ssatya@pr-devstack:~$ cinder list
+--------------------------------------+------------+------------+------+-------------+----------+-------------+
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+------------+------------+------+-------------+----------+-------------+
| 07edcb91-de05-4f63-b40c-95345866b5d8 | backing-up | small_vol | 1 | None | false | |
| c8fe4e3c-144d-4e88-8a4a-b6e5bd685a0f | available | sparse_vol | 1 | None | true | |
| eab6daa2-28dc-467c-a110-1970f8373faf | available | sparse_vol | 1 | None | true | |
| eccc4d31-478e-4dca-9161-310471ea475c | available | bigvol | 3 | None | false | |
| f4c4076e-c404-492b-82d7-32815878d7ff | available | bigvol | 2 | None | false | |
+--------------------------------------+------------+------------+------+-------------+----------+-------------+
ssatya@pr-devstack:~$ cinder backup-list
+--------------------------------------+--------------------------------------+-----------+------------------------+------+--------------+---------------+
| ID | Volume ID | Status | Name | Size | Object Count | Container |
+--------------------------------------+--------------------------------------+-----------+------------------------+------+--------------+---------------+
| 16c48e8f-4974-490c-af65-5cd1079484d3 | eab6daa2-28dc-467c-a110-1970f8373faf | available | sparse_vol_snap_backup | 1 | 2 | volumebackups |
| 4200b860-739d-4a8c-8541-c0eda1df5cf2 | 44a9106f-e432-449e-a5fb-f76888f0fad8 | available | image_vol_backup | 1 | 2 | volumebackups |
| 7b6f0b8d-29fd-4024-9e16-39bb567000a9 | 07edcb91-de05-4f63-b40c-95345866b5d8 | creating | test1 | 1 | None | None |
| e8644438-82c5-4d0e-a422-1f6ad1cbdca2 | f4c4076e-c404-492b-82d7-32815878d7ff | available | bigbackup | 2 | 2 | volumebackups |
+--------------------------------------+--------------------------------------+-----------+------------------------+------+--------------+---------------+
attached logs