Saraha for work with Swift uses tenant from his config but not user tenant

Bug #1314124 reported by Vadim Rovachev
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Sahara
Incomplete
Undecided
Dmitry Mescheryakov

Bug Description

Sahara config(part):
...
os_admin_password=<admin_password>
os_admin_username=sahara
os_admin_tenant_name=services
...

User credentials
username=admin
tenant_name=admin
password=<user_password>

Preconditions steps:
User has created cluster, has added jar and pig scripts and input file for edp job in Swift, has created data sources, job binaries and job.

Step to reproduse:
Launch Job.
Wait some time.
Expected result: Job SUCCESSED.
Actual result: Job in pending state.

------------------------------------------------------------------------------
Sahara trace:
http://paste.openstack.org/show/77644/
------------------------------------------------------------------------------
if I send request for tokens as in Sahara: 401 Unauthorized
   curl -i -X POST http://<host>:5000/v2.0/tokens -H "Content-Type: application/json" -H "User-Agent: python-keystoneclient" -d '{"auth": {"tenantName": "services", "passwordCredentials": {"username": "admin", "password": <user_password>}}}'
   HTTP/1.1 401 Unauthorized
   ...
   {"error": {"message": "User 8b885fda630c4adbb08650688303ecfe is unauthorized for tenant
--------------------------
If i change "tenantName" from "services" to "services": HTTP/1.1 200 OK
   curl -i -X POST http://<host>:5000/v2.0/tokens -H "Content-Type: application/json" -H "User-Agent: python-keystoneclient" -d '{"auth": {"tenantName": "services",, "passwordCredentials": {"username": "admin", "password": <user_password>}}}'
   HTTP/1.1 200 OK
   ...
   {JSON with tokens}
--------------------------

description: updated
Changed in sahara:
assignee: nobody → Dmitry Mescheryakov (dmitrymex)
Changed in sahara:
milestone: none → juno-1
Changed in sahara:
status: New → Incomplete
Changed in sahara:
milestone: juno-1 → none
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.