Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Problem is ordering in cinder in nova. Example:

# cinder type-list
+--------------------------------------+--------------+
|                  ID                  |     Name     |
+--------------------------------------+--------------+
| 7864eef1-2e33-4385-8519-facbb9ec08f0 | CEPH-GENERAL |
| ff8aad5a-1554-40da-b67c-d91ae103c78e | CEPH-BACKUP  |
+--------------------------------------+--------------+

# nova volume-type-list
+--------------------------------------+--------------+
| ID                                   | Name         |
+--------------------------------------+--------------+
| ff8aad5a-1554-40da-b67c-d91ae103c78e | CEPH-BACKUP  |
| 7864eef1-2e33-4385-8519-facbb9ec08f0 | CEPH-GENERAL |
+--------------------------------------+--------------+

and as result in openstack frontend on volume creation form we have

<select id="id_type" name="type" data-original-title="">
    <option selected="selected" value=""></option>
    <option value="CEPH-BACKUP"></option>
    <option value="CEPH-GENERAL"></option>
</select>

then if you not select Type - you volume will be CEPH-BACKUP, how this can be fixed?