cinder.py from monitoring-for-openstack does not work on kilo

Bug #1534194 reported by VIncent S. Cojot
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Operators
Confirmed
Undecided
Unassigned
monitoring-for-openstack
New
Undecided
Sofer Athlan-Guyot

Bug Description

/usr/bin/oschecks-check_cinder_api reports a 403 when used against OSP7.
It is because we are calling the cinder API with a tenant name instead of a tenant id to list the quotas.

1) More output information:

When running this:
/usr/bin/oschecks-check_cinder_api --os-username sensu --os-password sensu --os-tenant-name monitoring --os-auth-url http://192.168.1.7:5000/v2.0
[...]
Forbidden: Access was denied to this resource. (HTTP 403) (Request-ID: req-be899553-d341-4911-b6ce-f9e01cd9498c)

I think the issue comes from this line:
https://github.com/openstack/osops-tools-monitoring/blob/master/monitoring-for-openstack/oschecks/cinder.py#L42

instead of doing this:
 return client.quotas.get(options.os_tenant_name)
something like this would be needed:
 return client.quotas.get(options.os_tenant_id)

unfortunately, options.os_tenant_id isn't populated by the current code.

Changed in osops:
status: New → Confirmed
Changed in monitoring-for-openstack:
assignee: nobody → Sofer Athlan-Guyot (sofer-athlan-guyot)
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.