Wrong help given for nova usage command

Bug #1419726 reported by Abhishek Talwar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-novaclient
Fix Released
Low
Abhishek Talwar

Bug Description

Running nova help usage command gives you help as :

$ nova help usage

usage: nova usage [--start <start>] [--end <end>] [--tenant <tenant-id>]

Show usage data for a single tenant.

Optional arguments:
  --start <start> Usage range start date ex 2012-01-20 (default: 4 weeks
                        ago)
  --end <end> Usage range end date, ex 2012-01-20 (default:
                        tomorrow)
  --tenant <tenant-id> UUID or name of tenant to get usage for.

Running the command with tenant name doesn't give the right output.

So the help should be modified to :

$ nova help usage

usage: nova usage [--start <start>] [--end <end>] [--tenant <tenant-id>]

Show usage data for a single tenant.

Optional arguments:
  --start <start> Usage range start date ex 2012-01-20 (default: 4 weeks
                                   ago)
  --end <end> Usage range end date, ex 2012-01-20 (default:
                                   tomorrow)
  --tenant <tenant-id> UUID of tenant to get usage for.

This way the user will get to know that the command works only with tenant-id and not tenant-name.

Changed in python-novaclient:
assignee: nobody → Abhishek Talwar (abhishek-talwar)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-novaclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/154007

Changed in python-novaclient:
status: New → In Progress
melanie witt (melwitt)
Changed in python-novaclient:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-novaclient (master)

Reviewed: https://review.openstack.org/154007
Committed: https://git.openstack.org/cgit/openstack/python-novaclient/commit/?id=2504f39ce3e13dffdb70481e7c9f59f1432caad9
Submitter: Jenkins
Branch: master

commit 2504f39ce3e13dffdb70481e7c9f59f1432caad9
Author: Abhishek Talwar <email address hidden>
Date: Mon Feb 9 17:40:07 2015 +0530

    Wrong help for nova usage command

    nova help usage commands provides help that the command
    can be used with either tenant name or tenant ID but using
    tenant name gives wrong output.

    So, updated the help for the command so that it is shown
    that only tenant ID can be used.

    Change-Id: I2ae1edd28d75fc7988fcd0da5b0fdd8081455b16
    Closes-Bug: #1419726

Changed in python-novaclient:
status: In Progress → Fix Committed
Michael Still (mikal)
Changed in python-novaclient:
milestone: none → 2.21.0
Michael Still (mikal)
Changed in python-novaclient:
status: Fix Committed → 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.