List volume types should support search extra_specs options (filters)
The list volume types (GET) API currently only lists all the existing volume types.
https:/
However, the internal method called by this API supports searching the volume types by accepting search_options. This is not utilized by the list volume types method, hence user cannot leverage this filter functionality.
Update cinder volume_types index() method to accept search options according to the volume type's extra specs, and display the filtered results.
Eg: There are two volume types in the system:
{
"volume_types": [
{
"id": "6685584b-
"name": "SSD"
},
{
"id": "8eb69a46-
"name": "SATA"
}
]
}
GET http://
should return only:
{
"volume_types": [
{
"id": "6685584b-
"name": "SSD"
}
]
}
If user requests for all the volume types that support 'gpu' capability, then only those volume types should be displayed. Currently this functionality is not provided by the public API but internal support is there as per
https:/
Here 'user' ==> admin user.
Add the above support in Cinder.
Blueprint information
- Status:
- Complete
- Approver:
- John Griffith
- Priority:
- Undefined
- Drafter:
- None
- Direction:
- Needs approval
- Assignee:
- Abhijeet Malawade
- Definition:
- Obsolete
- Series goal:
- Proposed for alpha-trunk
- Implementation:
- Unknown
- Milestone target:
- None
- Started by
- Completed by
- Sean McGinnis
Related branches
Related bugs
Sprints
Whiteboard
(smcginnis): Marking obsolete as this has been sitting out there for a long time. If this is still needed, please submit a new bp.
None