swift proxy start ValueError: invalid literal for int() with base 10: 'true'

Bug #995222 reported by shashi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Medium
Chmouel Boudjnah

Bug Description

Ubuntu 12.04 LTS with Essex release (built-in packages, manual install)

I am not able to start swift proxy server.

# 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'

The proxy-server.conf file is

---------------------------------------------------------------------------------------------------------------------------------------
# cat /etc/swift/proxy-server.conf
[DEFAULT]
bind_port = 8080
user = swift
cert_file = /etc/swift/cert.crt
key_file = /etc/swift/cert.key
bind_ip = OpenStack
log_facility = LOG_LOCAL1
log_name = swift
log_level = DEBUG

[pipeline:main]
pipeline = catch_errors healthcheck cache authtoken keystone proxy-server

[app:proxy-server]
use = egg:swift#proxy
allow_account_management = true
account_autocreate = true

[filter:keystone]
paste.filter_factory = keystone.middleware.swift_auth:filter_factory
operator_roles = admin, swiftoperator

[filter:authtoken]
paste.filter_factory = keystone.middleware.auth_token:filter_factory
# Delaying the auth decision is required to support token-less
# usage for anonymous referrers ('.r:*').
delay_auth_decision = true
service_port = 5000
service_host = 127.0.0.1
auth_port = 35357
auth_host = 127.0.0.1
auth_token = 012345SECRET99TOKEN012345
admin_token = 012345SECRET99TOKEN012345

[filter:cache]
use = egg:swift#memcache
set log_name = cache
memcache_servers = OpenStack:11211

[filter:catch_errors]
use = egg:swift#catch_errors

[filter:healthcheck]
use = egg:swift#healthcheck

[app:auth-server]
use = egg:swift#auth
default_cluster_url = https://OpenStack:8080/v1
super_admin_key = devauth

--------------------------------------------------------------------------------------------------------------------------------

keystone, memcached, nova, glance, swift account/container/object... all are running, but i am not able bring up swift proxy.

Revision history for this message
Chmouel Boudjnah (chmouel) wrote : Re: [Bug 995222] [NEW] swift proxy start ValueError: invalid literal for int() with base 10: 'true'

>    self.delay_auth_decision = int(conf.get('delay_auth_decision', 0))
> ValueError: invalid literal for int() with base 10: 'true'
[....]
> delay_auth_decision = true

This value need to be an integer (number) set this to 1 and this
should get you going.

Probably need to be address in keystone's auth_token to accept a
true/false values and/or fix the documentation.

Chmouel.

affects: swift → keystone
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

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

Changed in keystone:
assignee: nobody → Chmouel Boudjnah (chmouel)
status: New → In Progress
Devin Carlen (devcamcar)
Changed in keystone:
milestone: none → folsom-1
Thierry Carrez (ttx)
Changed in keystone:
milestone: folsom-1 → folsom-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/7379
Committed: http://github.com/openstack/keystone/commit/bc803a4cede7ed2f39f4dc5c74977eedf46eb205
Submitter: Jenkins
Branch: master

commit bc803a4cede7ed2f39f4dc5c74977eedf46eb205
Author: Chmouel Boudjnah <email address hidden>
Date: Mon May 14 11:33:54 2012 +0000

    Make sure we parse delay_auth_decision as boolean.

    - Fixes bug 995222.
    - Documentation had already a false which is correct, updating the bug.

    Change-Id: I08625d8fa07c05b25c851c1df327cbdf660bd614

Changed in keystone:
status: In Progress → Fix Committed
Joseph Heck (heckj)
Changed in keystone:
importance: Undecided → Medium
Thierry Carrez (ttx)
Changed in keystone:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: folsom-2 → 2012.2
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.