check_cinder_services check fails when trying to create "volume" client
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
charm-openstack-service-checks |
Fix Released
|
Undecided
|
Gabriel Cocenza |
Bug Description
Hello,
We upgraded the `openstack-
"""
$ sudo python3 /usr/local/
<function check_cinder_
=======
Traceback (most recent call last):
File "/usr/local/
function(*args, **kwargs)
File "/usr/local/
services = cinder.
File "/usr/lib/
return self.request(url, 'GET', **kwargs)
File "/usr/lib/
return self.session.
File "/usr/lib/
**endpoint_
File "/usr/lib/
return auth.get_
File "/usr/lib/
allow_
File "/usr/lib/
service_
File "/usr/lib/
raise exceptions.
keystoneauth1.
=======
"""
In the output of the "OpenStack catalog list" cinder is presented with type "volumev3":
"""
$ os catalog show cinderv3 | grep type
| type | volumev3
"""
So if to change "volume" on "volumev3" in the check code it works OK:
"""
$ sudo diff --suppress-
cinder = os_client_
$ sudo python3 /usr/local/
OK: All cinder services happy
"""
On other clouds where Cinder is registered in OpenStack catalog under "volumev3" type, this check works ok.
stable 9 - works
stable 4 - works
stable 22 - fails
Please tell if I could provide more info for you.
Best Regards,
Alex.
Related branches
- Eric Chen: Approve
- 🤖 prod-jenkaas-bootstack (community): Approve (continuous-integration)
- JamesLin: Approve
- BootStack Reviewers: Pending requested
-
Diff: 232 lines (+165/-0)5 files modifiedsrc/lib/lib_openstack_service_checks.py (+46/-0)
src/reactive/openstack_service_checks.py (+5/-0)
src/templates/nagios.novarc (+4/-0)
src/tests/unit/requirements.txt (+1/-0)
src/tests/unit/test_lib.py (+109/-0)
tags: | added: bseng-648 |
Changed in charm-openstack-service-checks: | |
assignee: | nobody → Gabriel Angelo Sgarbi Cocenza (gabrielcocenza) |
Changed in charm-openstack-service-checks: | |
status: | Triaged → Fix Committed |
Changed in charm-openstack-service-checks: | |
milestone: | none → 23.01 |
Changed in charm-openstack-service-checks: | |
status: | Fix Committed → Fix Released |
Looked into this and in the affected environment in /var/lib/ nagios/ nagios. novarc this was: API_VERSION=
OS_VOLUME_
We should investigate why /var/lib/ nagios/ nagios. novarc wasn't rendered properly: nagios. novarc: 7:export OS_VOLUME_ API_VERSION= {{ volume_api_version }}
./templates/