unable to get the swift account details on another remote machine

Asked by vikrant

HI All,

I have configured swift with swauth authentication on a physical machine(machine A). I have also configured the storage node in this machine.

i am successfully able to create swift account, when i execute

"swift -A http://127.0.0.1:8080/auth/v1.0 -U test:tester -K testing stat -v " i am getting the account details

but when i am executing it from an another physical machine(machine B) by giving

"swift -A http://<IP of machine A>:8080/auth/v1.0 -U test:tester -K testing stat -v" i am getting following error

"Account HEAD failed: http://127.0.0.1:8080/v1/AUTH_326ab564-4311-47a9-97c4-ede448791b9f 401 Unauthorized"

my question here is why on machine B the error is saying the address as "http://127.0.0.1:8080" when i am giving the actual IP of machine A in the command "http://<IP of machine A>:8080"

I need to execute this from machine B for my cloud setup.

Please help

vikrant

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Mehmet Hacısalihoğlu (esedmehmet) said :
#1

Are you change the following commands?
Modify memcached to listen on the default interfaces. Preferably this should be on a local, non-public network. Edit the IP address in /etc/memcached.conf, for example:
perl -pi -e "s/-l 127.0.0.1/-l $PROXY_LOCAL_NET_IP/" /etc/memcached.conf
are you sure proxy server ip that 127.0.0.1?
This error is make incorrect configuration.

Revision history for this message
Samuel Merritt (torgomatic) said :
#2

When the client authenticates, it receives a token and a storage URL. That storage URL contains "http://127.0.0.1".

You'll need to consult the swauth documentation for how to fix that.

Revision history for this message
Mehmet Hacısalihoğlu (esedmehmet) said :
#3

You must change configuration files. and you can try changed ip.

Can you help with this problem?

Provide an answer of your own, or ask vikrant for more information if necessary.

To post a message you must log in.