[MultipleStores] All queries to glance API fails with 503 error if rbd store configured incorrectly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glance_store |
Fix Released
|
Undecided
|
Abhishek Kekane |
Bug Description
If I misconfigure my glance-api.conf with an incorrect rbd_store_user for one of my store then that store does not work as expected. All requests to glance fails with a 503 error.
Steps to reproduce:
1. Enabled multiple stores by configuring more than one store using enabled_backends config option
2. Provide incorrect rbd_store_user name for one of the rbd store.
3. Restart the glance api service
4. Run glance image-list command
Expected output:
Should list available images
Actual output:
Fails with 503 error
NOTE: Sample glance-api.conf
[default]
enabled_backends = ceph:rbd,fast:file
[glance_store]
default_backend = ceph
[ceph]
rbd_store_pool = images
rbd_store_user = glance-break # incorrect user name
rbd_store_ceph_conf = /etc/ceph/ceph.conf
Changed in glance-store: | |
assignee: | nobody → Abhishek Kekane (abhishek-kekane) |
Changed in glance-store: | |
status: | New → In Progress |
Reviewed: https:/ /review. opendev. org/722915 /git.openstack. org/cgit/ openstack/ glance_ store/commit/ ?id=98b9091129e 78d03dc5b97bd15 03063499f166d5
Committed: https:/
Submitter: Zuul
Branch: master
commit 98b9091129e78d0 3dc5b97bd150306 3499f166d5
Author: Abhishek Kekane <email address hidden>
Date: Fri Apr 24 15:39:26 2020 +0000
Fix: API returns 503 if one of the store is mis-configured
If user mis-configures one of the multiple stores defined in glance-api
configuratio file, then service returns 503 for all API requests.
Made provision to exclude faulty store and resume service normally
to function wiht other configured stores.
Closes-Bug: #1875281 7dbce3fd2eb84f9 7bd8ffbfcf3
Change-Id: I685a0ecbfba7cf