Endpoint default config values fail to load with TypeError

Bug #1137696 reported by Ionuț Arțăriși
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Medium
Dolph Mathews

Bug Description

The API gives the following error:

{"error": {"message": "%d format: a number is required, not str", "code": 400, "title": "Bad Request"}}

It's a TypeError from controllers.py which loads the default config.py format string 'http://localhost:%(public_port)d/' and then tries to do string substitution on that with values from the config file (which are always strings, not numbers).

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/23269

Changed in keystone:
assignee: nobody → Ionuț Arțăriși (mapleoin)
status: New → In Progress
Changed in keystone:
assignee: Ionuț Arțăriși (mapleoin) → Dolph Mathews (dolph)
Revision history for this message
Dolph Mathews (dolph) wrote :

Proposed an alternate patch from my duplicate bug: https://review.openstack.org/#/c/23623/

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

Reviewed: https://review.openstack.org/23623
Committed: http://github.com/openstack/keystone/commit/7b2d5a4b0da623ba7cafe74add4610109771a92b
Submitter: Jenkins
Branch: master

commit 7b2d5a4b0da623ba7cafe74add4610109771a92b
Author: Dolph Mathews <email address hidden>
Date: Tue Mar 5 16:07:06 2013 -0600

    ports should be ints in config (bug 1137696)

    Change-Id: I26c0481f1f8987f310e3c3710be49d541418e3fd

Changed in keystone:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in keystone:
milestone: none → grizzly-rc1
status: Fix Committed → Fix Released
Dolph Mathews (dolph)
Changed in keystone:
importance: Undecided → Medium
Thierry Carrez (ttx)
Changed in keystone:
milestone: grizzly-rc1 → 2013.1
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.