From d0702ea82672237ea8c864eb0de7cc3d25e83010 Mon Sep 17 00:00:00 2001 From: whoami-rajat Date: Tue, 9 Feb 2021 17:32:34 +0000 Subject: Validate volume type during volume create Currently when configuring multiple cinder stores, glance validates the volume types configured in glance-api.conf during service startup. This check however has a dependency on cinder API service to be up and running. During certain deployment scenarios, it is not always mandatory that cinder is already running when we are starting glance hence this check will fail the glance service hence the deployment This patch removes the startup exceptions and instead logs a warning. Also the check is done during volume create so handling for NotFound exception from cinder is also handled. Change-Id: I468523b947ad6fcff4b074d2ed1cb7a9e52b15ca Closes-Bug: #1915163 --- .../notes/volume-type-validation-check-011a400d7fb3b307.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 releasenotes/notes/volume-type-validation-check-011a400d7fb3b307.yaml (limited to 'releasenotes') diff --git a/releasenotes/notes/volume-type-validation-check-011a400d7fb3b307.yaml b/releasenotes/notes/volume-type-validation-check-011a400d7fb3b307.yaml new file mode 100644 index 0000000..7ff169b --- /dev/null +++ b/releasenotes/notes/volume-type-validation-check-011a400d7fb3b307.yaml @@ -0,0 +1,12 @@ +--- +upgrade: + - | + Previously, during service startup, the check to validate volume types + used to raise ``BackendException`` or ``BadStoreConfiguration`` exceptions + when an invalid volume type was configured hence failing the service + startup. It now logs a warning and the glance service starts normally. +fixes: + - | + `Bug #1915163 `_: + Added handling to log and raise proper exception during image create when + an invalid volume type is configured. -- cgit v1.2.1