Skip to content

Instantly share code, notes, and snippets.

@doxavore
Last active Aug 29, 2015
Embed
What would you like to do?
doug@swift1-01:/etc/swift$ env|grep ST_
ST_AUTH=http://127.0.0.1:8080/auth/v1.0
ST_USER=test:tester3
ST_KEY=testing3
Feb 17 04:45:47 swift1-01 swift: 127.0.0.1 127.0.0.1 17/Feb/2015/04/45/47 GET /auth/v1.0 HTTP/1.0 200 - python-swiftclient-2.3.1 - - - - tx5a4180217c554697be30e-0054e2c77b - 0.0005 - - 1424148347.570113897 1424148347.570660114
Feb 17 04:45:47 swift1-01 object-server: 10.8.2.86 - - [17/Feb/2015:04:45:47 +0000] "HEAD /d0/231526/AUTH_test" 400 34 "HEAD http://127.0.0.1:8080/v1/AUTH_test" "txe3c350cdb14d4a6098da4-0054e2c77b" "proxy-server 4583" 0.0001 "-" 4514
Feb 17 04:45:47 swift1-01 swift: - - 17/Feb/2015/04/45/47 HEAD /v1/AUTH_test HTTP/1.0 400 - Swift - - - - txe3c350cdb14d4a6098da4-0054e2c77b - 0.0051 TA - 1424148347.572789907 1424148347.577907085
Feb 17 04:45:47 swift1-01 swift: 127.0.0.1 127.0.0.1 17/Feb/2015/04/45/47 HEAD /v1/AUTH_test HTTP/1.0 403 - python-swiftclient-2.3.1 AUTH_tk1a53483b8... - - - txe3c350cdb14d4a6098da4-0054e2c77b - 0.0070 - - 1424148347.572252989 1424148347.579253912
@matthewoliver

This comment has been minimized.

Copy link

@matthewoliver matthewoliver commented Feb 17, 2015

What happens when you try:

ST_AUTH=http://127.0.0.1:8080/auth/v1.0
ST_USER=test:tester
ST_KEY=testing

This account should be an admin

@matthewoliver

This comment has been minimized.

Copy link

@matthewoliver matthewoliver commented Feb 17, 2015

url -s -i -H "X-Storage-User: test:tester" -H "X-Storage-Pass: testing" http://127.0.0.1:8080/auth/v1.0

@doxavore

This comment has been minimized.

Copy link
Owner Author

@doxavore doxavore commented Feb 17, 2015

HTTP/1.1 200 OK
X-Storage-Url: http://127.0.0.1:8080/v1/AUTH_test
X-Auth-Token: AUTH_tk4033425fd3f748e4ae6eddc15a4a4868
Content-Type: text/html; charset=UTF-8
X-Storage-Token: AUTH_tk4033425fd3f748e4ae6eddc15a4a4868
Content-Length: 0
X-Trans-Id: tx2dee556ed1284fadb5131-0054e2cf23
Date: Tue, 17 Feb 2015 05:18:27 GMT

@matthewoliver

This comment has been minimized.

Copy link

@matthewoliver matthewoliver commented Feb 17, 2015

curl -i -X HEAD -H "X-Auth-Token: AUTH_tk4033425fd3f748e4ae6eddc15a4a4868" http://127.0.0.1:8080/v1/AUTH_test

@doxavore

This comment has been minimized.

Copy link
Owner Author

@doxavore doxavore commented Feb 17, 2015

HTTP/1.1 400 Bad Request
Content-Length: 0
Content-Type: text/html; charset=UTF-8
X-Trans-Id: tx69ca9c92d3a240b19f00d-0054e2d02f
Date: Tue, 17 Feb 2015 05:22:55 GMT

In the log:
Feb 17 05:23:45 swift1-01 object-server: 10.8.2.86 - - [17/Feb/2015:05:23:45 +0000] "HEAD /d0/231526/AUTH_test" 400 34 "HEAD http://127.0.0.1:8080/v1/AUTH_test" "tx66e03a26fa4e408d8e9ba-0054e2d061" "proxy-server 4900" 0.0001 "-" 4514

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment