Authentication needed for help command

Bug #1399588 reported by Andreas Jaeger
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
Low
Dean Troyer

Bug Description

I can run just fine:
$ openstack --version
openstack 1.0.0

but this fails:
$ openstack help aggregate
ERROR: openstack Authentication type must be selected with --os-auth-type

$ openstack help
ERROR: openstack Authentication type must be selected with --os-auth-type

Revision history for this message
Terry Howe (thowe-g) wrote :

Since the commands available depend on your service catalog, OSC cannot produce help without authenticating. The command set is loaded dynamically. This is not a bug.

Revision history for this message
Andreas Jaeger (jaegerandi) wrote :

How can we then document the client best in an automatic way? With 0.4.1 it worked just fine, see here for the result:

http://docs.openstack.org/cli-reference/content/openstackclient_commands.html

Dean Troyer (dtroyer)
Changed in python-openstackclient:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Steve Martinelli (stevemar) wrote :

You can use `openstack --help` for a list of commands.

Revision history for this message
Steve Martinelli (stevemar) wrote :

Commands based on the default APIs that are selected by OSC...

Revision history for this message
Christian Berendt (berendt) wrote :

I think python-openstackclient should behave like the other CLI
clients. I think the different behavior of python-openstackclient will
confuse a lot of user when trying to get help.

While it is true that it is possible to get a list of all available
commands with 'openstack --help' (our requirement) it is not possible to
get detailled information of a command or subcommand without setting the
auth parameters.

Revision history for this message
Dean Troyer (dtroyer) wrote :

The current behaviour is broken, and I think I did it when adding the auth plugin support. Our intention is for a certain amount of help to always be available. The limitation will be with regard to API versions, but for any set of versions the help text should always be displayed without any authentication configured.

Changed in python-openstackclient:
assignee: nobody → Dean Troyer (dtroyer)
milestone: none → m8
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-openstackclient (master)

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

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

Reviewed: https://review.openstack.org/159940
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=505fa14cd68e13d066a5770a229ba0d7fa88d2a9
Submitter: Jenkins
Branch: master

commit 505fa14cd68e13d066a5770a229ba0d7fa88d2a9
Author: Dean Troyer <email address hidden>
Date: Fri Feb 27 09:19:12 2015 -0600

    Fix auth-required for help command

    When we got picky with the auth arguments we broke using help without
    any auth config supplied. This rearranges things a bit to do the argument
    checking when the deferred auth request to Identity occurs so commands
    that do not need auth have a chance to live short but useful lives.

    Closes-Bug: #1399588
    Change-Id: I8ceac491cf65e25eddb62ab2713f471fe686756d

Changed in python-openstackclient:
status: In Progress → Fix Committed
Dean Troyer (dtroyer)
summary: - authentication needed for help command
+ Authentication needed for help command
Dean Troyer (dtroyer)
Changed in python-openstackclient:
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.