glance api doesn't abort start up on Store configuration errors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Medium
|
Gorka Eguileor | ||
Kilo |
New
|
Undecided
|
Unassigned | ||
glance_store |
Fix Released
|
Medium
|
Gorka Eguileor |
Bug Description
Glance api service does not abort start up when errors in glance-api.cfg file are encountered.
It would make sense to abort service start up when a BadStoreConfigu
For example if a Filesystem Storage Backend with multiple store is configured with a duplicate directory:
filesystem_
filesystem_
Logs will have the error:
ERROR glance_
TRACE glance_
TRACE glance_
WARNING glance_store.driver [-] Failed to configure store correctly: None Disabling add method.
Service will start and when client tries to add an image he will receive a 410 Gone error saying: Error in store configuration. Adding images to store is disabled.
This affects not only the filesystem storage backend but all glance-storage drivers that encounter an error in the configuration and raise a BadStoreConfigu
How reproducible:
Every time
Steps to Reproduce:
1. Configure Glance to use Filesystem Storage Backend with multiple store and duplicate a filesystem_
2. Run glance api
Expected behavior:
Glance api service should not have started and should have reported that the directory was specified multiple times.
Changed in glance-store: | |
assignee: | nobody → Ramaraja (ramaraja-r) |
Changed in glance-store: | |
assignee: | Ramaraja (ramaraja-r) → Gorka Eguileor (gorka) |
Changed in glance: | |
assignee: | nobody → Gorka Eguileor (gorka) |
status: | New → Triaged |
Changed in glance-store: | |
status: | New → Triaged |
Changed in glance: | |
importance: | Undecided → Medium |
Changed in glance-store: | |
importance: | Undecided → Medium |
Changed in glance: | |
status: | Triaged → In Progress |
Changed in glance-store: | |
status: | Triaged → In Progress |
Changed in glance-store: | |
milestone: | none → 0.5.0 |
Changed in glance-store: | |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | none → liberty-1 |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | liberty-1 → 11.0.0 |
https:/ /review. openstack. org/#/c/ 156580/