Support query volume detail with glance metadata¶
Provide a function to support query volume detail filter by glance metadata.
The purpose of this feature is to make user to query volume detail more conveniently. User can query a specific bootable volume quickly filtering by image_name or other glance metadata.
At large scale deployment, there could be many bootable volumes in a tenant. So if user want query some bootable volume detail filtering by the image name or other info came from glance metadata, they could use this feature to query it more conveniently. No need to list all volumes and find what you want tiring.
Add DB query filter using volume_glance_metadata in api of sqlaclchemy.
User can use glance metadata to filter volume detail in cinder api. The query url is like this:
Data model impact¶
REST API impact¶
- Add query filter support using glance metadata:
Other end user impact¶
Search a lot of glance metadata may take longer than other querying. It may need add new index to column key and value in volume_glance_metadata table to improve searching performance.
Other deployer impact¶
- Primary assignee:
Implement code in db query filter.
Update cinderclient to support this function.
Add change API doc.
Both unit and Tempest tests need to be created to cover the code change that mentioned in “Proposed change”.
The cinder API documentation will need to be updated to reflect the REST API changes.