Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Here is the output of swift-init start main on swift-proxy node

ubuntu@fxhhr:~$ sudo swift-init -n start main
Starting proxy-server...(/etc/swift/proxy-server.conf)
Unable to locate config for container-server
Unable to locate config for account-server
Unable to locate config for object-server
Traceback (most recent call last):
  File "/usr/bin/swift-proxy-server", line 22, in <module>
    run_wsgi(conf_file, 'proxy-server', default_port=8080, **options)
  File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 122, in run_wsgi
    loadapp('config:%s' % conf_file, global_conf={'log_name': log_name})
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
    return context.create()
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create
    return self.object_type.invoke(self)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 203, in invoke
    app = context.app_context.create()
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 710, in create
    return self.object_type.invoke(self)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 146, in invoke
    return fix_call(context.object, context.global_conf, **context.local_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/util.py", line 56, in fix_call
    val = callable(*args, **kw)
  File "/usr/lib/python2.7/dist-packages/swift/proxy/server.py", line 1949, in app_factory
    return Application(conf)
  File "/usr/lib/python2.7/dist-packages/swift/proxy/server.py", line 1749, in __init__
    Ring(os.path.join(swift_dir, 'object.ring.gz'))
  File "/usr/lib/python2.7/dist-packages/swift/common/ring/ring.py", line 51, in __init__
    self._reload(force=True)
  File "/usr/lib/python2.7/dist-packages/swift/common/ring/ring.py", line 56, in _reload
    ring_data = pickle.load(GzipFile(self.pickle_gz_path, 'rb'))
  File "/usr/lib/python2.7/gzip.py", line 89, in __init__
    fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: '/etc/swift/object.ring.gz'
share|improve this question

1 Answer 1

The swift rings are not created and distributed to swift-storage units until the object replica count can be fulfilled by back-end swift-storage services.

I'd recommend reading the README from the swift-proxy charm - specifically the sections on zone assignment - to understand how the swift-proxy and swift-storage charms interact with each other.

share|improve this answer
    
I did. I deploy in 'auto' mode. here is my setup: swift storage: charm: cs:precise/swift-storage-18 exposed: false relations: swift-storage: - swift-proxy units: swift-storage/0: agent-state: started agent-version: 1.16.2.1 machine: "4" public-address: xbnqa swift-storage/1: agent-state: started agent-version: 1.16.2.1 machine: "7" public-address: ey8wh swift-storage/3: agent-state: started agent-version: 1.16.2.1 machine: "9" public-address: ghj45 –  Assaf Sedaka Nov 18 '13 at 12:00

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.