I'm trying to set up a 'Swift All In One' system on a Ubuntu 12.04 VM by the link:http://docs.openstack.org/developer/swift/development_saio.html.
When I run the command on the VM:
curl -v -H 'X-Storage-User: test:tester' -H 'X-Storage-Pass: testing' http://127.0.0.1:8080/auth/v1.0
It works well,but if I change the address "127.0.0.1" into "192.168.254.129"(the VM ip address) and still run the command on the VM,like:
curl -v -H 'X-Storage-User: test:tester' -H 'X-Storage-Pass: testing' http://192.168.254.129:8080/auth/v1.0
it fails and hints "Connection refused".
I have tried to close the firewall on the VM and it doesn't work either.
In my opinion, the two commands should both succeed or fail, because both "127.0.0.1" and "192.168.254.129" refer to the same VM machine.