Image type should be a facet - Can't select snapshots vs images
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Searchlight |
Fix Released
|
High
|
Lakshmi N Sampath |
Bug Description
Glance images can either be of type Image or of type Snapshot.
This is determined with the image_type property.
This property is ONLY set if the image is of type snapshot.
Doing free form text queries work, eg. image_type:snapshot
However, there is no facet for image_type which makes filtering in the UI harder.
openstack search facet list --type OS::Glance::Image
+------
| Resource Type | Type | Name | Options |
+------
| OS::Glance::Image | string | status | active(10) |
| OS::Glance::Image | date | created_at | |
| OS::Glance::Image | long | virtual_size | |
| OS::Glance::Image | string | name | |
| OS::Glance::Image | string | tags | fedora(3), python(3), apache(2), web(2), dev(1) |
| OS::Glance::Image | string | kernel_id | |
| OS::Glance::Image | string | container_format | bare(7), aki(1), ami(1), ari(1) |
| OS::Glance::Image | long | min_ram | |
| OS::Glance::Image | string | ramdisk_id | |
| OS::Glance::Image | string | disk_format | raw(5), qcow2(2), aki(1), ami(1), ari(1) |
| OS::Glance::Image | date | updated_at | |
| OS::Glance::Image | string | visibility | private(5), public(5) |
| OS::Glance::Image | string | owner | |
| OS::Glance::Image | boolean | protected | F(9), T(1) |
| OS::Glance::Image | string | members | |
| OS::Glance::Image | string | checksum | |
| OS::Glance::Image | long | min_disk | |
| OS::Glance::Image | long | size | |
| OS::Glance::Image | string | id | |
| OS::Glance::Image | string | description | |
+------
See UI screen shot (no facet shown, had to do freeform query: http://
I propose that we had image_type as a mapping:
And that we add a default value of "image" to image_type when serializing the image if another value is not found:
And we add image_type to types with options:
summary: |
- Image type should be a facet + Image type should be a facet - Can't select snapshots vs images |
Changed in searchlight: | |
importance: | Undecided → High |
Changed in searchlight: | |
assignee: | nobody → Steve McLellan (sjmc7) |
assignee: | Steve McLellan (sjmc7) → nobody |
Changed in searchlight: | |
assignee: | nobody → Lakshmi N Sampath (lakshmi-sampath) |
milestone: | none → newton-1 |
Changed in searchlight: | |
status: | New → In Progress |
I don't have a problem doing this. Are there any other fields that might also be candidates for adding that only appear for snapshots?