Not indexing glance image tags from notifications
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Searchlight |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Searchlight is currently indexing glance data via API for a complete / startup index job and via notification for updates once the index is initialized or to force a full reindex.
The Tags are not currently being indexed from notifications, even though it appears the Glance does provide them. It just doesn't have a "tags" : [] when there are no tags.
----
Steve originally reported that the notifications do not contain tags. In discussion, we thought we either we need to have tags added to Glance notifications or we'll need to stop using the notification payload and make call backs to the Glance API to retrieve data. Tags are definitely something that we have requests to be able to search by.
The Pros to notifications:
- Faster indexing (no callback required)
- Less network overhead (callback to Glance which may require a hit to keystone)
- Less overall impact on Glance
The Cons to notifications:
- The data remains out of date from the API results
- The current format appears to be v1 based and we aren't sure what else it might be missing that an API call would provide.
We aren't sure if there are additional items missing via the notifications.
description: | updated |
description: | updated |
Changed in glance: | |
status: | New → Incomplete |
description: | updated |
summary: |
- Glance Notifications don't contain tags + We aren't indexing glance image tags from notifications |
summary: |
- We aren't indexing glance image tags from notifications + Not indexing glance image tags from notifications |
Changed in searchlight: | |
importance: | Undecided → High |
Changed in searchlight: | |
status: | Incomplete → Triaged |
Changed in searchlight: | |
assignee: | Steve McLellan (sjmc7) → nobody |
milestone: | none → liberty-rc1 |
Need to verify when this happens. It looks like for image create tags should be there.
https:/ /github. com/openstack/ glance/ blob/d4cf5a015b 49b8163a7172678 1aee54da9c252ec /glance/ notifier. py#L106