How to get back a public IP in the X-Storage-URL with an OpenStack SAIO installation

Asked by Alejandro Núñez Sánchez

Hello all,

I'm new to OpenStack. I did a SAIO installation to get started with testing, after reading the provided documentation.
I was expecting to get a public IP back in the X-Storage-URL for the steps 10 and 11 of the SAIO installation process, but I'm getting a 127.0.0.1 address (localhost). I would like to know which changes should I do in the configuration of my OpenStack SAIO installtion to get a public IP instead of that as I need this for my testing purposes.

Regards and thanks in advance.

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Solved by:
Jay Payne
Solved:
Last query:
Last reply:
Revision history for this message
Best Jay Payne (letterj) said :
#1

In the swauth section of the proxy config, use the config option default_swift_cluster

# You may also use the format name#url#url where the first url is the one
# given to users to access their account (public url) and the second is the one
# used by swauth itself to create and delete accounts (private url). This is
# useful when a load balancer url should be used by users, but swauth itself is
# behind the load balancer. Example:
# default_swift_cluster = local#https://public.com:8080/v1#http://private.com:8080/v1

Once you change "pubic.com" to a public IP address and restart the proxy server the next account that you create will reference that public IP in the X-Storage-URL.

Revision history for this message
Alejandro Núñez Sánchez (alex-dunadan) said :
#2

Thanks Jay Payne, that solved my question.