--os-username flag referenced but not available.

Bug #1103218 reported by Matt Joyce
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cliff
Fix Released
Undecided
Terry Howe
python-openstackclient
Invalid
Low
Terry Howe

Bug Description

stack@devstack:~$ openstack --os_username=admin --os-password=stack --os-tenant-name=admin --os-auth-url=http://127.0.0.1:5000/v2.0/
ERROR: cliff.app Invalid command '--os_username=admin'
stack@devstack:~$ openstack --os-username=admin --os-password=stack --os-tenant-name=admin --os-auth-url=http://127.0.0.1:5000/v2.0/
INFO: requests.packages.urllib3.connectionpool Starting new HTTP connection (1): 127.0.0.1
Usage: openstack [options]

openstack: error: no such option: --os-username
stack@devstack:~$ openstack
ERROR: cliff.app You must provide a username via either --os-username or env[OS_USERNAME]

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

The error message is actually incorrect, no command is given and the error message should reflect that instead.

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

This appears to have been resolved, can you confirm?

Changed in python-openstackclient:
status: Triaged → Incomplete
Revision history for this message
Matt Joyce (matt-nycresistor) wrote :

I'll check.

Terry Howe (thowe-g)
Changed in python-openstackclient:
status: Incomplete → Confirmed
assignee: nobody → Terry Howe (thowe-g)
Revision history for this message
Terry Howe (thowe-g) wrote :

I'm planning on fixing this in cliff

Changed in python-cliff:
status: New → In Progress
assignee: nobody → Terry Howe (thowe-g)
Changed in python-openstackclient:
status: Confirmed → Invalid
Revision history for this message
Terry Howe (thowe-g) wrote :

With this command line the OSC should go interactive mode. I think if cliff overrides the cmdloop, it should work properly.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cliff (master)

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

Terry Howe (thowe-g)
Changed in python-cliff:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to cliff (master)

Reviewed: https://review.openstack.org/75211
Committed: https://git.openstack.org/cgit/openstack/cliff/commit/?id=ab1ac30ca26c2550d375b126491ad527ad60349b
Submitter: Jenkins
Branch: master

commit ab1ac30ca26c2550d375b126491ad527ad60349b
Author: Terry Howe <email address hidden>
Date: Thu Feb 20 15:29:58 2014 -0700

    Fix interactive mode with command line args

    The cmdloop in cmd2 looks for a --test option in the parsed arguments which doesn't work if you want to pass other arguments in interactive mode. If any other arguments are passed in, an exception is thrown.

    Change-Id: Iacd3d338dce74f4de9eaf5c9c8ad8ac9f9ae32e3
    Closes-Bug: #1103218

Changed in python-cliff:
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.