Juju Charm - Swift proxy -error: pkg_resources.DistributionNotFound: swift3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
distribute (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
I'm installing openstack using juju on 6 machines, ubuntu 12.04 freshly installed. I'm using the icehouse release (cloud:
Description: Ubuntu 12.04.4 LTS
Release: 12.04
juju deploy --config=swift.cfg --to 0 swift-proxy
and using:
cat >swift.cfg <<END
swift-proxy:
replicas: 3
swift-
zone: 1
swift-
zone: 2
swift-
zone: 3
END
I'm now installing the storage with swift and got the following error :
root@monroe:~# service swift-proxy start
start: Job failed to start
I investigated /var/log/
Here is the syslog:
May 21 11:42:27 monroe kernel: [11578.865048] init: swift-proxy post-stop process (16183) terminated with status 1
Nothing really helpful so i tried to start it up manually and I found this:
root@monroe:~# swift-proxy-server /etc/swift/
Traceback (most recent call last):
File "/usr/bin/
sys.
File "/usr/lib/
loadapp(
File "/usr/lib/
ctx = loadcontext(
File "/usr/lib/
global_
File "/usr/lib/
global_
File "/usr/lib/
return loader.
File "/usr/lib/
object_type, name=name, global_
File "/usr/lib/
global_
File "/usr/lib/
for name in pipeline[:-1]]
File "/usr/lib/
object_type, name=name, global_
File "/usr/lib/
section)
File "/usr/lib/
object_type, name=use, global_
File "/usr/lib/
object_type, name=name, global_
File "/usr/lib/
global_
File "/usr/lib/
global_
File "/usr/lib/
return loader.
File "/usr/lib/
object_type, name=name)
File "/usr/lib/
pkg_
File "/usr/lib/
needed = self.resolve(
File "/usr/lib/
raise DistributionNot
pkg_resources.
Apparently, there is something wrong in the config file. Here is the proxy-server.conf file :
root@monroe:~# cat /etc/swift/
[DEFAULT]
bind_port = 8070
workers = 0
user = swift
[pipeline:main]
pipeline = gatekeeper healthcheck cache swift3 s3token container_sync bulk tempurl slo dlo formpost authtoken keystoneauth staticweb container-quotas account-quotas proxy-server
[app:proxy-server]
use = egg:swift#proxy
allow_account_
account_autocreate = true
[filter:tempauth]
use = egg:swift#tempauth
user_system_root = testpass .admin https:/
[filter:
use = egg:swift#
[filter:cache]
use = egg:swift#memcache
memcache_servers = 10.0.30.103:11211
[filter:
use = egg:swift#
[filter:
use = egg:swift#
[filter:staticweb]
use = egg:swift#staticweb
[filter:bulk]
use = egg:swift#bulk
[filter:slo]
use = egg:swift#slo
[filter:dlo]
use = egg:swift#dlo
[filter:formpost]
use = egg:swift#formpost
[filter:tempurl]
use = egg:swift#tempurl
[filter:
use = egg:swift#
[filter:gatekeeper]
use = egg:swift#
[filter:
use = egg:swift#
operator_roles = Member,Admin
[filter:authtoken]
paste.filter_
auth_host = 10.0.30.102
auth_port = 35357
auth_protocol = http
auth_uri = http://
admin_tenant_name = services
admin_user = swift
admin_password = xxxxxxxxxxxxxxx
delay_auth_decision = true
signing_dir = /etc/swift
cache = swift.cache
[filter:s3token]
paste.filter_
service_host = 10.0.30.102
service_port = 5000
auth_port = 35357
auth_host = 10.0.30.102
auth_protocol = http
auth_token = xxxxxxxxxxxxxxx
admin_token = xxxxxxxxxxxxxxx
[filter:swift3]
use = egg:swift3#swift3
All the swift zones are setup and ready, all the services are up. Just the proxy can't start.
Does anyone have any idea what should I do?
Thanks !
QUickfix :
By removing "swift3 s3token" into the [pipeline:main] allow the swift proxy to start without problem and be ready to use.
Maybe that can help!