Ask Your Question
0

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

asked 2011-06-30 10:49:41 -0500

irmatov gravatar image

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?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2011-07-01 12:09:34 -0500

irmatov gravatar image

Thanks David Cole, that solved my question.

edit flag offensive delete link more
0

answered 2011-06-30 16:36:13 -0500

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 (http://gholt.github.com/swauth/stable...) . 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 (https://127.0.0.1:8080/auth/v2/test/....) -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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-06-30 10:49:41 -0500

Seen: 17 times

Last updated: Jul 01 '11