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

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

Bug Description

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

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

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

*) With version [1] on OSP7, I get this result:
-------------------------------- CUT HERE ----------------------------------------------
OK: Get flavors, nova API is working: list 6 flavors in 0 seconds.|response_time=0
-------------------------------- 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/nova.py", line 40, in _check_nova_api
    options, args, client = nova.setup()
  File "/usr/lib/python2.7/site-packages/oschecks/utils.py", line 145, in setup
    timeout=options.timeout)
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 732, in Client
    client_class = get_client_class(version)
  File "/usr/lib/python2.7/site-packages/novaclient/client.py", line 726, in get_client_class
    raise exceptions.UnsupportedVersion(msg)
UnsupportedVersion: Invalid client version '2.1'. must be one of: 3, 2, 1.1
-------------------------------- 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

description: updated
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.