I have hit this bug on Yoga too. It looks related to API version.
The issue is causing Nagios to report "Unknown" status on juju-openstack-service-checks-0 host, with the message "<function check_cinder_services at 0x7f1cd41b0160> raised unknown exception '<class 'keystoneauth1.exceptions.catalog.EndpointNotFound'>'".
As a test, I have added `export OS_VOLUME_API_VERSION=3` to /var/lib/nagios/nagios.novarc and it temporarily fixes the problem.
$ /usr/local/lib/nagios/plugins/check_cinder_services.py
<function check_cinder_services at 0x7f324d8c73a0> raised unknown exception '<class 'keystoneauth1.exceptions.catalog.EndpointNotFound'>'
============================================================
Traceback (most recent call last):
File "/usr/local/lib/nagios/plugins/nagios_plugin3.py", line 37, in try_check
function(*args, **kwargs)
File "/usr/local/lib/nagios/plugins/check_cinder_services.py", line 35, in check_cinder_services
services = cinder.get("/os-services").json()["services"]
File "/usr/lib/python3/dist-packages/keystoneauth1/adapter.py", line 386, in get
return self.request(url, 'GET', **kwargs)
File "/usr/lib/python3/dist-packages/openstack/proxy.py", line 94, in request
response = super(Proxy, self).request(
File "/usr/lib/python3/dist-packages/keystoneauth1/adapter.py", line 248, in request
return self.session.request(url, method, **kwargs)
File "/usr/lib/python3/dist-packages/keystoneauth1/session.py", line 797, in request
raise exceptions.EndpointNotFound()
keystoneauth1.exceptions.catalog.EndpointNotFound: Could not find requested endpoint in Service Catalog.
============================================================
$ export OS_VOLUME_API_VERSION=3
$ /usr/local/lib/nagios/plugins/check_cinder_services.py
OK: All cinder services happy
```
I have hit this bug on Yoga too. It looks related to API version.
The issue is causing Nagios to report "Unknown" status on juju-openstack- service- checks- 0 host, with the message "<function check_cinder_ services at 0x7f1cd41b0160> raised unknown exception '<class 'keystoneauth1. exceptions. catalog. EndpointNotFoun d'>'".
As a test, I have added `export OS_VOLUME_ API_VERSION= 3` to /var/lib/ nagios/ nagios. novarc and it temporarily fixes the problem.
Steps to reproduce:
``` nagios/ nagios. novarc
$ source /var/lib/
$ openstack endpoint list \ /cinder- internal. redacted. com:8776/ v3/$(tenant_ id)s /cinder. redacted. com:8776/ v3/$(tenant_ id)s /cinder. redacted. com:8776/ v3/$(tenant_ id)s
-c "Service Name" \
-c "Service Type" \
-c Interface \
-c URL \
-f value | grep cinder
cinderv3 volumev3 internal https:/
cinderv3 volumev3 public https:/
cinderv3 volumev3 admin https:/
$ /usr/local/ lib/nagios/ plugins/ check_cinder_ services. py services at 0x7f324d8c73a0> raised unknown exception '<class 'keystoneauth1. exceptions. catalog. EndpointNotFoun d'>' ======= ======= ======= ======= ======= ======= ======= ==== lib/nagios/ plugins/ nagios_ plugin3. py", line 37, in try_check lib/nagios/ plugins/ check_cinder_ services. py", line 35, in check_cinder_ services get("/os- services" ).json( )["services" ] python3/ dist-packages/ keystoneauth1/ adapter. py", line 386, in get python3/ dist-packages/ openstack/ proxy.py" , line 94, in request python3/ dist-packages/ keystoneauth1/ adapter. py", line 248, in request request( url, method, **kwargs) python3/ dist-packages/ keystoneauth1/ session. py", line 797, in request EndpointNotFoun d() exceptions. catalog. EndpointNotFoun d: Could not find requested endpoint in Service Catalog. ======= ======= ======= ======= ======= ======= ======= ====
<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/
response = super(Proxy, self).request(
File "/usr/lib/
return self.session.
File "/usr/lib/
raise exceptions.
keystoneauth1.
=======
$ export OS_VOLUME_ API_VERSION= 3
$ /usr/local/ lib/nagios/ plugins/ check_cinder_ services. py
OK: All cinder services happy
```