[juno] /sbin/start swift-proxy has failed

Bug #1365406 reported by Ivan Berezovskiy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Matthew Mosesohn

Bug Description

Fuel 6.0. HA mode.

(/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:

root@node-9:~# swift-proxy-server /etc/swift/proxy-server.conf
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 432, in run_wsgi
    loadapp(conf_path, global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 352, in loadapp
    ctx = loadcontext(loadwsgi.APP, conf_file, global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 336, in loadcontext
    global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext
    global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 320, in _loadconfig
    return loader.get_context(object_type, name, global_conf)
  File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 61, in get_context
    object_type, name=name, global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 450, in get_context
    global_additions=global_additions)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 562, in _pipeline_app_context
    for name in pipeline[:-1]]
  File "/usr/lib/python2.7/dist-packages/swift/common/wsgi.py", line 61, in get_context
    object_type, name=name, global_conf=global_conf)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 458, in get_context
    section)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 517, in _context_from_explicit
    value = import_string(found_expr)
  File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 22, in import_string
    return pkg_resources.EntryPoint.parse("x=" + s).load(False)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1989, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
ImportError: No module named s3_token

Open /etc/swift/proxy-server.conf:

[filter:s3token]
paste.filter_factory = keystone.middleware.s3_token:filter_factory

but it should be 'paste.filter_factory = keystoneclient.middleware.s3_token:filter_factory'

Change it to right value and start:

root@node-9:~/sbin/start swift-proxy
swift-proxy start/running

Also should be changed:

cd /etc/puppet/modules
grep -R keystone\\.middleware. .

./keystone/manifests/init.pp: 'filter:token_auth/paste.filter_factory': value =>"keystone.middleware:TokenAuthMiddleware.factory";

./keystone/manifests/init.pp: 'filter:admin_token_auth/paste.filter_factory': value =>"keystone.middleware:AdminTokenAuthMiddleware.factory";

./keystone/manifests/init.pp: 'filter:xml_body/paste.filter_factory': value =>"keystone.middleware:XmlBodyMiddleware.factory";

./keystone/manifests/init.pp: 'filter:json_body/paste.filter_factory': value =>"keystone.middleware:JsonBodyMiddleware.factory";

./keystone/manifests/init.pp: 'filter:url_normalize/paste.filter_factory': value =>"keystone.middleware:NormalizingFilter.factory";

./swift/spec/classes/swift_proxy_s3token_spec.rb: 'paste.filter_factory = keystone.middleware.s3_token:filter_factory',

./swift/spec/classes/swift_proxy_s3token_spec.rb: 'paste.filter_factory = keystone.middleware.s3_token:filter_factory',

./swift/spec/classes/swift_proxy_keystone_spec.rb: it { should contain_file(fragment_file).with_content(/paste.filter_factory = keystone.middleware.swift_auth:filter_factory/) }

./swift/templates/proxy/s3token.conf.erb:paste.filter_factory = keystone.middleware.s3_token:filter_factory

Tags: juno
Changed in fuel:
milestone: none → 6.0
tags: added: icehoust
tags: added: icehouse
removed: icehoust
description: updated
Changed in fuel:
assignee: nobody → Matthew Mosesohn (raytrac3r)
importance: Undecided → High
status: New → Confirmed
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

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

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
Matthew Mosesohn (raytrac3r) wrote :

The commit applied that fixed https://bugs.launchpad.net/fuel/+bug/1305822 was only a partial fix. My commit should cover the rest of the keystone filter issues.

tags: added: juno
removed: icehouse
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : 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

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Anastasia Palkina (apalkina) wrote :

Verified on custom ISO with Juno #20

"build_id": "2014-10-10_17-06-59", "ostf_sha": "7b2200ba90302d938841584c77ee86dd55814e6a", "build_number": "20", "auth_required": true, "api": "1.0", "nailgun_sha": "1386bdb46aaa989cf1d00e52a61d0a193acbeab9", "production": "docker", "fuelmain_sha": "6d2c7107353e17d50bd5e72846d986ab5b7c430e", "astute_sha": "65a5a0781d314bdcc090a61a599a8abf95989fc1", "feature_groups": ["mirantis"], "release": "6.0", "release_versions": {"2014.2-6.0": {"VERSION": {"build_id": "2014-10-10_17-06-59", "ostf_sha": "7b2200ba90302d938841584c77ee86dd55814e6a", "build_number": "20", "api": "1.0", "nailgun_sha": "1386bdb46aaa989cf1d00e52a61d0a193acbeab9", "production": "docker", "fuelmain_sha": "6d2c7107353e17d50bd5e72846d986ab5b7c430e", "astute_sha": "65a5a0781d314bdcc090a61a599a8abf95989fc1", "feature_groups": ["mirantis"], "release": "6.0", "fuellib_sha": "f282999b04f4ff42b8d9147c9a7ab9348da1b24b"}}}, "fuellib_sha": "f282999b04f4ff42b8d9147c9a7ab9348da1b24b"

Changed in fuel:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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