Unable to start openstack-swift-proxy.service with kilo on Centos7

Asked by rajan433 on 2015-09-30

// Checking Status

[root@controller swift]# systemctl status openstack-swift-proxy.service

openstack-swift-proxy.service - OpenStack Object Storage (swift) - Proxy Server Loaded: loaded (/usr/lib/systemd/system/openstack-swift-proxy.service; enabled) Active: failed (Result: exit-code) since
Wed 2015-09-23 19:45:37 EDT; 21h ago Process: 20147 ExecStart=/usr/bin/swift-proxy-server /etc/swift/proxy-server.conf (code=exited, status=1/FAILURE) Main PID: 20147 (code=exited, status=1/FAILURE)

Sep 23 19:45:37 controller swift-proxy-server[20147]: global_conf=global_conf)
Sep 23 19:45:37 controller swift-proxy-server[20147]: File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 328, in _loadegg
Sep 23 19:45:37 controller swift-proxy-server[20147]: return loader.get_context(object_type, name, global_conf)
Sep 23 19:45:37 controller swift-proxy-server[20147]: File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 620, in get_context
Sep 23 19:45:37 controller swift-proxy-server[20147]: object_type, name=name)
Sep 23 19:45:37 controller swift-proxy-server[20147]: File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 659, in find_egg_entry_point
Sep 23 19:45:37 controller swift-proxy-server[20147]: for prot in protocol_options] or '(no entry points)'))))
Sep 23 19:45:37 controller swift-proxy-server[20147]: LookupError: Entry point 'memcache\nmemcache_servers = 127.0.0.1:11211' not found in egg 'swift' (dir:...points: )
Sep 23 19:45:37 controller systemd[1]: openstack-swift-proxy.service: main process exited, code=exited, status=1/FAILURE
Sep 23 19:45:37 controller systemd[1]: Unit openstack-swift-proxy.service entered failed state. Hint: Some lines were ellipsized, use -l to show in full.

// Starting the service. Does not show any error while command is run

[root@controller swift]# systemctl start openstack-swift-proxy.service

// Check the status again, but it failed as below

[root@controller swift]# systemctl status openstack-swift-proxy.service -l openstack-swift-proxy.service - OpenStack Object Storage (swift) - Proxy Server Loaded: loaded (/usr/lib/systemd/system/openstack-swift-proxy.service; enabled) Active: failed (Result: exit-code) since Thu 2015-09-24 17:38:59 EDT; 6s ago Process: 4766 ExecStart=/usr/bin/swift-proxy-server /etc/swift/proxy-server.conf (code=exited, status=1/FAILURE) Main PID: 4766 (code=exited, status=1/FAILURE)

Sep 24 17:38:59 controller swift-proxy-server[4766]: global_conf=global_conf)
Sep 24 17:38:59 controller swift-proxy-server[4766]: File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 328, in _loadegg
Sep 24 17:38:59 controller swift-proxy-server[4766]: return loader.get_context(object_type, name, global_conf)
Sep 24 17:38:59 controller swift-proxy-server[4766]: File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 620, in get_context
Sep 24 17:38:59 controller swift-proxy-server[4766]: object_type, name=name)
Sep 24 17:38:59 controller swift-proxy-server[4766]: File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 659, in find_egg_entry_point
Sep 24 17:38:59 controller swift-proxy-server[4766]: for prot in protocol_options] or '(no entry points)'))))
Sep 24 17:38:59 controller swift-proxy-server[4766]: LookupError: Entry point 'memcache\nmemcache_servers = 127.0.0.1:11211' not found in egg 'swift' (dir: /usr/lib/python2.7/site-packages; protocols: paste.filter_factory, paste.filter_app_factory; entry_points: )
Sep 24 17:38:59 controller systemd[1]: openstack-swift-proxy.service: main process exited, code=exited, status=1/FAILURE
Sep 24 17:38:59 controller systemd[1]: Unit openstack-swift-proxy.service entered failed state.

I have done so many research but still can not make it work.

// As a result, I am not able to get service status for object storage

[root@controller ~]# swift -V 3 stat ('Connection aborted.', error(111, 'Connection refused'))

// proxy-server.conf file

[DEFAULT] bind_port = 8080 user = swift swift_dir = /etc/swift

[pipeline:main] pipeline = catch_errors gatekeeper healthcheck proxy-logging cache container_sync bulk ratelimit authtoken keystoneauth container-quotas account-quotas slo dlo proxy-logging proxy-server

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

[filter:tempauth] use = egg:swift#tempauth user_admin_admin = admin .admin .reseller_admin user_test_tester = testing .admin user_test2_tester2 = testing2 .admin user_test_tester3 = testing3 user_test5_tester5 = testing5 service

[filter:authtoken] paste.filter_factory = keystonemiddleware.auth_token:filter_factory auth_uri = http://controller:5000 auth_url = http://controller:35357 auth_plugin = password project_domain_id = default user_domain_id = default project_name = service username = swift password = password delay_auth_decision = true

[filter:keystoneauth] use = egg:swift#keystoneauth operator_roles = admin,user

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

[filter:cache] use = egg:swift#memcache memcache_servers = 127.0.0.1:11211

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

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

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

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

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

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

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

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

[filter:list-endpoints] use = egg:swift#list_endpoints

[filter:proxy-logging] use = egg:swift#proxy_logging

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

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

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

[filter:container-quotas] use = egg:swift#container_quotas

[filter:account-quotas] use = egg:swift#account_quotas

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

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

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

I would really appreciate if somebody can shed some light. This is very important project for me. I am not getting much response in openstack forum.

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Last query:
2015-09-30
Last reply:
2015-09-30
Samuel Merritt (torgomatic) said : #1

Your conf file is supposed to be newline-delimited, with one [section] or key = value per line.

Can you help with this problem?

Provide an answer of your own, or ask rajan433 for more information if necessary.

To post a message you must log in.