improve the heat-cfn error when "without credentials"

Bug #1154759 reported by Steven Dake
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Low
Steven Hardy

Bug Description

running heat-cfn without loaded credentials locks up and never completes.

Steven Dake (sdake)
Changed in heat:
status: New → Triaged
importance: Undecided → High
milestone: none → grizzly-rc1
Angus Salkeld (asalkeld)
Changed in heat:
assignee: nobody → Angus Salkeld (asalkeld)
Revision history for this message
Angus Salkeld (asalkeld) wrote :

with openrc sourced:
-----------------------
heat list

heat-cfn list
<ListStacksResponse>
  <ListStacksResult>
    <StackSummaries/>
  </ListStacksResult>
</ListStacksResponse>

then unsetting the creds
-----------------------------
unset OS_PASSWORD
unset OS_AUTH_URL
unset OS_USERNAME
unset OS_TENANT_NAME
unset OS_CACERT

 heat list
You must provide a username via either --os-username or env[OS_USERNAME]

heat-cfn list
ERROR:Failed to list. Got error:
ERROR:[Errno -2] Name or service not known

This is a little slower (1.2 sec), but I wouldn't call it a lockup.

Revision history for this message
Angus Salkeld (asalkeld) wrote :

Close with "not-a-bug"/"not-reproducible".

Changed in heat:
status: Triaged → Incomplete
milestone: grizzly-rc1 → none
Revision history for this message
Steven Dake (sdake) wrote :

The error ERROR:[Errno -2] Name or service not known seems a little vague or incorrect.

Angus Salkeld (asalkeld)
summary: - heat-cfn without credentials locks up
+ improve the heat-cfn error when "without credentials"
Changed in heat:
importance: High → Low
Angus Salkeld (asalkeld)
Changed in heat:
status: Incomplete → Confirmed
Steven Hardy (shardy)
Changed in heat:
assignee: Angus Salkeld (asalkeld) → Steven Hardy (shardy)
milestone: none → havana-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (master)

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

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

Reviewed: https://review.openstack.org/28559
Committed: http://github.com/openstack/heat/commit/43d54ba5ad69c2ecd69e75d8d455039fe9b352f9
Submitter: Jenkins
Branch: master

commit 43d54ba5ad69c2ecd69e75d8d455039fe9b352f9
Author: Steven Hardy <email address hidden>
Date: Wed May 8 14:43:12 2013 +0100

    heat-cfn : Make error with missing auth details more obvious

    Exit with an error message describing the missing auth details
    instead of failing with cryptic "Name or service not known" error
    when credentials etc are missing

    fixes bug #1154759

    Change-Id: I19c22357526c73e824a2b2bb9f862c8724a8ebba

Changed in heat:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in heat:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in heat:
milestone: havana-1 → 2013.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.