What is the impact of changing default_swift_cluster in proxy-server.conf?

Asked by Timur Irmatov

During initial installation of Swift servers we had default_swift_cluster setting in proxy-server.conf set set to 'local#http://127.0.0.1:8080/v1'.

Now, as we upload more than hundred thousand objects and slowly moving into production, we would like to change that setting to 'local#http://some.host.name:8080/v1'. This is needed because when one remotely authenticates at the proxy, he sees X-Storage-Url as pointing to localhost.

What is the impact of changing default_swift_cluster? Do we need to perform additional actions?

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Solved by:
David Cole
Solved:
Last query:
Last reply:
Revision history for this message
Best David Cole (david-cole) said :
#1

Hi Timur,

I came across this problem also... The X-Storage-Url is stored by swauth on a per-account basis when you first crate the account. Take a look at the following page: http://gholt.github.com/swauth/stable/api.html#set-service-endpoints . You can use curl to update the X-Storage-Url that a user will be given when they authenticate. Here is an example of how I changed from a private IP to a public (123.123.123.123) one :

$ curl -v -k -XPOST -D - https://127.0.0.1:8080/auth/v2/test/.services -H "X-Auth-Admin-User: .super_admin" -H "X-Auth-Admin-Key: xxxxxxx" --data-binary '{ "storage": {"local": "https://123.123.123.123:8080/v1/AUTH_29171976-3101-44e8-8d24-620f4ece60ec"}'

David.

Revision history for this message
Timur Irmatov (irmatov) said :
#2

Thanks David Cole, that solved my question.