swift proxy error

Bug #1305822 reported by Denis Egorenko
14
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Critical
Fuel Library (Deprecated)

Bug Description

{"build_id": "2014-04-07_15-04-24", "mirantis": "yes", "build_number": "261", "nailgun_sha": "5efa9d21162cd30394f2f608641c324a80ea43dd", "ostf_sha": "17f2fe6e56452f8e2f01a385be4c4b87bf3698a8", "fuelmain_sha": "0ed7471818bc50699d33e217c28114234c08c8ee", "astute_sha": "183fe05cd59a5ce6d154fa263a5a8bf5f27db0ec", "release": "5.0", "fuellib_sha": "4d942716e3cc8b40ad868d0c4836c6010fbdc42e"}

To reproduce:
1) Deploy HA;
2) Controller + Cinder LVM;
3) Ubuntu + Nova network;
4) Sahara, Ceilometer;

Swift proxy error during installation:

2014-04-10 12:05:18 ERR
 Could not start Service[swift-proxy]: Execution of '/sbin/start swift-proxy' returned 1:
2014-04-10 12:05:17 ERR
 (/Stage[main]/Swift::Proxy/Service[swift-proxy]/ensure) change from stopped to running failed: Could not start Service[swift-proxy]: Execution of '/sbin/start swift-proxy' returned 1:

When i try to execute this manually:

root@node-27:~# /sbin/start swift-proxy
start: Job failed to start

Tags: icehouse
tags: added: icehouse
description: updated
Changed in fuel:
assignee: nobody → Fuel Library Team (fuel-library)
milestone: none → 5.0
importance: Undecided → Critical
status: New → Confirmed
description: updated
description: updated
description: updated
Revision history for this message
Nastya Urlapova (aurlapova) wrote :
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/88344
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=0b60ef6d9ceb0c048c0a8e8575f9a4536d9ddaea
Submitter: Jenkins
Branch: master

commit 0b60ef6d9ceb0c048c0a8e8575f9a4536d9ddaea
Author: Vladimir Kuklin <email address hidden>
Date: Thu Apr 17 19:47:12 2014 +0400

    Fix keystone module name for auth_token

    Change-Id: I1c279e6d687a08c5500f599cdc6530f335ffceef
    Closes-Bug: #1305822

Changed in fuel:
status: Confirmed → Fix Committed
Revision history for this message
Artem Panchenko (apanchenko-8) wrote :

Hi,

the issue still exists, I got the provided error on the following environment:

build_id: 2014-04-22_01-00-26
build_number: '121'
fuellib_sha: 28d82c796081978ef937853dafbe489a251d8103
production: prod
release: '5.0'

Ubuntu HA, 3 Controllers + 1 Cinder LVM + 1 Compute.

On controllers puppet logs contain:

 (/Stage[main]/Swift::Proxy/Service[swift-proxy]/ensure) change from stopped to running failed: Could not start Service[swift-proxy]: Execution of '/sbin/start swift-proxy' returned 1

When trying to start swift-proxy manually it fails with "permissions denied" error:

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/dist-packages/swift/common/wsgi.py", line 389, in run_wsgi
    loadapp(conf_path, global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 319, in loadapp
    app = ctx.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 552, in app_factory
    app = Application(conf)
  File "/usr/lib/python2.7/dist-packages/swift/proxy/server.py", line 102, in __init__
    ring_name='container')
  File "/usr/lib/python2.7/dist-packages/swift/common/ring/ring.py", line 148, in __init__
    self._reload(force=True)
  File "/usr/lib/python2.7/dist-packages/swift/common/ring/ring.py", line 153, in _reload
    ring_data = RingData.load(self.serialized_path)
  File "/usr/lib/python2.7/dist-packages/swift/common/ring/ring.py", line 64, in load
    gz_file = GzipFile(filename, 'rb')
  File "/usr/lib/python2.7/gzip.py", line 89, in __init__
    fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 13] Permission denied: '/etc/swift/container.ring.gz'

Also, I was able to successfuly start swift-proxy after I change files permissions in the following way:

root@node-6:~# find /etc/swift/ -group swift -type f -perm 600 -exec chmod 640 {} \;

Changed in fuel:
status: Fix Committed → New
Revision history for this message
Tatyanka (tatyana-leontovich) wrote :

reproduced on 122

Changed in fuel:
status: New → Confirmed
Revision history for this message
Vladimir Kuklin (vkuklin) wrote :

permission error is fixed in this bug: https://bugs.launchpad.net/fuel/+bug/1311249

Changed in fuel:
status: Confirmed → Fix Committed
Revision history for this message
Andrey Sledzinskiy (asledzinskiy) wrote :

verified on {"build_id": "2014-04-25_01-00-26", "mirantis": "yes", "build_number": "139", "nailgun_sha": "6b156d7434d0a70efe288cd8064d0ca90fed0737", "production": "prod", "ostf_sha": "134765fcb5a07dce0cd1bb399b2290c988c3c63b", "fuelmain_sha": "9939570720729dce22e635b0b9c9465e9d80661f", "astute_sha": "6e8fa4cc12968d7b468fc590b2f06bb59bf74511", "release": "5.0", "fuellib_sha": "ebc4b365dd60811e918c280a79631369a7afb868"}

Changed in fuel:
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-library (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/119020

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/119020
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=11fa0545583b152f1cb448e813f549a3883773bb
Submitter: Jenkins
Branch: master

commit 11fa0545583b152f1cb448e813f549a3883773bb
Author: Matthew Mosesohn <email address hidden>
Date: Thu Sep 4 13:50:30 2014 +0400

    Fix keystone auth_token filter for swift

    Change-Id: I0f9fcc25324eae3605246c167cadc9a369ab2129
    Closes-Bug: #1365406
    Related-Bug: #1305822

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.