Comment 4 for bug 1885357

Revision history for this message
David Coronel (davecore) wrote :

The same steps give me a different outcome. I guess I must be running an older version of cinder:

$ openstack volume type list
+--------------------------------------+--------------------+-----------+
| ID | Name | Is Public |
+--------------------------------------+--------------------+-----------+
| 17593eb4-a4d2-4464-82ea-af22c49f4105 | stable1-az2 | True |
| 3421912b-0ebc-4c53-b318-a95edfe3eb86 | arbor-az1 | True |
+--------------------------------------+--------------------+-----------+

$ openstack volume type list --default
+--------------------------------------+-----------+-----------+
| ID | Name | Is Public |
+--------------------------------------+-----------+-----------+
| 3421912b-0ebc-4c53-b318-a95edfe3eb86 | arbor-az1 | True |
+--------------------------------------+-----------+-----------+

$ openstack volume create --type stable1-az2 --size 1 david-stable1-az2-volume1
+---------------------+--------------------------------------+
| Field | Value |
+---------------------+--------------------------------------+
| attachments | [] |
| availability_zone | zone2 |
| bootable | false |
| consistencygroup_id | None |
| created_at | 2020-10-16T18:38:05.000000 |
| description | None |
| encrypted | False |
| id | 7b1f4f0b-61d5-44c5-8c47-8828de477afc |
| migration_status | None |
| multiattach | False |
| name | david-stable1-az2-volume1 |
| properties | |
| replication_status | None |
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | creating |
| type | stable1-az2 |
| updated_at | None |
| user_id | f2ee9e8060e54d058060d220fab84088 |
+---------------------+--------------------------------------+

$ openstack volume list | grep david
| 7b1f4f0b-61d5-44c5-8c47-8828de477afc | david-stable1-az2-volume1 | available | 1 | |

$ openstack volume snapshot create --volume david-stable1-az2-volume1 david-stable1-az2-volume1-snap1
+-------------+--------------------------------------+
| Field | Value |
+-------------+--------------------------------------+
| created_at | 2020-10-16T18:38:40.904359 |
| description | None |
| id | 23dfa183-1290-4c76-9aae-a35f53d94c6e |
| name | david-stable1-az2-volume1-snap1 |
| properties | |
| size | 1 |
| status | creating |
| updated_at | None |
| volume_id | 7b1f4f0b-61d5-44c5-8c47-8828de477afc |
+-------------+--------------------------------------+

$ openstack volume snapshot list | grep david
| 23dfa183-1290-4c76-9aae-a35f53d94c6e | david-stable1-az2-volume1-snap1 | None | available | 1 |

$ openstack volume create --snapshot david-stable1-az2-volume1-snap1 david-stable1-az2-volume1-snap1-volume1
Invalid input received: Invalid volume_type provided: 3421912b-0ebc-4c53-b318-a95edfe3eb86 (requested type is not compatible; recommend omitting the type argument). (HTTP 400) (Request-ID: req-ed37e9ba-658f-4cc8-876d-a4c0d3dae9fd)

I am using cinder version 2:15.3.0-0ubuntu1~cloud0 from the bionic-train Ubuntu Cloud Archive on Ubuntu 18.04.