os-instance_usage_audit_log is used instead of os-instance-usage-audit-log

Bug #1516158 reported by jichenjc
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Won't Fix
Medium
jichenjc
openstack-api-site
Fix Released
Medium
Sean Dague

Bug Description

os-instance-usage-audit-log is not being used, os-instance_usage_audiog is ,
this is really weird

curl -g -i -X GET http://192.168.122.239:8774/v2.1/d1c5aa58af6c426492c642eb649017be/os-instance-usage-audit-log -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-OpenStack-Nova-API-Version: 2.6" -H "X-Auth-Token: 2832457c94bd485094ffba70206208dc"

404 Not Found

The resource could not be found.

curl -g -i -X GET http://192.168.122.239:8774/v2.1/d1c5aa58af6c426492c642eb649017be/os-instance_usage_audiog -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-OpenStack-Nova-API-Version: 2.6" -H "X-Auth-Token: 2832457c94bd485094ffba70206208dc"

{"instance_usage_audit_logs": {"total_errors": 0, "total_instances": 0, "log": {}, "num_hosts_running": 0, "num_hosts_done": 0, "num_hosts_not_run": 1, "hosts_not_run": ["devstack1"], "overall_status": "0 of 1 hosts done. 0 errors.", "period_ending": "2015-11-01 00:00:00", "period_beginning": "2015-10-01 00:00:00", "num_hosts": 1}}

Tags: api
Revision history for this message
jichenjc (jichenjc) wrote :

not consistent to other endpoint ....

tags: added: api
Changed in nova:
assignee: nobody → jichenjc (jichenjc)
Revision history for this message
Sean Dague (sdague) wrote :

This is actually a documentation bug, should be fixed on the API site.

Changed in nova:
importance: Undecided → Medium
Changed in openstack-api-site:
importance: Undecided → Medium
status: New → Confirmed
Changed in nova:
status: New → Won't Fix
Revision history for this message
Sean Dague (sdague) wrote :

Review posted for this at - https://review.openstack.org/#/c/246383/

Changed in openstack-api-site:
assignee: nobody → Sean Dague (sdague)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to api-site (master)

Reviewed: https://review.openstack.org/246383
Committed: https://git.openstack.org/cgit/openstack/api-site/commit/?id=80e2386a51d6a02034ca731e4906a13bcaca096a
Submitter: Jenkins
Branch: master

commit 80e2386a51d6a02034ca731e4906a13bcaca096a
Author: Sean Dague <email address hidden>
Date: Tue Nov 17 08:20:23 2015 -0500

    fix os-instance_usage_audit_log name

    os-instance-usage-audit-log is not a resource, it's actually
    os-instance_usage_audit_log. Why is kind of unclear, but that's what
    we've got at this point.

    We should fix the docs to be accurate to the code.

    Change-Id: Ie9d60990c44d9571b87fe9403a3860be682ef929
    Closes-Bug: #1516158

Changed in openstack-api-site:
status: Confirmed → Fix Released
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.