installing swift client tool

asked 2011-09-01 08:02:58 -0600

victor-tey gravatar image

how do I install ONLY the swift tool on a client machine that needs to talk to a openstack swift storage?

I copy the /bin/st file and tried running that which doesn't work.

I did not install the swift storage but I need to run some batch script in unix(centos or ubuntu) to download/upload some files to the swift storage.

edit retag flag offensive close merge delete

7 answers

Sort by ยป oldest newest most voted
0

answered 2011-09-02 03:50:27 -0600

The st/swift script is self contained:

http://bazaar.launchpad.net/~hudson-openstack/swift/trunk/view/head:/bin/swift (http://bazaar.launchpad.net/~hudson-o...)

You should be able to copy it to a host and run it without having to install Swift packages on the systems. What error where you getting when you attempted to use it ?

edit flag offensive delete link more
0

answered 2011-09-02 04:04:25 -0600

victor-tey gravatar image

Ahh I might have got an older version. I copied bin/st instead of bin/swift. I will give that a shot again thanks :)

edit flag offensive delete link more
0

answered 2011-09-02 05:55:15 -0600

victor-tey gravatar image

bin/swift -A https://example:8080/auth/v1.0 -U myAccessKey -K mySecretKey stat

i tried the above but got the error

File "bin/swift", line 164 proxy_parsed = urlparse(proxy) if proxy else None

Am i doing something wrong?

edit flag offensive delete link more
0

answered 2011-09-02 08:33:54 -0600

soren gravatar image

Can you post the full output, please?

edit flag offensive delete link more
0

answered 2011-09-02 09:21:42 -0600

victor-tey gravatar image

that is the full output.

edit flag offensive delete link more
0

answered 2011-09-02 09:24:38 -0600

victor-tey gravatar image

-bash-3.2# bin/swift -A 'https://example.org:8080/auth/v1.0' -U vortal -K hj38ddjj3ksk-2kdkkw stat File "bin/swift", line 164 proxy_parsed = urlparse(proxy) if proxy else None ^ SyntaxError: invalid syntax

edit flag offensive delete link more
0

answered 2011-09-02 16:41:21 -0600

victor-tey gravatar image

I found the issue. seem like the ternary operator is not available on the version of python i had which is 2.4.3.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-09-01 08:02:58 -0600

Seen: 134 times

Last updated: Sep 02 '11