Unfriendly error if auth_url not specified when using glance+keystone

Bug #925681 reported by justinsb on 2012-02-02
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Eoghan Glynn

Bug Description

When using glance with keystone, if auth_url isn't specified an unfriendly error message is printed:

root@openstack1:~/images# glance --username=demo --password=supersecret --auth_strategy=keystone index
Failed to show index. Got error:
'NoneType' object has no attribute 'rstrip'

root@openstack1:~/images# glance --username=demo --password=supersecret --auth_strategy=keystone --auth_url= index
ID Name Disk Format Container Format Size
------------------------------------ ------------------------------ -------------------- -------------------- --------------
912fcb1a-19ca-4555-a377-5b74fc94458f cirros-0.3.0-x86_64-blank ami ami 25165824
50cc38e2-bc10-4fef-8ca0-7124286d490c cirros-0.3.0-x86_64-blank-ramd ari ari 2254249
9436916c-ae07-4262-baf1-5ced1c5ef499 cirros-0.3.0-x86_64-blank-kern aki aki 4731440

Jay Pipes (jaypipes) on 2012-02-02
Changed in glance:
status: New → Triaged
importance: Undecided → Medium
milestone: none → essex-4
tags: added: cli low-hanging-fruit
Jay Pipes (jaypipes) on 2012-02-03
Changed in glance:
assignee: nobody → Jay Pipes (jaypipes)
Eoghan Glynn (eglynn) on 2012-02-14
Changed in glance:
assignee: Jay Pipes (jaypipes) → Eoghan Glynn (eglynn)

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

Changed in glance:
status: Triaged → In Progress

Reviewed: https://review.openstack.org/4132
Committed: http://github.com/openstack/glance/commit/3af64e56d23d3adddc1ded2e2c00e995d30444a8
Submitter: Jenkins
Branch: master

commit 3af64e56d23d3adddc1ded2e2c00e995d30444a8
Author: Eoghan Glynn <email address hidden>
Date: Tue Feb 14 11:08:01 2012 +0000

    Require auth URL if keystone strategy is enabled.

    Fixes bug 925681

    The glance CLI now fails fast if the keystone authentication strategy
    is enabled, but the --auth_url option or OS_AUTH_URL environment variable
    is not set.

    Change-Id: I73bfd4f19a3d882ad53d3d2c914ce11e48ce291d

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx) on 2012-02-29
Changed in glance:
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2012-04-05
Changed in glance:
milestone: essex-4 → 2012.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers