public_port and admin_port are strings

Bug #1147842 reported by Dolph Mathews
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
In Progress
Undecided
Dolph Mathews

Bug Description

Noticed on the mailing list: https://lists.launchpad.net/openstack/msg21580.html

public_port and admin_port are defined as strings in keystone.config, resulting in non-default settings failing when parsed for default public_endpoint and admin_endpoint values.

 TypeError: Error in file /etc/keystone/keystone.conf: %d format: a number is required, not str
 Traceback (most recent call last):
   File "/usr/bin/keystone-all", line 109, in <module>
     options = deploy.appconfig('config:%s' % paste_config)
   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 261, in appconfig
     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/paste/deploy/loadwsgi.py", line 413, in get_context
     defaults = self.parser.defaults()
   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 68, in defaults
     defaults[key] = self.get('DEFAULT', key) or val
   File "/usr/lib/python2.7/ConfigParser.py", line 623, in get
     return self._interpolate(section, option, value, d)
   File "/usr/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 75, in _interpolate
     self, section, option, rawval, vars)
   File "/usr/lib/python2.7/ConfigParser.py", line 666, in _interpolate
     value = value % vars
 TypeError: Error in file /etc/keystone/keystone.conf: %d format: a number is required, not str

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

Changed in keystone:
assignee: nobody → Dolph Mathews (dolph)
status: New → In Progress
Revision history for this message
Christopher Armstrong (radix) wrote :

There's already a bug and patch for this https://bugs.launchpad.net/keystone/+bug/1137696

But I think your patch is better.

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.