tempauth pipeline missing in rhel setup

Bug #1579725 reported by Ankur Jain
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Packstack
Incomplete
Undecided
Ankur Jain

Bug Description

[filter:tempauth]
use = egg:swift#tempauth
user_admin_admin = admin .admin .reseller_admin
user_test_tester = testing .admin
user_test2_tester2 = testing2 .admin
user_test3_tester3 = testing3

is missing in swift configurations.

Revision history for this message
Ankur Jain (j-ankur) wrote :

I will submit patch soon

Changed in swift:
assignee: nobody → Ankur Jain (j-ankur)
Revision history for this message
Christian Schwede (cschwede) wrote :

Where is the tempauth section missing? tempauth shouldn't be used in production (and especially not with the default credentials shown above), therefore I think this needs some more explanation.

Changed in swift:
status: New → Incomplete
Revision history for this message
Ankur Jain (j-ankur) wrote :

TempAuth section is missing in proxy-server.conf in packstack installation.
Actually, i have to execute "swift-dispersion-*" in packstack installation, and it was throwing exception.
So then i saw this difference between packstack and devstack installation, the difference was of tempauth in pipeline, so thought of adding it in packstack.

Revision history for this message
Christian Schwede (cschwede) wrote :

What kind of exception was thrown when executing the swift-dispersion commands?

swift-dispersion needs its own user, and this is defined in /etc/swift/dispersion.conf. You might need to create another user to use this; it should use its own project/tenant and user and not the defaults.

Revision history for this message
Ankur Jain (j-ankur) wrote :

This exception was thrown
>>>>"swiftclient.exceptions.ClientException: Auth GET failed: http://192.168.52.131:8080/auth/v1.0 400 Bad Request [first 60 chars of response] <html><h1>Bad Request</h1><p>The server could not comply wit"

i was using this conf file. i.e dispersion.conf
=================================================
[dispersion]
auth_url = http://192.168.52.131:8080/auth/v1.0
auth_user = test:tester
auth_key = testing
=================================================

Revision history for this message
Christian Schwede (cschwede) wrote :

Please have a look at https://review.openstack.org/gitweb?p=openstack/swift.git;a=blob;f=etc/dispersion.conf-sample - there is an example how to use swift-dispersion with Keystone:

auth_url = http://localhost:5000/v2.0/
auth_user = tenant:user
auth_key = password
auth_version = 2.0

This report affects packstack, therefore changing from Swift to packstack.

affects: swift → packstack
Revision history for this message
Ankur Jain (j-ankur) wrote :

Thanks! It Worked.

But the url it is generating is of v1.0 not of v2.0
>>>> http://192.168.52.131:8080/v1/AUTH_d9ef2055d8674141b71618ab51878e24

According to me the url generated by get_auth() function should be of v2.0 but it is not the case.

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.