Ask Your Question

Revision history [back]

Swift Proxy Server Error on RHEL7

Hi All,

Regarding Swift, I have configure it on controller node and also use same host as Swift Proxy server.

I configured the proxy config file as per below RHEL document . When I tried to start proxy service , it got failed. Please find the below debug and conf details.

Except this proxy(openstack-swift-proxy) service other swift services are running fine. Please advise a solution to fix this issue..

Document URL - https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/5/html/Installation_and_Configuration_Guide/sect-Configure_the_Object_Storage_Service.html#Configuring_the_Object_Storage_Service_Proxy_Service

@ control ~(keystone_admin)]#rpm -qa | grep swift
openstack-swift-plugin-swift3-1.7-3.el7ost.noarch
openstack-swift-object-1.13.1-3.el7ost.noarch
openstack-swift-1.13.1-3.el7ost.noarch
openstack-swift-proxy-1.13.1-3.el7ost.noarch
openstack-swift-container-1.13.1-3.el7ost.noarch
openstack-swift-account-1.13.1-3.el7ost.noarch

@ control ~(keystone_admin)]#grep ^[^#] /etc/swift/proxy-server.conf
[DEFAULT]
bind_port = 8080
workers = 8
user = swift
[pipeline:main]
pipeline = healthcheck cache authtoken keystone proxy-server
[app:proxy-server]
use = egg:swift#proxy
allow_account_management = true
account_autocreate = true
[filter:cache]
use = egg:swift#memcache
memcache_servers = 127.0.0.1:11211
[filter:catch_errors]
use = egg:swift#catch_errors
[filter:healthcheck]
use = egg:swift#healthcheck
[filter:keystone]
use = egg:swift#keystoneauth
operator_roles = admin, SwiftOperator
is_admin = true
cache = swift.cache
[filter:authtoken]
paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
admin_tenant_name = %SERVICE_TENANT_NAME%
admin_user = swift
admin_password = swift
auth_host = 192.168.2.51
auth_port = 35357
auth_protocol = http
signing_dir = /tmp/keystone-signing-swift
auth_tenant_name = services


@ control ~(keystone_admin)]#systemctl status openstack-swift-proxy
openstack-swift-proxy.service - OpenStack Object Storage (swift) - Proxy Server
   Loaded: loaded (/usr/lib/systemd/system/openstack-swift-proxy.service; disabled)
   Active: failed (Result: exit-code) since Mon 2014-12-15 17:54:02 IST; 526ms ago
  Process: 4605 ExecStart=/usr/bin/swift-proxy-server /etc/swift/proxy-server.conf (code=exited, status=1/FAILURE)
Main PID: 4605 (code=exited, status=1/FAILURE)

Dec 15 17:54:02 control.labs.com swift-proxy-server[4605]: self._reload(force=True)
Dec 15 17:54:02 control.labs.com swift-proxy-server[4605]: File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 154, in _reload
Dec 15 17:54:02 control.labs.com swift-proxy-server[4605]: ring_data = RingData.load(self.serialized_path)
Dec 15 17:54:02 control.labs.com swift-proxy-server[4605]: File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 64, in load
Dec 15 17:54:02 control.labs.com swift-proxy-server[4605]: gz_file = GzipFile(filename, 'rb')
Dec 15 17:54:02 control.labs.com swift-proxy-server[4605]: File "/usr/lib64/python2.7/gzip.py", line 94, in __init__
Dec 15 17:54:02 control.labs.com swift-proxy-server[4605]: fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
Dec 15 17:54:02 control.labs.com swift-proxy-server[4605]: IOError: [Errno 2] No such file or directory: '/etc/swift/object.ring.gz'
Dec 15 17:54:02 control.labs.com systemd[1]: openstack-swift-proxy.service: main process exited, code=exited, status=1/FAILURE
Dec 15 17:54:02 control.labs.com systemd[1]: Unit openstack-swift-proxy.service entered failed state.

Advance Thanks, Pradipta

Swift Proxy Server Error Please Help me on RHEL7Swift-Proxy Exception

Hi All,

Regarding Swift, I have configure it on controller node and also use same host as Swift Proxy server.

I configured proxy, After configuration the proxy config file as per below RHEL document . When I tried to start the service proxy service , it service(openstack-swift-proxy) got failed. Please find advise me the below debug and conf details.

Except this proxy(openstack-swift-proxy) service other swift services are running fine. Please advise a solution to fix this issue.. Exception.

Document URL - https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/5/html/Installation_and_Configuration_Guide/sect-Configure_the_Object_Storage_Service.html#Configuring_the_Object_Storage_Service_Proxy_Service

@ control ~(keystone_admin)]#rpm -qa | grep swift
openstack-swift-plugin-swift3-1.7-3.el7ost.noarch
openstack-swift-object-1.13.1-3.el7ost.noarch
openstack-swift-1.13.1-3.el7ost.noarch
openstack-swift-proxy-1.13.1-3.el7ost.noarch
openstack-swift-container-1.13.1-3.el7ost.noarch
openstack-swift-account-1.13.1-3.el7ost.noarch

@ control ~(keystone_admin)]#grep ^[^#] /etc/swift/proxy-server.conf
[DEFAULT]
bind_port = 8080
workers = 8
user = swift
[pipeline:main]
pipeline = healthcheck cache authtoken keystone proxy-server
[app:proxy-server]
use = egg:swift#proxy
allow_account_management = true
account_autocreate = true
[filter:cache]
use = egg:swift#memcache
memcache_servers = 127.0.0.1:11211
[filter:catch_errors]
use = egg:swift#catch_errors
[filter:healthcheck]
use = egg:swift#healthcheck
[filter:keystone]
use = egg:swift#keystoneauth
operator_roles = admin, SwiftOperator
is_admin = true
cache = swift.cache
[filter:authtoken]
paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory
admin_tenant_name = %SERVICE_TENANT_NAME%
admin_user = swift
admin_password = swift
auth_host = 192.168.2.51
auth_port = 35357
auth_protocol = http
signing_dir = /tmp/keystone-signing-swift
auth_tenant_name = services


@ control ~(keystone_admin)]#systemctl status openstack-swift-proxy
openstack-swift-proxy.service - OpenStack Object Storage (swift) - Proxy Server
   Loaded: loaded (/usr/lib/systemd/system/openstack-swift-proxy.service; disabled)
   Active: failed (Result: exit-code) since Mon 2014-12-15 17:54:02 IST; 526ms ago
  Process: 4605 ExecStart=/usr/bin/swift-proxy-server /etc/swift/proxy-server.conf (code=exited, status=1/FAILURE)
Main PID: 4605 (code=exited, status=1/FAILURE)

Dec 15 17:54:02 control.labs.com swift-proxy-server[4605]: [root@control ~]# swift-init all start
Starting container-updater...(/etc/swift/container-server.conf)
Starting account-auditor...(/etc/swift/account-server.conf)
Starting object-replicator...(/etc/swift/object-server.conf)
Starting proxy-server...(/etc/swift/proxy-server.conf)
Starting container-replicator...(/etc/swift/container-server.conf)
Starting object-auditor...(/etc/swift/object-server.conf)
Starting object-expirer...(/etc/swift/object-expirer.conf)
Starting container-auditor...(/etc/swift/container-server.conf)
Starting container-server...(/etc/swift/container-server.conf)
Starting account-server...(/etc/swift/account-server.conf)
Starting account-reaper...(/etc/swift/account-server.conf)
Starting container-sync...(/etc/swift/container-server.conf)
Starting account-replicator...(/etc/swift/account-server.conf)
Starting object-updater...(/etc/swift/object-server.conf)
Starting object-server...(/etc/swift/object-server.conf)
Traceback (most recent call last):
  File "/usr/bin/swift-object-replicator", line 31, in <module>
    run_daemon(ObjectReplicator, conf_file, **options)
  File "/usr/lib/python2.7/site-packages/swift/common/daemon.py", line 110, in run_daemon
    klass(conf).run(once=once, **kwargs)
  File "/usr/lib/python2.7/site-packages/swift/obj/replicator.py", line 68, in __init__
    self.object_ring = Ring(self.swift_dir, ring_name='object')
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 149, in __init__
    self._reload(force=True)
Dec 15 17:54:02 control.labs.com swift-proxy-server[4605]:  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 154, in _reload
Dec 15 17:54:02 control.labs.com swift-proxy-server[4605]:  ring_data = RingData.load(self.serialized_path)
Dec 15 17:54:02 control.labs.com swift-proxy-server[4605]:  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 64, in load
Dec 15 17:54:02 control.labs.com swift-proxy-server[4605]:  gz_file = GzipFile(filename, 'rb')
Dec 15 17:54:02 control.labs.com swift-proxy-server[4605]:  File "/usr/lib64/python2.7/gzip.py", line 94, in __init__
Dec 15 17:54:02 control.labs.com swift-proxy-server[4605]:  fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
Dec 15 17:54:02 control.labs.com swift-proxy-server[4605]: IOError: [Errno 2] No such file or directory: '/etc/swift/object.ring.gz'
Dec 15 17:54:02 control.labs.com systemd[1]: openstack-swift-proxy.service: main process exited, code=exited, status=1/FAILURE
Dec 15 17:54:02 control.labs.com systemd[1]: Unit openstack-swift-proxy.service entered failed state.

warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
Traceback (most recent call last):
  File "/usr/bin/swift-proxy-server", line 23, in <module>
    sys.exit(run_wsgi(conf_file, 'proxy-server', default_port=8080, **options))
  File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 389, in run_wsgi
    loadapp(conf_path, global_conf=global_conf)
  File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 319, in loadapp
    app = ctx.app_context.create()
  File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
    return self.object_type.invoke(self)
  File "/usr/lib/python2.7/site-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/site-packages/paste/deploy/util.py", line 56, in fix_call
    val = callable(*args, **kw)
  File "/usr/lib/python2.7/site-packages/swift/proxy/server.py", line 552, in app_factory
    app = Application(conf)
  File "/usr/lib/python2.7/site-packages/swift/proxy/server.py", line 100, in __init__
    self.object_ring = object_ring or Ring(swift_dir, ring_name='object')
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 149, in __init__
    self._reload(force=True)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 154, in _reload
    ring_data = RingData.load(self.serialized_path)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 64, in load
    gz_file = GzipFile(filename, 'rb')
  File "/usr/lib64/python2.7/gzip.py", line 94, in __init__
    fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: '/etc/swift/object.ring.gz'

Traceback (most recent call last):
  File "/usr/bin/swift-container-replicator", line 23, in <module>
    run_daemon(ContainerReplicator, conf_file, **options)
  File "/usr/lib/python2.7/site-packages/swift/common/daemon.py", line 110, in run_daemon
    klass(conf).run(once=once, **kwargs)
  File "/usr/lib/python2.7/site-packages/swift/common/db_replicator.py", line 158, in __init__
    self.ring = ring.Ring(swift_dir, ring_name=self.server_type)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 149, in __init__
    self._reload(force=True)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 154, in _reload
    ring_data = RingData.load(self.serialized_path)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 64, in load
    gz_file = GzipFile(filename, 'rb')
  File "/usr/lib64/python2.7/gzip.py", line 94, in __init__
    fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: '/etc/swift/container.ring.gz'

Traceback (most recent call last):
  File "/usr/bin/swift-object-expirer", line 33, in <module>
    run_daemon(ObjectExpirer, conf_file, **options)
  File "/usr/lib/python2.7/site-packages/swift/common/daemon.py", line 110, in run_daemon
    klass(conf).run(once=once, **kwargs)
  File "/usr/lib/python2.7/site-packages/swift/obj/expirer.py", line 52, in __init__
    request_tries)
  File "/usr/lib/python2.7/site-packages/swift/common/internal_client.py", line 140, in __init__
    allow_modify_pipeline=allow_modify_pipeline)
  File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 319, in loadapp
    app = ctx.app_context.create()
  File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
    return self.object_type.invoke(self)
  File "/usr/lib/python2.7/site-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/site-packages/paste/deploy/util.py", line 56, in fix_call
    val = callable(*args, **kw)
  File "/usr/lib/python2.7/site-packages/swift/proxy/server.py", line 552, in app_factory
    app = Application(conf)
  File "/usr/lib/python2.7/site-packages/swift/proxy/server.py", line 100, in __init__
    self.object_ring = object_ring or Ring(swift_dir, ring_name='object')
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 149, in __init__
    self._reload(force=True)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 154, in _reload
    ring_data = RingData.load(self.serialized_path)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 64, in load
    gz_file = GzipFile(filename, 'rb')
  File "/usr/lib64/python2.7/gzip.py", line 94, in __init__
    fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: '/etc/swift/object.ring.gz'

Traceback (most recent call last):
  File "/usr/bin/swift-container-server", line 24, in <module>
    'container-server', default_port=6001, **options))
  File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 381, in run_wsgi
    sock = get_socket(conf, default_port=kwargs.get('default_port', 8080))
  File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 173, in get_socket
    bind_addr[0], bind_addr[1], bind_timeout))
Exception: Could not bind to 192.168.2.51:6001 after trying for 30 seconds

Traceback (most recent call last):
  File "/usr/bin/swift-account-server", line 24, in <module>
    'account-server', default_port=6002, **options))
  File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 381, in run_wsgi
    sock = get_socket(conf, default_port=kwargs.get('default_port', 8080))
  File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 173, in get_socket
    bind_addr[0], bind_addr[1], bind_timeout))
Exception: Could not bind to 192.168.2.51:6002 after trying for 30 seconds

Traceback (most recent call last):
  File "/usr/bin/swift-container-sync", line 23, in <module>
    run_daemon(ContainerSync, conf_file, **options)
  File "/usr/lib/python2.7/site-packages/swift/common/daemon.py", line 110, in run_daemon
    klass(conf).run(once=once, **kwargs)
  File "/usr/lib/python2.7/site-packages/swift/container/sync.py", line 155, in __init__
    ring_name='container')
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 149, in __init__
    self._reload(force=True)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 154, in _reload
    ring_data = RingData.load(self.serialized_path)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 64, in load
    gz_file = GzipFile(filename, 'rb')
  File "/usr/lib64/python2.7/gzip.py", line 94, in __init__
    fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: '/etc/swift/container.ring.gz'

Traceback (most recent call last):
  File "/usr/bin/swift-account-replicator", line 23, in <module>
    run_daemon(AccountReplicator, conf_file, **options)
  File "/usr/lib/python2.7/site-packages/swift/common/daemon.py", line 110, in run_daemon
    klass(conf).run(once=once, **kwargs)
  File "/usr/lib/python2.7/site-packages/swift/common/db_replicator.py", line 158, in __init__
    self.ring = ring.Ring(swift_dir, ring_name=self.server_type)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 149, in __init__
    self._reload(force=True)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 154, in _reload
    ring_data = RingData.load(self.serialized_path)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 64, in load
    gz_file = GzipFile(filename, 'rb')
  File "/usr/lib64/python2.7/gzip.py", line 94, in __init__
    fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: '/etc/swift/account.ring.gz'

Traceback (most recent call last):
  File "/usr/bin/swift-object-server", line 27, in <module>
    **options))
  File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 381, in run_wsgi
    sock = get_socket(conf, default_port=kwargs.get('default_port', 8080))
  File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 173, in get_socket
    bind_addr[0], bind_addr[1], bind_timeout))
Exception: Could not bind to 192.168.2.51:6000 after trying for 30 seconds

Advance Thanks, Pradipta

Please Help me on Swift-Proxy ExceptionException: No such file or directory: '/etc/swift/object.ring.gz'

Hi All,

Regarding Swift proxy, After configuration the proxy config the service proxy service(openstack-swift-proxy) got failed. Please advise me the below Exception.

Document URL - https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/5/html/Installation_and_Configuration_Guide/sect-Configure_the_Object_Storage_Service.html#Configuring_the_Object_Storage_Service_Proxy_Service

[root@control ~]# swift-init all start
Starting container-updater...(/etc/swift/container-server.conf)
Starting account-auditor...(/etc/swift/account-server.conf)
Starting object-replicator...(/etc/swift/object-server.conf)
Starting proxy-server...(/etc/swift/proxy-server.conf)
Starting container-replicator...(/etc/swift/container-server.conf)
Starting object-auditor...(/etc/swift/object-server.conf)
Starting object-expirer...(/etc/swift/object-expirer.conf)
Starting container-auditor...(/etc/swift/container-server.conf)
Starting container-server...(/etc/swift/container-server.conf)
Starting account-server...(/etc/swift/account-server.conf)
Starting account-reaper...(/etc/swift/account-server.conf)
Starting container-sync...(/etc/swift/container-server.conf)
Starting account-replicator...(/etc/swift/account-server.conf)
Starting object-updater...(/etc/swift/object-server.conf)
Starting object-server...(/etc/swift/object-server.conf)
Traceback (most recent call last):
  File "/usr/bin/swift-object-replicator", line 31, in <module>
    run_daemon(ObjectReplicator, conf_file, **options)
  File "/usr/lib/python2.7/site-packages/swift/common/daemon.py", line 110, in run_daemon
    klass(conf).run(once=once, **kwargs)
  File "/usr/lib/python2.7/site-packages/swift/obj/replicator.py", line 68, in __init__
    self.object_ring = Ring(self.swift_dir, ring_name='object')
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 149, in __init__
    self._reload(force=True)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 154, in _reload
    ring_data = RingData.load(self.serialized_path)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 64, in load
    gz_file = GzipFile(filename, 'rb')
  File "/usr/lib64/python2.7/gzip.py", line 94, in __init__
    fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: '/etc/swift/object.ring.gz'

warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
Traceback (most recent call last):
  File "/usr/bin/swift-proxy-server", line 23, in <module>
    sys.exit(run_wsgi(conf_file, 'proxy-server', default_port=8080, **options))
  File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 389, in run_wsgi
    loadapp(conf_path, global_conf=global_conf)
  File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 319, in loadapp
    app = ctx.app_context.create()
  File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
    return self.object_type.invoke(self)
  File "/usr/lib/python2.7/site-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/site-packages/paste/deploy/util.py", line 56, in fix_call
    val = callable(*args, **kw)
  File "/usr/lib/python2.7/site-packages/swift/proxy/server.py", line 552, in app_factory
    app = Application(conf)
  File "/usr/lib/python2.7/site-packages/swift/proxy/server.py", line 100, in __init__
    self.object_ring = object_ring or Ring(swift_dir, ring_name='object')
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 149, in __init__
    self._reload(force=True)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 154, in _reload
    ring_data = RingData.load(self.serialized_path)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 64, in load
    gz_file = GzipFile(filename, 'rb')
  File "/usr/lib64/python2.7/gzip.py", line 94, in __init__
    fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: '/etc/swift/object.ring.gz'

Traceback (most recent call last):
  File "/usr/bin/swift-container-replicator", line 23, in <module>
    run_daemon(ContainerReplicator, conf_file, **options)
  File "/usr/lib/python2.7/site-packages/swift/common/daemon.py", line 110, in run_daemon
    klass(conf).run(once=once, **kwargs)
  File "/usr/lib/python2.7/site-packages/swift/common/db_replicator.py", line 158, in __init__
    self.ring = ring.Ring(swift_dir, ring_name=self.server_type)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 149, in __init__
    self._reload(force=True)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 154, in _reload
    ring_data = RingData.load(self.serialized_path)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 64, in load
    gz_file = GzipFile(filename, 'rb')
  File "/usr/lib64/python2.7/gzip.py", line 94, in __init__
    fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: '/etc/swift/container.ring.gz'

Traceback (most recent call last):
  File "/usr/bin/swift-object-expirer", line 33, in <module>
    run_daemon(ObjectExpirer, conf_file, **options)
  File "/usr/lib/python2.7/site-packages/swift/common/daemon.py", line 110, in run_daemon
    klass(conf).run(once=once, **kwargs)
  File "/usr/lib/python2.7/site-packages/swift/obj/expirer.py", line 52, in __init__
    request_tries)
  File "/usr/lib/python2.7/site-packages/swift/common/internal_client.py", line 140, in __init__
    allow_modify_pipeline=allow_modify_pipeline)
  File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 319, in loadapp
    app = ctx.app_context.create()
  File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
    return self.object_type.invoke(self)
  File "/usr/lib/python2.7/site-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/site-packages/paste/deploy/util.py", line 56, in fix_call
    val = callable(*args, **kw)
  File "/usr/lib/python2.7/site-packages/swift/proxy/server.py", line 552, in app_factory
    app = Application(conf)
  File "/usr/lib/python2.7/site-packages/swift/proxy/server.py", line 100, in __init__
    self.object_ring = object_ring or Ring(swift_dir, ring_name='object')
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 149, in __init__
    self._reload(force=True)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 154, in _reload
    ring_data = RingData.load(self.serialized_path)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 64, in load
    gz_file = GzipFile(filename, 'rb')
  File "/usr/lib64/python2.7/gzip.py", line 94, in __init__
    fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: '/etc/swift/object.ring.gz'

Traceback (most recent call last):
  File "/usr/bin/swift-container-server", line 24, in <module>
    'container-server', default_port=6001, **options))
  File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 381, in run_wsgi
    sock = get_socket(conf, default_port=kwargs.get('default_port', 8080))
  File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 173, in get_socket
    bind_addr[0], bind_addr[1], bind_timeout))
Exception: Could not bind to 192.168.2.51:6001 after trying for 30 seconds

Traceback (most recent call last):
  File "/usr/bin/swift-account-server", line 24, in <module>
    'account-server', default_port=6002, **options))
  File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 381, in run_wsgi
    sock = get_socket(conf, default_port=kwargs.get('default_port', 8080))
  File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 173, in get_socket
    bind_addr[0], bind_addr[1], bind_timeout))
Exception: Could not bind to 192.168.2.51:6002 after trying for 30 seconds

Traceback (most recent call last):
  File "/usr/bin/swift-container-sync", line 23, in <module>
    run_daemon(ContainerSync, conf_file, **options)
  File "/usr/lib/python2.7/site-packages/swift/common/daemon.py", line 110, in run_daemon
    klass(conf).run(once=once, **kwargs)
  File "/usr/lib/python2.7/site-packages/swift/container/sync.py", line 155, in __init__
    ring_name='container')
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 149, in __init__
    self._reload(force=True)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 154, in _reload
    ring_data = RingData.load(self.serialized_path)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 64, in load
    gz_file = GzipFile(filename, 'rb')
  File "/usr/lib64/python2.7/gzip.py", line 94, in __init__
    fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: '/etc/swift/container.ring.gz'

Traceback (most recent call last):
  File "/usr/bin/swift-account-replicator", line 23, in <module>
    run_daemon(AccountReplicator, conf_file, **options)
  File "/usr/lib/python2.7/site-packages/swift/common/daemon.py", line 110, in run_daemon
    klass(conf).run(once=once, **kwargs)
  File "/usr/lib/python2.7/site-packages/swift/common/db_replicator.py", line 158, in __init__
    self.ring = ring.Ring(swift_dir, ring_name=self.server_type)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 149, in __init__
    self._reload(force=True)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 154, in _reload
    ring_data = RingData.load(self.serialized_path)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 64, in load
    gz_file = GzipFile(filename, 'rb')
  File "/usr/lib64/python2.7/gzip.py", line 94, in __init__
    fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: '/etc/swift/account.ring.gz'

Traceback (most recent call last):
  File "/usr/bin/swift-object-server", line 27, in <module>
    **options))
  File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 381, in run_wsgi
    sock = get_socket(conf, default_port=kwargs.get('default_port', 8080))
  File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 173, in get_socket
    bind_addr[0], bind_addr[1], bind_timeout))
Exception: Could not bind to 192.168.2.51:6000 after trying for 30 seconds

Swift-Proxy Exception: No such file or directory: '/etc/swift/object.ring.gz'Object PUT failed -- Error on swift upload

Hi All,

Regarding Swift proxy, After configuration the proxy config the service proxy service(openstack-swift-proxy) got failed. Thank you for your advise. Now I am getting error while upload a file.. Please advise me the below Exception.suggest me.

Document URL - https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/5/html/Installation_and_Configuration_Guide/sect-Configure_the_Object_Storage_Service.html#Configuring_the_Object_Storage_Service_Proxy_Service

[root@control ~]# swift-init all start
Starting container-updater...(/etc/swift/container-server.conf)
Starting account-auditor...(/etc/swift/account-server.conf)
Starting object-replicator...(/etc/swift/object-server.conf)
Starting proxy-server...(/etc/swift/proxy-server.conf)
Starting container-replicator...(/etc/swift/container-server.conf)
Starting object-auditor...(/etc/swift/object-server.conf)
Starting object-expirer...(/etc/swift/object-expirer.conf)
Starting container-auditor...(/etc/swift/container-server.conf)
Starting container-server...(/etc/swift/container-server.conf)
Starting account-server...(/etc/swift/account-server.conf)
Starting account-reaper...(/etc/swift/account-server.conf)
Starting container-sync...(/etc/swift/container-server.conf)
Starting account-replicator...(/etc/swift/account-server.conf)
Starting object-updater...(/etc/swift/object-server.conf)
Starting object-server...(/etc/swift/object-server.conf)
Traceback (most recent call last):
[root@ control ~(keystone_admin)]#ll data1.file
-rw-r--r-- 1 root root 512 Dec 17 20:00 data1.file

[root@ control ~(keystone_admin)]#swift upload c1 data1.file
Object PUT failed: http://192.168.2.51:8080/v1/AUTH_9d70490f1dfe4b88bfab45f552a27e75/c1/data1.file 503 Service Unavailable   File "/usr/bin/swift-object-replicator", line 31, in <module>
    run_daemon(ObjectReplicator, conf_file, **options)
  File "/usr/lib/python2.7/site-packages/swift/common/daemon.py", line 110, in run_daemon
    klass(conf).run(once=once, **kwargs)
  File "/usr/lib/python2.7/site-packages/swift/obj/replicator.py", line 68, in __init__
    self.object_ring = Ring(self.swift_dir, ring_name='object')
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 149, in __init__
    self._reload(force=True)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 154, in _reload
    ring_data = RingData.load(self.serialized_path)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 64, in load
    gz_file = GzipFile(filename, 'rb')
  File "/usr/lib64/python2.7/gzip.py", line 94, in __init__
    fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: '/etc/swift/object.ring.gz'

warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
warning: Failed to read auxiliary vector, /proc not mounted?
Traceback (most recent call last):
  File "/usr/bin/swift-proxy-server", line 23, in <module>
    sys.exit(run_wsgi(conf_file, 'proxy-server', default_port=8080, **options))
  File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 389, in run_wsgi
    loadapp(conf_path, global_conf=global_conf)
  File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 319, in loadapp
    app = ctx.app_context.create()
  File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
    return self.object_type.invoke(self)
  File "/usr/lib/python2.7/site-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/site-packages/paste/deploy/util.py", line 56, in fix_call
    val = callable(*args, **kw)
  File "/usr/lib/python2.7/site-packages/swift/proxy/server.py", line 552, in app_factory
    app = Application(conf)
  File "/usr/lib/python2.7/site-packages/swift/proxy/server.py", line 100, in __init__
    self.object_ring = object_ring or Ring(swift_dir, ring_name='object')
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 149, in __init__
    self._reload(force=True)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 154, in _reload
    ring_data = RingData.load(self.serialized_path)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 64, in load
    gz_file = GzipFile(filename, 'rb')
  File "/usr/lib64/python2.7/gzip.py", line 94, in __init__
    fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: '/etc/swift/object.ring.gz'

Traceback (most recent call last):
  File "/usr/bin/swift-container-replicator", line 23, in <module>
    run_daemon(ContainerReplicator, conf_file, **options)
  File "/usr/lib/python2.7/site-packages/swift/common/daemon.py", line 110, in run_daemon
    klass(conf).run(once=once, **kwargs)
  File "/usr/lib/python2.7/site-packages/swift/common/db_replicator.py", line 158, in __init__
    self.ring = ring.Ring(swift_dir, ring_name=self.server_type)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 149, in __init__
    self._reload(force=True)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 154, in _reload
    ring_data = RingData.load(self.serialized_path)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 64, in load
    gz_file = GzipFile(filename, 'rb')
  File "/usr/lib64/python2.7/gzip.py", line 94, in __init__
    fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: '/etc/swift/container.ring.gz'

Traceback (most recent call last):
  File "/usr/bin/swift-object-expirer", line 33, in <module>
    run_daemon(ObjectExpirer, conf_file, **options)
  File "/usr/lib/python2.7/site-packages/swift/common/daemon.py", line 110, in run_daemon
    klass(conf).run(once=once, **kwargs)
  File "/usr/lib/python2.7/site-packages/swift/obj/expirer.py", line 52, in __init__
    request_tries)
  File "/usr/lib/python2.7/site-packages/swift/common/internal_client.py", line 140, in __init__
    allow_modify_pipeline=allow_modify_pipeline)
  File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 319, in loadapp
    app = ctx.app_context.create()
  File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
    return self.object_type.invoke(self)
  File "/usr/lib/python2.7/site-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/site-packages/paste/deploy/util.py", line 56, in fix_call
    val = callable(*args, **kw)
  File "/usr/lib/python2.7/site-packages/swift/proxy/server.py", line 552, in app_factory
    app = Application(conf)
  File "/usr/lib/python2.7/site-packages/swift/proxy/server.py", line 100, in __init__
    self.object_ring = object_ring or Ring(swift_dir, ring_name='object')
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 149, in __init__
    self._reload(force=True)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 154, in _reload
    ring_data = RingData.load(self.serialized_path)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 64, in load
    gz_file = GzipFile(filename, 'rb')
  File "/usr/lib64/python2.7/gzip.py", line 94, in __init__
    fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: '/etc/swift/object.ring.gz'

Traceback (most recent call last):
  File "/usr/bin/swift-container-server", line 24, in <module>
    'container-server', default_port=6001, **options))
  File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 381, in run_wsgi
    sock = get_socket(conf, default_port=kwargs.get('default_port', 8080))
  File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 173, in get_socket
    bind_addr[0], bind_addr[1], bind_timeout))
Exception: Could not bind to 192.168.2.51:6001 after trying for 30 seconds

Traceback (most recent call last):
  File "/usr/bin/swift-account-server", line 24, in <module>
    'account-server', default_port=6002, **options))
  File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 381, in run_wsgi
    sock = get_socket(conf, default_port=kwargs.get('default_port', 8080))
  File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 173, in get_socket
    bind_addr[0], bind_addr[1], bind_timeout))
Exception: Could not bind to 192.168.2.51:6002 after trying for 30 seconds

Traceback (most recent call last):
  File "/usr/bin/swift-container-sync", line 23, in <module>
    run_daemon(ContainerSync, conf_file, **options)
  File "/usr/lib/python2.7/site-packages/swift/common/daemon.py", line 110, in run_daemon
    klass(conf).run(once=once, **kwargs)
  File "/usr/lib/python2.7/site-packages/swift/container/sync.py", line 155, in __init__
    ring_name='container')
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 149, in __init__
    self._reload(force=True)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 154, in _reload
    ring_data = RingData.load(self.serialized_path)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 64, in load
    gz_file = GzipFile(filename, 'rb')
  File "/usr/lib64/python2.7/gzip.py", line 94, in __init__
    fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: '/etc/swift/container.ring.gz'

Traceback (most recent call last):
  File "/usr/bin/swift-account-replicator", line 23, in <module>
    run_daemon(AccountReplicator, conf_file, **options)
  File "/usr/lib/python2.7/site-packages/swift/common/daemon.py", line 110, in run_daemon
    klass(conf).run(once=once, **kwargs)
  File "/usr/lib/python2.7/site-packages/swift/common/db_replicator.py", line 158, in __init__
    self.ring = ring.Ring(swift_dir, ring_name=self.server_type)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 149, in __init__
    self._reload(force=True)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 154, in _reload
    ring_data = RingData.load(self.serialized_path)
  File "/usr/lib/python2.7/site-packages/swift/common/ring/ring.py", line 64, in load
    gz_file = GzipFile(filename, 'rb')
  File "/usr/lib64/python2.7/gzip.py", line 94, in __init__
    fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: '/etc/swift/account.ring.gz'

Traceback (most recent call last):
  File "/usr/bin/swift-object-server", line 27, in <module>
    **options))
  File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 381, in run_wsgi
    sock = get_socket(conf, default_port=kwargs.get('default_port', 8080))
  File "/usr/lib/python2.7/site-packages/swift/common/wsgi.py", line 173, in get_socket
    bind_addr[0], bind_addr[1], bind_timeout))
Exception: Could not bind to 192.168.2.51:6000 after trying for 30 seconds
[first 60 chars of response] <html><h1>Service Unavailable</h1><p>The server is currently

Object PUT failed -- Error on swift upload

Hi All,

Thank you for your advise. Now I am getting error while upload a file.. Please suggest me.

Document URL - https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/5/html/Installation_and_Configuration_Guide/sect-Configure_the_Object_Storage_Service.html#Configuring_the_Object_Storage_Service_Proxy_Service

[root@ control ~(keystone_admin)]#ll data1.file
-rw-r--r-- 1 root root 512 Dec 17 20:00 data1.file

[root@ control ~(keystone_admin)]#swift upload c1 data1.file
Object PUT failed: http://192.168.2.51:8080/v1/AUTH_9d70490f1dfe4b88bfab45f552a27e75/c1/data1.file 503 Service Unavailable  [first 60 chars of response] <html><h1>Service Unavailable</h1><p>The server is currently

[root@ control ~(keystone_admin)]#swift stat
       Account: AUTH_9d70490f1dfe4b88bfab45f552a27e75
    Containers: 1
       Objects: 0
         Bytes: 0
 Accept-Ranges: bytes
   X-Timestamp: 1418826500.08059
    X-Trans-Id: tx239ac2ac237f46d8b535d-005491a0fa
  Content-Type: text/plain; charset=utf-8

Object PUT failed -- Error on swift upload

Hi All,

Thank you for your advise. Now I am getting error while upload a file.. Please suggest me.me.

Here I did 1 wrong entry with port number for object.builder.. Please let me know is this the issue, If it is please advise me how could I delete the entry for object.builder..

Document URL - https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux_OpenStack_Platform/5/html/Installation_and_Configuration_Guide/sect-Configure_the_Object_Storage_Service.html#Configuring_the_Object_Storage_Service_Proxy_Service

[root@ control ~(keystone_admin)]#ll data1.file
-rw-r--r-- 1 root root 512 Dec 17 20:00 data1.file

[root@ control ~(keystone_admin)]#swift upload c1 data1.file
Object PUT failed: http://192.168.2.51:8080/v1/AUTH_9d70490f1dfe4b88bfab45f552a27e75/c1/data1.file 503 Service Unavailable  [first 60 chars of response] <html><h1>Service Unavailable</h1><p>The server is currently

[root@ control ~(keystone_admin)]#swift stat
       Account: AUTH_9d70490f1dfe4b88bfab45f552a27e75
    Containers: 1
       Objects: 0
         Bytes: 0
 Accept-Ranges: bytes
   X-Timestamp: 1418826500.08059
    X-Trans-Id: tx239ac2ac237f46d8b535d-005491a0fa
  Content-Type: text/plain; charset=utf-8


[root@ control ~(keystone_admin)]#swift-ring-builder /etc/swift/object.builder
/etc/swift/object.builder, build version 4
262144 partitions, 3.000000 replicas, 1 regions, 1 zones, 2 devices, 0.00 balance
The minimum number of hours before a partition can be reassigned is 1
Devices:    id  region  zone      ip address  port  replication ip  replication port      name weight partitions balance meta
             0       1     1    192.168.2.51  6001    192.168.2.51              6001      lun1 100.00     393216    0.00
             1       1     1    192.168.2.51  6000    192.168.2.51              6000      lun1 100.00     393216    0.00


[root@ control ~(keystone_admin)]#swift-ring-builder /etc/swift/container.builder
/etc/swift/container.builder, build version 1
262144 partitions, 3.000000 replicas, 1 regions, 1 zones, 1 devices, 0.00 balance
The minimum number of hours before a partition can be reassigned is 1
Devices:    id  region  zone      ip address  port  replication ip  replication port      name weight partitions balance meta
             0       1     1    192.168.2.51  6001    192.168.2.51              6001      lun1 100.00     786432    0.00


[root@ control ~(keystone_admin)]#swift-ring-builder /etc/swift/account.builder
/etc/swift/account.builder, build version 1
262144 partitions, 3.000000 replicas, 1 regions, 1 zones, 1 devices, 0.00 balance
The minimum number of hours before a partition can be reassigned is 1
Devices:    id  region  zone      ip address  port  replication ip  replication port      name weight partitions balance meta
             0       1     1    192.168.2.51  6002    192.168.2.51              6002      lun1 100.00     786432    0.00