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

Bug #1539150 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_glance_upload --os-username sensu --os-password sensu --os-tenant-name monitoring --os-auth-url http://10.153.20.22:5000/v2.0

*) With version [1] on OSP7, I get this result:
-------------------------------- CUT HERE ----------------------------------------------
OK: Glance image uploaded in 0.936028003693 seconds
-------------------------------- 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/glance.py", line 110, in _check_glance_upload
    options, args, client = glance.setup()
  File "/usr/lib/python2.7/site-packages/oschecks/utils.py", line 163, 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
    force_auth=force_auth)
  File "/usr/lib/python2.7/site-packages/glanceclient/shell.py", line 449, in _get_endpoint_and_token
    auth_reqd = force_auth or (utils.is_authentication_required(args.func)
AttributeError: 'Namespace' object has no attribute 'func'
-------------------------------- 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.