[Errno 111] ECONNREFUSED

Asked by WangPeng

Hi,every:
That is my first install swift,I according to objectstorage-adminguide-essex.pdf from www.openstack.org.
when I after install ,Verify the Installation,
use swift -V 2 -A http://<AUTH_HOSTNAME>:5000/v2.0 -U adminUser:admin -K 012345SECRET99TOKEN012345 stat
[Errno 111] ECONNREFUSED

why?
before this error ,everything is ok.
there are not erroe in syslog
why ?
what can i do for it

what'mean "-U option"?
system user?or keystone tenant admin ?

please help me!

Question information

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

root@swift-proxy:/proc# swift -v -V 2.0 -A http://172.18.32.7:5000/v2.0/ -U service:swift -K admin stat
Auth GET failed: http://172.18.32.7:5000/v2.0/tokens 401 Not Authorized

Revision history for this message
Best asa_sa (asa-sa) said :
#2

Hi, WangPeng:

option -U means username for swift authentication service.

I guess you are using keystone. then form is maybe like below:
 swift -U (os_tenant_name):(os_username) -K (os_password) -A (os_auth_url) command

If you are using tempauth or swauth, form is like below:
 swift -U (account name):(user name) -K (user passwd) -A (auth url) command
For example, your account name is "admin" and your user name is "user1", then become "-U admin:user1"

# I've never use keystone, so sorry if I wrong.

Revision history for this message
WangPeng (breakwindwp) said :
#3

Thanks asa_sa, that solved my question.