heat --include-password does not pass credentials in request

Bug #1665321 reported by Kashif Siddiqui
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-heatclient
In Progress
Medium
Kashif Siddiqui

Bug Description

v1.8.0 (Exists in earlier versions as well)

heat --include-pass stack-create does not pass the credentials in request headers even though ENV has os_username and os_password set.

But it does work if we disable the client auth and manually pass the auth_token
for eg. This works
heat --include-pass --os-no-client-auth --os-auth-token <SOME_VALID_TOKEN> stack-create -f template.yaml stack1

STEPS:

  NOT WORKING:
    > set OS_USERNAME and OS_PASSWORD and other stuff...
    > heat --debug --include-pass stack-create -f template.yaml stack1
  RESULT:
    No 'X-Auth-User' and 'X-Auth-Key' in request header

  WORKING:
    > heat --debug --os-no-client-auth --os-auth-token <SOME_TOKEN> --include-pass stack-create -f template.yaml stack1
  RESULT:
    'X-Auth-User' and 'X-Auth-Key' present in request header

Changed in python-heatclient:
assignee: nobody → Kashif Siddiqui (kashif.siddiqui)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-heatclient (master)

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

Changed in python-heatclient:
status: New → In Progress
Changed in python-heatclient:
status: In Progress → Fix Committed
Changed in python-heatclient:
status: Fix Committed → In Progress
Rico Lin (rico-lin)
Changed in python-heatclient:
milestone: none → 2.0.0
importance: Undecided → Medium
Rico Lin (rico-lin)
Changed in python-heatclient:
milestone: 1.10.0 → 1.11.0
Rico Lin (rico-lin)
Changed in python-heatclient:
milestone: 1.11.0 → 1.12.0
Rico Lin (rico-lin)
Changed in python-heatclient:
milestone: none → 1.12.0
Rico Lin (rico-lin)
Changed in python-heatclient:
milestone: 1.12.0 → 1.13.0
Rico Lin (rico-lin)
Changed in python-heatclient:
milestone: 1.13.0 → 1.14.0
Rico Lin (rico-lin)
Changed in python-heatclient:
milestone: 1.14.0 → 1.15.0
Rico Lin (rico-lin)
Changed in python-heatclient:
milestone: 1.15.0 → 1.16.0
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.