Latest version of utils.py keystone issue on OSP7 (kilo)

Bug #1539141 reported by VIncent S. Cojot
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Operators
New
Undecided
Unassigned

Bug Description

Hello,
I'm comparing the previous version of utils.py [1] to the current version of it [2]

/usr/bin/oschecks-check_keystone_api --os-username sensu --os-password sensu --os-tenant-name monitoring --os-auth-url http://10.153.20.2:5000/v2.0

*) With version [1] on OSP7, I get this result:
-------------------------------- CUT HERE ----------------------------------------------
OK: Got a token, Keystone API is working.|response_time=0.0941200256348
-------------------------------- CUT HERE ----------------------------------------------

*) With version [2] on OSP7, I get this result:
-------------------------------- CUT HERE ----------------------------------------------
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/keystone.py", line 25, in _check_keystone_api
    keystone = utils.Keystone()
  File "/usr/lib/python2.7/site-packages/oschecks/utils.py", line 247, in __init__
    from openstackclient import shell
ImportError: No module named openstackclient
-------------------------------- CUT HERE ----------------------------------------------

[1] https://raw.githubusercontent.com/openstack/monitoring-for-openstack/master/oschecks/utils.py
[2] https://raw.githubusercontent.com/openstack/osops-tools-monitoring/master/monitoring-for-openstack/oschecks/utils.py

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.