Bug 1364572 - oschecks-check_glance_api fail
Summary: oschecks-check_glance_api fail
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: sensu
Version: 8.0 (Liberty)
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: async
: 8.0 (Liberty)
Assignee: Martin Magr
QA Contact: Udi Shkalim
URL:
Whiteboard:
Depends On:
Blocks: 1347518 1409833
TreeView+ depends on / blocked
 
Reported: 2016-08-05 18:38 UTC by Cyril Lopez
Modified: 2019-12-16 06:17 UTC (History)
10 users (show)

Fixed In Version: osops-tools-monitoring-oschecks-0.1-0.6.a9d3fdagit.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1409833 (view as bug list)
Environment:
Last Closed: 2017-01-30 13:56:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Compatibility patch (4.63 KB, application/mbox)
2016-08-17 08:49 UTC, Martin Magr
no flags Details


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 351877 0 None ABANDONED glance: fix authentification issue 2020-08-26 11:21:25 UTC
Red Hat Knowledge Base (Solution) 2648851 0 None None None 2016-10-04 09:40:54 UTC
Red Hat Product Errata RHBA-2017:0208 0 normal SHIPPED_LIVE osops-tools-monitoring-oschecks bug fix update 2017-01-30 18:55:34 UTC

Description Cyril Lopez 2016-08-05 18:38:35 UTC
Description of problem:
When you call oschecks-check_glance_api, it doesn't works.

Version-Release number of selected component (if applicable):
osops-tools-monitoring-oschecks-0.1-0.5.a9d3fdagit.el7ost.noarch
python-glanceclient-1.1.1-1.el7ost.noarch


How reproducible:


Steps to Reproduce:
1. yum install osops-tools-monitoring-oschecks-0.1-0.5.a9d3fdagit.el7ost.noarch
2. source stackrc
3. /usr/libexec/openstack-monitoring/checks/oschecks-check_glance_api

Actual results:
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 542, in _get_versioned_client
    return glanceclient.Client(api_version, endpoint, **kwargs)
  File "/usr/lib/python2.7/site-packages/glanceclient/client.py", line 50, 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

Expected results:
OK: Get images, Glance API is working: list 5 images in 0 seconds.|response_time=0


Additional info:

Comment 2 Martin Magr 2016-08-17 08:49:45 UTC
Created attachment 1191494 [details]
Compatibility patch

OSP-8 compatibility patch
  - makes oschecks-check_glance* checks work with:
    - python-glanceclient-1.1.1-1.el7ost
    - python-keystoneclient-1.7.2-1.el7ost

Comment 5 Martin Magr 2016-09-07 10:51:02 UTC
Hi Cyril, I've attached patch to this BZ and also built new version of oschecks, which contains the patch: osops-tools-monitoring-oschecks-0.1-0.6.a9d3fdagit.el7_2ost

Comment 6 Edu Alcaniz 2016-09-15 08:05:41 UTC
Hi martin, when the new rpm package will be release?

Comment 8 Leonid Natapov 2016-11-15 09:11:39 UTC
glance_api is working.

tested with osops-tools-monitoring-oschecks-0.1-0.6.3986ef2git.el7ost.noarch

Comment 10 errata-xmlrpc 2017-01-30 13:56:05 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2017-0208.html


Note You need to log in before you can comment on or make changes to this bug.