authentication through password prompting is broken

Bug #1428912 reported by Lin Hua Cheng
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
Medium
Dean Troyer

Bug Description

Things are working fine prior to commit: 505fa14cd68e13d066a5770a229ba0d7fa88d2a9

Steps.
1. export the OS environment variable
2. run openstack
3. This used to prompt for password, but now it doesn't
4. run: user list
ERROR: openstack Authorization Failed: Cannot authenticate without an auth_url

Expected result: the password should be prompted again when running openstack, and the auth_url must be set correctly.

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

made the bug title a bit less scary

summary: - authentication is currently broken
+ authentication through password prompting is broken
Revision history for this message
Dean Troyer (dtroyer) wrote :

Based on when this broke, I think https://review.openstack.org/129795 may fix it as the default auth-type detection gets moved up to the initial option parsing.

Revision history for this message
Lin Hua Cheng (lin-hua-cheng) wrote :

Steve: heh thanks for updating the title :)

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

I forgot to add this bug to https://review.openstack.org/161095 which fixed this for me. Lin can you confirm?

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

Argh, that's the wrong review... it is https://review.openstack.org/#/c/161088/

Changed in python-openstackclient:
status: New → In Progress
assignee: nobody → Dean Troyer (dtroyer)
milestone: none → m8
importance: Undecided → Medium
Revision history for this message
Lin Hua Cheng (lin-hua-cheng) wrote :

Dean: Still got the same error reported in the patch.

~/Documents/workspace/python-openstackclient$ openstack
ERROR: openstack 'Namespace' object has no attribute 'os_url'

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

What command are you running? It seems to make a difference between compute, image, volume. And all three are fixed for me with https://review.openstack.org/#/c/161088/.

Revision history for this message
Lin Hua Cheng (lin-hua-cheng) wrote :

Dean: Sorry for the delay. The patch does fixed the issue now.

(.venv)lin-hua-cheng@linhuacheng-ubuntu:~/Documents/workspace/python-openstackclient$ openstack
(openstack) server list
Password:

The password is now prompted when the first command is executed by OSC. The password used to get prompted as soon the user enter OSC cli.

The behavior changed a bit, but it works now with https://review.openstack.org/#/c/161088/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-openstackclient (master)

Reviewed: https://review.openstack.org/161088
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=749920bc65d4859eeaf44d16ae94f842d88af178
Submitter: Jenkins
Branch: master

commit 749920bc65d4859eeaf44d16ae94f842d88af178
Author: Dean Troyer <email address hidden>
Date: Tue Mar 3 20:29:38 2015 -0600

    Move OSC auth plugins so they can be found

    The plugin detection at the top of openstackclient.api.auth did not
    detect the plugins at the bottom of that file because, surprise,
    they had not been declared yet so the entry points were ignored.

    Move both plugin subclasses into openstackclient.api.auth_plugin.

    Fix a problem with the password callback that was otherwise made
    worse with this change.

    Closes-Bug: 1428912
    Change-Id: Idc3b72534071e0013c8922884a8bc14137509a0f

Changed in python-openstackclient:
status: In Progress → Fix Committed
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.