[Openstack-operators] problem with SWIFT + Keystone ([Errno 113] EHOSTUNREACH)

Salman Toor salman.toor at it.uu.se
Wed Oct 3 13:06:47 UTC 2012


Hi,


I am running keystone on node-1 and SWIFT proxy server on node-2. 

When I try to use following command:

# swift -V 2.0 -A http://130.238.17.161:5000/v2.0 -U openstackDemo:adminUser -K adm stat
[Errno 113] EHOSTUNREACH

Got this error message. 

in "auth_host" and "auth_uri", I am using my keystone server's address. 

Also please guide me how to enable logs for the proxy server. I have set the flags but cannot get the log. 



proxy-server.conf
------------------------
[DEFAULT]
bind_port = 8888
user = swift 
log_facility = LOG_LOCAL0
log_level = DEBUG
log_name = proxy-server
log_address = /var/log/swift/

[pipeline:main]
pipeline = catch_errors healthcheck cache authtoken proxy-server

[app:proxy-server]
use = egg:swift#proxy
allow_account_management = true
account_autocreate = true

[filter:authtoken]
paste.filter_factory = keystone.middleware.auth_token:filter_factory
auth_protocol = http
auth_host = node-1-IP 
auth_port = 35357
auth_uri = http://<node-1-IP>:5000/
admin_token = 88bb4dd4f5132fc6b513 
delay_auth_decision = 0

[filter:cache]
use = egg:swift#memcache
set log_name = cache

[filter:catch_errors]
use = egg:swift#catch_errors

[filter:healthcheck]
use = egg:swift#healthcheck
-----------------------------------------------------------------------------


Seems like I get authenticated from keystone host 

-------------- keystone log file ------------------------------
2012-10-03 14:50:18    DEBUG [keystone.common.wsgi] ******************** REQUEST ENVIRON ********************
2012-10-03 14:50:18    DEBUG [keystone.common.wsgi] SCRIPT_NAME = /v2.0
2012-10-03 14:50:18    DEBUG [keystone.common.wsgi] webob.adhoc_attrs = {'response': <Response at 0x2e99c50 200 OK>}
2012-10-03 14:50:18    DEBUG [keystone.common.wsgi] REQUEST_METHOD = POST
2012-10-03 14:50:18    DEBUG [keystone.common.wsgi] PATH_INFO = /tokens
2012-10-03 14:50:18    DEBUG [keystone.common.wsgi] SERVER_PROTOCOL = HTTP/1.0
2012-10-03 14:50:18    DEBUG [keystone.common.wsgi] CONTENT_LENGTH = 116
2012-10-03 14:50:18    DEBUG [keystone.common.wsgi] eventlet.posthooks = []
2012-10-03 14:50:18    DEBUG [keystone.common.wsgi] RAW_PATH_INFO = /v2.0/tokens
2012-10-03 14:50:18    DEBUG [keystone.common.wsgi] REMOTE_ADDR = 130.238.17.163
2012-10-03 14:50:18    DEBUG [keystone.common.wsgi] eventlet.input = <eventlet.wsgi.Input object at 0x2dfdbd0>
2012-10-03 14:50:18    DEBUG [keystone.common.wsgi] wsgi.url_scheme = http
2012-10-03 14:50:18    DEBUG [keystone.common.wsgi] webob._body_file = (<LimitedLengthFile(<eventlet.wsgi.Input object at 0x2dfdbd0>, maxlen=116)>, <eventlet.wsgi.Input object at 0x2dfdbd0>)
2012-10-03 14:50:18    DEBUG [keystone.common.wsgi] SERVER_PORT = 5000
2012-10-03 14:50:18    DEBUG [keystone.common.wsgi] wsgi.input = <_io.BytesIO object at 0x2def2f0>
2012-10-03 14:50:18    DEBUG [keystone.common.wsgi] openstack.context = {'token_id': None, 'is_admin': False}
2012-10-03 14:50:18    DEBUG [keystone.common.wsgi] HTTP_HOST = 130.238.17.161:5000
2012-10-03 14:50:18    DEBUG [keystone.common.wsgi] wsgi.multithread = True
2012-10-03 14:50:18    DEBUG [keystone.common.wsgi] openstack.params = {u'auth': {u'tenantName': u'openstackDemo', u'passwordCredentials': {u'username': u'adminUser', u'password': u'adminUser'}}}
2012-10-03 14:50:18    DEBUG [keystone.common.wsgi] wsgi.version = (1, 0)
2012-10-03 14:50:18    DEBUG [keystone.common.wsgi] SERVER_NAME = 130.238.17.161
2012-10-03 14:50:18    DEBUG [keystone.common.wsgi] GATEWAY_INTERFACE = CGI/1.1
2012-10-03 14:50:18    DEBUG [keystone.common.wsgi] wsgi.run_once = False
2012-10-03 14:50:18    DEBUG [keystone.common.wsgi] wsgi.errors = <open file '<stderr>', mode 'w' at 0x7fa039c2c270>
2012-10-03 14:50:18    DEBUG [keystone.common.wsgi] wsgi.multiprocess = False
2012-10-03 14:50:18    DEBUG [keystone.common.wsgi] webob.is_body_seekable = True
2012-10-03 14:50:18    DEBUG [keystone.common.wsgi] CONTENT_TYPE = application/json
2012-10-03 14:50:18    DEBUG [keystone.common.wsgi] HTTP_ACCEPT_ENCODING = identity
2012-10-03 14:50:18    DEBUG [keystone.common.wsgi] 
2012-10-03 14:50:18    DEBUG [keystone.common.wsgi] ******************** REQUEST BODY ********************
2012-10-03 14:50:18    DEBUG [keystone.common.wsgi] {"auth": {"tenantName": "openstackDemo", "passwordCredentials": {"username": "adminUser", "password": "adminUser"}}}
2012-10-03 14:50:18    DEBUG [keystone.common.wsgi] 
2012-10-03 14:50:18    DEBUG [routes.middleware] Matched POST /tokens
2012-10-03 14:50:18    DEBUG [routes.middleware] Route path: '{path_info:.*}', defaults: {'controller': <keystone.service.PublicRouter object at 0x291dc90>}
2012-10-03 14:50:18    DEBUG [routes.middleware] Match dict: {'controller': <keystone.service.PublicRouter object at 0x291dc90>, 'path_info': '/tokens'}
2012-10-03 14:50:18    DEBUG [routes.middleware] Matched POST /tokens
2012-10-03 14:50:18    DEBUG [routes.middleware] Route path: '/tokens', defaults: {'action': u'authenticate', 'controller': <keystone.service.TokenController object at 0x2925050>}
2012-10-03 14:50:18    DEBUG [routes.middleware] Match dict: {'action': u'authenticate', 'controller': <keystone.service.TokenController object at 0x2925050>}
2012-10-03 14:50:18    DEBUG [keystone.common.wsgi] arg_dict: {}
2012-10-03 14:50:19    DEBUG [root] TOKEN_REF {'id': 'a1b776f255284fe2979e57e117a25b85', 'expires': datetime.datetime(2012, 10, 4, 12, 50, 18, 945689), 'user': {u'tenantId': u'fc310cff7c6d4684954151196f944dc8', u'enabled': True, u'email': None, 'name': u'adminUser', 'id': u'11c08cf04c844185b83ce9d8ff8588f5'}, 'tenant': {u'description': u'Default Tenant', u'enabled': True, 'id': u'fc310cff7c6d4684954151196f944dc8', 'name': u'openstackDemo'}, 'metadata': {u'roles': [u'164bd25d92d14ebc97dfb16b198507e6']}}
2012-10-03 14:50:19    DEBUG [keystone.common.wsgi] ******************** RESPONSE HEADERS ********************
2012-10-03 14:50:19    DEBUG [keystone.common.wsgi] Content-Type = application/json
2012-10-03 14:50:19    DEBUG [keystone.common.wsgi] Vary = X-Auth-Token
2012-10-03 14:50:19    DEBUG [keystone.common.wsgi] Content-Length = 2196
2012-10-03 14:50:19    DEBUG [keystone.common.wsgi] 
2012-10-03 14:50:19    DEBUG [keystone.common.wsgi] ******************** RESPONSE BODY ********************
2012-10-03 14:50:19    DEBUG [keystone.common.wsgi] {"access": {"token": {"expires": "2012-10-04T12:50:18Z", "id": "a1b776f255284fe2979e57e117a25b85", "tenant": {"description": "Default Tenant", "enabled": true, "id": "fc310cff7c6d4684954151196f944dc8", "name": "openstackDemo"}}, "serviceCatalog": [{"endpoints": [{"adminURL": "http://130.238.17.161:8774/v2/fc310cff7c6d4684954151196f944dc8", "region": "RegionOne", "internalURL": "http://130.238.17.161:8774/v2/fc310cff7c6d4684954151196f944dc8", "publicURL": "http://130.238.17.161:8774/v2/fc310cff7c6d4684954151196f944dc8"}], "endpoints_links": [], "type": "compute", "name": "nova"}, {"endpoints": [{"adminURL": "http://130.238.17.161:9292/v1", "region": "RegionOne", "internalURL": "http://130.238.17.161:9292/v1", "publicURL": "http://130.238.17.161:9292/v1"}], "endpoints_links": [], "type": "image", "name": "glance"}, {"endpoints": [{"adminURL": "http://130.238.17.161:8776/v1/fc310cff7c6d4684954151196f944dc8", "region": "RegionOne", "internalURL": "http://130.238.17.161:8776/v1/fc310cff7c6d4684954151196f944dc8", "publicURL": "http://130.238.17.161:8776/v1/fc310cff7c6d4684954151196f944dc8"}], "endpoints_links": [], "type": "volume", "name": "volume"}, {"endpoints": [{"adminURL": "http://130.238.17.161:8773/services/Admin", "region": "RegionOne", "internalURL": "http://130.238.17.161:8773/services/Cloud", "publicURL": "http://130.238.17.161:8773/services/Cloud"}], "endpoints_links": [], "type": "ec2", "name": "ec2"}, {"endpoints": [{"adminURL": "http://130.238.17.161:8888/v1/AUTH_fc310cff7c6d4684954151196f944dc8", "region": "RegionOne", "internalURL": "http://130.238.17.161:8888/v1", "publicURL": "http://130.238.17.161:8888/v1/AUTH_fc310cff7c6d4684954151196f944dc8"}], "endpoints_links": [], "type": "object-store", "name": "swift"}, {"endpoints": [{"adminURL": "http://130.238.17.161:35357/v2.0", "region": "RegionOne", "internalURL": "http://130.238.17.161:5000/v2.0", "publicURL": "http://130.238.17.161:5000/v2.0"}], "endpoints_links": [], "type": "identity", "name": "keystone"}], "user": {"username": "adminUser", "roles_links": [], "id": "11c08cf04c844185b83ce9d8ff8588f5", "roles": [{"id": "164bd25d92d14ebc97dfb16b198507e6", "name": "admin"}], "name": "adminUser"}}}
2012-10-03 14:50:19    DEBUG [eventlet.wsgi.server] 130.238.17.163 - - [03/Oct/2012 14:50:19] "POST /v2.0/tokens HTTP/1.1" 200 2344 0.129909
--------------------------------------------------------------------


Any hint will be highly appreciated. 

Thanks in advanced. 

Regards..
Salman. 





More information about the OpenStack-operators mailing list