glance-manage does not display basic options if run without any arguments

Bug #1394316 reported by Louis Taylor
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Low
Kamil Rykowski

Bug Description

glance-manage isn't very helpful if it is run without any arguments. Compare against nova-manage and cinder-manage:

$ nova-manage
usage: nova-manage [-h] [--config-dir DIR] [--config-file PATH] [--debug]
                   [--log-config-append PATH] [--log-date-format DATE_FORMAT]
                   [--log-dir LOG_DIR] [--log-file PATH] [--log-format FORMAT]
                   [--nodebug] [--nouse-syslog] [--nouse-syslog-rfc-format]
                   [--noverbose] [--syslog-log-facility SYSLOG_LOG_FACILITY]
                   [--use-syslog] [--use-syslog-rfc-format] [--verbose]
                   [--version] [--remote_debug-host REMOTE_DEBUG_HOST]
                   [--remote_debug-port REMOTE_DEBUG_PORT]
                   {version,bash-completion,shell,logs,db,vm,agent,host,flavor,vpn,floating,project,account,network,service,cell,fixed}
                   ...
nova-manage: error: too few arguments

$ cinder-manage

OpenStack Cinder version: 2014.2

/usr/local/bin/cinder-manage category action [<args>]
Available categories:
        db
        volume
        host
        shell
        logs
        service
        config
        version
        backup

Glance-manage, on the other hand shows very little extra information:

$ glance-manage
usage: glance-manage [options] <cmd>
glance-manage: error: too few arguments

Louis Taylor (kragniz)
Changed in glance:
importance: Undecided → Wishlist
tags: added: low-hanging-fruit
Erno Kuvaja (jokke)
Changed in glance:
status: New → Confirmed
importance: Wishlist → Low
Changed in glance:
assignee: nobody → tcs_openstack_group (tcs-openstack-group)
Changed in glance:
assignee: tcs_openstack_group (tcs-openstack-group) → Abhishek Talwar (abhishek-talwar)
Changed in glance:
assignee: Abhishek Talwar (abhishek-talwar) → nobody
Hao Chen (chenh1987)
Changed in glance:
assignee: nobody → Hao Chen (chenh1987)
Changed in glance:
assignee: Hao Chen (chenh1987) → Kamil Rykowski (kamil-rykowski)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

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

Changed in glance:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/158654
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=fd2057d5211486bb22392a91a04316a9a75758bc
Submitter: Jenkins
Branch: master

commit fd2057d5211486bb22392a91a04316a9a75758bc
Author: Kamil Rykowski <email address hidden>
Date: Tue Feb 24 12:49:22 2015 +0100

    glance-manage output when ran without any arguments

    The glance-manage command isn't very helpful when it is run without any
    arguments. The current output looks like following:

    $ glance-manage
    usage: glance-manage [options] <cmd>
    glance-manage: error: too few arguments

    This patch extends the default output to look similar to what can be
    seen in the cinder-manage tool. The new output is:

    $ glance-manage
    /usr/local/bin/glance-manage category action [<args>]
    Available categories:
     db

    Change-Id: I2c56ccf5a28cdaf9fdfb03d79763b34dc096a858
    Closes-Bug: #1394316

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
milestone: none → liberty-1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in glance:
milestone: liberty-1 → 11.0.0
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.