swift works with OS_AUTH_URL but not '-A'

Asked by Josh Stillerman on 2013-02-19

I am trying to set up a simple openstack swift + keystone environment. I can get it to work if I define OS_AUTH_URL, but
when I instead specify -A and the same url I used in the environment variable I get "

Auth GET failed: http://localhost:5000/v2.0/ 200 OK

for example:

[jas@psfcstor1 swift]$ echo $OS_AUTH_URL
http://psfcstor1:5000/v2.0
[jas@psfcstor1 swift]$ swift -U demo:admin -K xxxx list
josh
nthoward
unique

the same thing -A
[jas@psfcstor1 swift]$ unset OS_AUTH_URL
[jas@psfcstor1 swift]$ swift -A http://psfcstor1:5000/v2.0 -U demo:admin -K xxxx list
Auth GET failed: http://psfcstor1:5000/v2.0/ 200 OK

I thought these should be equivalent ....

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Solved by:
Josh Stillerman
Solved:
2013-02-19
Last query:
2013-02-19
Last reply:
Josh Stillerman (jas-z) said : #1

A bit more information.... If I ask keystone about the endpoints and grep it for the identity service I get:

[root@psfcstor1 ~]# keystone endpoint-list | grep 361e565ef6cc44cc8f93dc1c092dd8c0
| c42e3c8705684113aee96caf33ddd07b | RegionOne | http://localhost:$(public_port)s/v2.0 | http://localhost:$(public_port)s/v2.0 | http://localhost:$(admin_port)s/v2.0 | 361e565ef6cc44cc8f93dc1c092dd8c0 |

now localhost should work (I am logged on to the same computer) but I am guessing that some of these should be the external IP of the computer ?

Josh Stillerman (jas-z) said : #2

I nice person on the openstack IRC solved this for me.

+creiht

suggested I use os_auth_url instead of -A, which worked. He explained that -A was deprecated.

Chuck Thier (cthier) said : #3

hehe... well -A isn't deprecated, but part of the legacy auth arguments.

--
Chuck

On Tue, Feb 19, 2013 at 12:36 PM, Josh Stillerman
<email address hidden> wrote:
> Question #222292 on OpenStack Object Storage (swift) changed:
> https://answers.launchpad.net/swift/+question/222292
>
> Status: Open => Solved
>
> Josh Stillerman confirmed that the question is solved:
> I nice person on the openstack IRC solved this for me.
>
> +creiht
>
> suggested I use os_auth_url instead of -A, which worked. He explained
> that -A was deprecated.
>
> --
> You received this question notification because you are an answer
> contact for OpenStack Object Storage (swift).