Validation for cinder volume type failed
Bug #1508017 reported by
Khanh-Toan TRAN
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Sahara |
Fix Released
|
High
|
Vitalii Gridnev | ||
Liberty |
Fix Released
|
High
|
Vitalii Gridnev | ||
Mitaka |
Fix Released
|
High
|
Vitalii Gridnev |
Bug Description
Sahara does support cinder-volume type:
https:/
However, the code is no longer valid. Indeed, it calls volume_types.list() with search_opts parameter which is actually not used in cinderclient. It results in all volume types which will fail the following check:
sahara/
def check_volume_
volume_types = cinder.
if len(volume_types) == 1 and volume_
return
raise ex.NotFoundExce
Changed in sahara: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The following patch works for us:
def check_volume_ type_exists( volume_ type): client( ).volume_ types.list( ) volume_ types = [vt for vt in volume_types if vt.name == volume_type] volume_ types) >= 1: ption(volume_ type, _("Volume type '%s' not found"))
volume_types = cinder.
matched_
if len(matched_
return
raise ex.NotFoundExce