When check_api is used it can't find endpoint
Issue
- Checking the file
/var/log/glance/glance_api.logshows a Traceback:
++ /usr/libexec/openstack-monitoring/checks/oschecks-check_glance_api --os-auth-url http://172.24.1.75:5000/v2.0 --os-username admin --os-password 51dae95b13a96532c11d4e73e05994d3dd1de792 --os-region-name regionOne --os-tenant-name admin
CRITICAL: Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/oschecks/utils.py", line 110, in safe_run
method()
File "/usr/lib/python2.7/site-packages/oschecks/glance.py", line 30, in _check_glance_api
options, args, client = glance.setup()
File "/usr/lib/python2.7/site-packages/oschecks/utils.py", line 171, in setup
client = self.glance._get_versioned_client(api_version, options)
File "/usr/lib/python2.7/site-packages/glanceclient/shell.py", line 539, in _get_versioned_client
return glanceclient.Client(api_version, endpoint, **kwargs)
File "/usr/lib/python2.7/site-packages/glanceclient/client.py", line 51, in Client
endpoint, url_version = utils.strip_version(endpoint)
File "/usr/lib/python2.7/site-packages/glanceclient/common/utils.py", line 401, in strip_version
raise ValueError("Expected endpoint")
ValueError: Expected endpoint
Environment
- Red Hat OpenStack Platform 8 (Liberty)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
