Ask Your Question
0

swift stat [Errno 111] Connection refused error

asked 2014-09-30 07:56:47 -0500

arun_vav gravatar image

updated 2014-09-30 09:22:41 -0500

larsks gravatar image

Hi All,

I am getting [Errno 111] Connection refused error, after i setup swift service.

root@block1:/etc/swift# swift stat
[Errno 111] Connection refused

My Box settings:

root@block1:/etc/swift# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:50:56:92:61:fc
          inet addr:10.100.1.156  Bcast:10.100.1.255  Mask:255.255.255.0

memcached.conf entry = -l 10.100.1.156

proxy-servr.conf :
[filter:authtoken]
paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
#service_port = 5000
#service_host = 10.100.1.150
auth_protocol = http
auth_host = 10.100.1.150
auth_port = 35357
#auth_uri = http://10.100.1.150:5000
admin_tenant_name = admin
admin_user = admin
admin_password = ADMIN_PASS
delay_auth_decision = 1
cahce = swift.cache

use = egg:swift#memcache
set log_name = cache
memcached_servers = 10.100.1.156:11211

all the swift object, container, account, proxy services are running fine.

Update:

i have changed the bind_port to 80 and its listening :

root@block1:/etc/swift# netstat -tlnp | grep 80 
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 13379/python

keystone service runs fine.

edit retag flag offensive close merge delete

Comments

How have you determined that they are "running fine"? Are there any errors in the logs? Does netstat -tlnp show something listening on port 8080? Is Keystone running successfully?

larsks gravatar imagelarsks ( 2014-09-30 08:11:19 -0500 )edit

Please update your question to add new information. Thanks! I moved your information re: netstat into the question for you.

larsks gravatar imagelarsks ( 2014-09-30 09:23:13 -0500 )edit

Is your keystone service catalog pointing at the correct port? What is the output of keystone endpoint-get --service object-store?

larsks gravatar imagelarsks ( 2014-09-30 09:24:48 -0500 )edit

3 answers

Sort by ยป oldest newest most voted
1

answered 2014-10-01 20:46:06 -0500

smaffulli gravatar image

If you search for the error code on this site you'll find plenty of suggestions on how to fix the authorization problem. For example, a case for Swift https://ask.openstack.org/en/question... (but the code is the same when using Nova or other services).

edit flag offensive delete link more
1

answered 2014-10-01 12:12:08 -0500

mpetason gravatar image

updated 2014-10-01 12:12:43 -0500

You are using Keystone Auth which means you actually need to auth against keystone so you should add this to swift stat:

swift --os-auth-url=http://10.100.1.150:35357/v2.0 stat

I think swift stat tries to pull the swift endpoint maybe because it assumes swift auth instead of keystone.

Also you need to change it back from 80 to 8080 - unless you actually updates the endpoint information in keystone/other configs.

edit flag offensive delete link more

Comments

HI, Sure Thanks. I will definitely create it.

Before that pls check my end point entry creation is correct, comparing to the present swift configuration

arun_vav gravatar imagearun_vav ( 2014-10-05 23:42:10 -0500 )edit

root@controller:~# keystone endpoint-create --service-id=de9b0ef89dd046b587875d4f4215aa8b --publicurl='http://controller:8080/v1/AUTH_%(tenant_id)s' --internalurl='http://controller:8080/v1/AUTH_%(tenant_id)s' --adminurl=http://controller:8080

arun_vav gravatar imagearun_vav ( 2014-10-05 23:42:13 -0500 )edit

Hi, FIxed - There was mismatch values in endpoint - fixed it now. THANKS A LOT :)

arun_vav gravatar imagearun_vav ( 2014-10-06 00:50:58 -0500 )edit

Awesome, congrats!

mpetason gravatar imagempetason ( 2014-10-06 09:41:33 -0500 )edit
1

answered 2014-10-06 00:51:30 -0500

arun_vav gravatar image

Hi, FIxed - There was mismatch values in endpoint - fixed it now. THANKS A LOT :)

root@block1:~# keystone endpoint-delete deb0a9486011465a83ddc9571a52b970 Endpoint has been deleted. root@block1:~# keystone endpoint-list +----------------------------------+-----------+-----------------------------------------+-----------------------------------------+-----------------------------------------+----------------------------------+ | id | region | publicurl | internalurl | adminurl | service_id | +----------------------------------+-----------+-----------------------------------------+-----------------------------------------+-----------------------------------------+----------------------------------+ | 1ec8106dd8a04114be071ad54f21a8cb | regionOne | http://controller:5000/v2.0 | http://controller:5000/v2.0 | http://controller:35357/v2.0 | 0c928248a4314e179e9aee3fe46e0863 | | 547258d8ab8d40c591fd029b32647a5e | regionOne | http://controller:8774/v2/%25(tenant_id)s (http://controller:8774/v2/%(tenant_id)s) | http://controller:8774/v2/%25(tenant_id)s (http://controller:8774/v2/%(tenant_id)s) | http://controller:8774/v2/%25(tenant_id)s (http://controller:8774/v2/%(tenant_id)s) | a0adac3b9d95467c996f9e9eb6c7f580 | | 6b4b93c176754a4db850a10b878551fc | regionOne | http://controller:8777 | http://controller:8777 | http://controller:8777 | 0015ef783113410e956a72c0dbb26e83 | | 917773adc3234322aff940ddb7ddf2ba | regionOne | http://controller:8776/v1/%25(tenant_id)s (http://controller:8776/v1/%(tenant_id)s) | http://controller:8776/v1/%25(tenant_id)s (http://controller:8776/v1/%(tenant_id)s) | http://controller:8776/v1/%25(tenant_id)s (http://controller:8776/v1/%(tenant_id)s) | e420b31afd96430b98b25adbe2786789 | | c7b3c82c98234076b34931eb7ba615e6 | regionOne | http://controller:8004/v1/%25(tenant_id)s (http://controller:8004/v1/%(tenant_id)s) | http://controller:8004/v1/%25(tenant_id)s (http://controller:8004/v1/%(tenant_id)s) | http://controller:8004/v1/%25(tenant_id)s (http://controller:8004/v1/%(tenant_id)s) | cbc349ae33374bc8b63a52f6cf5f995d | | ce655b4ada4949d5b54b9f3fadb8dad4 | regionOne | http://controller:9696 | http://controller:9696 | http://controller:9696 | 54f7247f98544f45a58a2b218e1c7b79 | | dc28a258ae7d4350947bb50d4530a7d8 | regionOne | http://controller:8776/v2/%25(tenant_id)s (http://controller:8776/v2/%(tenant_id)s) | http://controller:8776/v2/%25(tenant_id)s (http://controller:8776/v2/%(tenant_id)s) | http://controller:8776/v2/%25(tenant_id)s (http://controller:8776/v2/%(tenant_id)s) | 1cf9c01bf82846e389527745e0de728a | | e32371873cdc49438e8791c2170652eb | regionOne | http://controller:9292 | http://controller:9292 | http://controller:9292 | 2d5a9887961f4ba6ba112ed48b18c3a9 | | e541ebd90876443488c7da99907db46c | regionOne | http://controller:8000/v1 | http://controller:8000/v1 | http://controller:8000/v1 | d2792f334f3747948b5997813c7c8acf | +----------------------------------+-----------+-----------------------------------------+-----------------------------------------+-----------------------------------------+----------------------------------+ root@block1:~# keystone endpoint-create --service-id=de9b0ef89dd046b587875d4f4215aa8b --publicurl=http://controller:5000/v2.0 --internalurl=http://controller:5000/v2.0 --adminurl=http://controller:/v2.0

root@block1:~# keystone endpoint-list +----------------------------------+-----------+-----------------------------------------+-----------------------------------------+-----------------------------------------+----------------------------------+ | id | region | publicurl | internalurl | adminurl | service_id | +----------------------------------+-----------+-----------------------------------------+-----------------------------------------+-----------------------------------------+----------------------------------+ | 1ec8106dd8a04114be071ad54f21a8cb | regionOne | http://controller:5000/v2.0 | http://controller:5000/v2.0 | http://controller:35357/v2.0 | 0c928248a4314e179e9aee3fe46e0863 | | 547258d8ab8d40c591fd029b32647a5e | regionOne | http://controller:8774/v2/%25(tenant_id)s (http://controller:8774/v2/%(tenant_id)s) | http://controller:8774/v2/%25(tenant_id)s (http://controller:8774/v2/%(tenant_id)s) | http://controller:8774/v2/%25(tenant_id)s (http://controller:8774/v2/%(tenant_id)s) | a0adac3b9d95467c996f9e9eb6c7f580 | | 68e2dd185e3644299375a4d5606c55ce | regionOne | http://controller:5000/v2.0 | http://controller:5000/v2.0 | http://controller:/v2.0 | de9b0ef89dd046b587875d4f4215aa8b | | 6b4b93c176754a4db850a10b878551fc | regionOne | http://controller:8777 | http://controller:8777 | http://controller:8777 | 0015ef783113410e956a72c0dbb26e83 | | 917773adc3234322aff940ddb7ddf2ba | regionOne | http://controller:8776/v1/%25(tenant_id)s (http://controller:8776/v1/%(tenant_id)s) | http://controller:8776/v1/%25(tenant_id)s (http://controller:8776/v1/%(tenant_id)s) | http://controller:8776/v1/%25(tenant_id)s (http://controller:8776/v1/%(tenant_id)s) | e420b31afd96430b98b25adbe2786789 | | c7b3c82c98234076b34931eb7ba615e6 | regionOne | http://controller:8004/v1/%25(tenant_id)s (http://controller:8004/v1/%(tenant_id)s) | http://controller:8004/v1/%25(tenant_id)s (http://controller:8004/v1/%(tenant_id)s) | http://controller:8004/v1/%25(tenant_id)s (http://controller:8004/v1/%(tenant_id)s) | cbc349ae33374bc8b63a52f6cf5f995d | | ce655b4ada4949d5b54b9f3fadb8dad4 | regionOne | http://controller:9696 | http://controller:9696 | http://controller:9696 | 54f7247f98544f45a58a2b218e1c7b79 | | dc28a258ae7d4350947bb50d4530a7d8 | regionOne | http://controller:8776/v2/%25(tenant_id)s (http://controller:8776 ... (more)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-09-30 07:56:47 -0500

Seen: 1,592 times

Last updated: Oct 06 '14