Object Storage Proxy fails to start

Bug #996988 reported by Marco CONSONNI
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-manuals
Fix Released
High
Tom Fifield

Bug Description

I'm trying Object Storage installation as reported here: http://docs.openstack.org/trunk/openstack-compute/install/content/ch_installing-openstack-object-storage.html.

When I try to start the proxy as reported here http://docs.openstack.org/trunk/openstack-compute/install/content/installing-and-configuring-the-proxy-node.html (bullet 12), I get the following traceback:

root@nova-controller:/etc/swift# swift-init proxy start
Starting proxy-server...(/etc/swift/proxy-server.conf)
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 207, in invoke
    app = filter(app)
  File "/usr/lib/python2.7/dist-packages/keystone/middleware/auth_token.py", line 524, in auth_filter
    return AuthProtocol(app, conf)
  File "/usr/lib/python2.7/dist-packages/keystone/middleware/auth_token.py", line 123, in __init__
    self.delay_auth_decision = int(conf.get('delay_auth_decision', 0))
ValueError: invalid literal for int() with base 10: 'true'

After some investigation, I found a related bug here https://bugs.launchpad.net/keystone/+bug/995219

As described in the bug report, I modified /etc/proxy-server.conf changing "delay_auth_decision = true" into "delay_auth_decision = 10".

I restarted the proxy, and it works.

I suggest modifying the document accordingly (both here http://docs.openstack.org/trunk/openstack-compute/install/content/installing-and-configuring-the-proxy-node.html and here http://docs.openstack.org/trunk/openstack-compute/install/content/swift-proxy-conf.html)

Revision history for this message
Marco CONSONNI (marco-consonni) wrote :
Revision history for this message
Anne Gentle (annegentle) wrote :

Ah ha, thanks for reporting with the fix too!

Changed in openstack-manuals:
status: New → Confirmed
importance: Undecided → High
Anne Gentle (annegentle)
Changed in openstack-manuals:
status: Confirmed → Triaged
assignee: nobody → Anne Gentle (annegentle)
Revision history for this message
Tom Fifield (fifieldt) wrote :
Revision history for this message
Marco CONSONNI (marco-consonni) wrote :

To me, the fix is fine.

Thanks.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-manuals (master)

Reviewed: https://review.openstack.org/7573
Committed: http://github.com/openstack/openstack-manuals/commit/d9ded8cb12c003982c86d2690125198319864a64
Submitter: Jenkins
Branch: master

commit d9ded8cb12c003982c86d2690125198319864a64
Author: Tom Fifield <email address hidden>
Date: Fri May 18 14:48:52 2012 +1000

    bug 996988 - fix delay_auth_decision in keystone.conf

    Fixes delay_auth_decision variable in keystone.conf
    examples in the manual.

    Change-Id: Ifc847478495a7b97e389d9e3fca33fdad23fc414

Changed in openstack-manuals:
status: Triaged → Fix Committed
Tom Fifield (fifieldt)
Changed in openstack-manuals:
assignee: Anne Gentle (annegentle) → Tom Fifield (fifieldt)
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.