← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1160573] Re: keystone config file doesn't work if you specify admin_endpoint

 

** Changed in: keystone
       Status: Fix Committed => Fix Released

** Changed in: keystone
    Milestone: None => havana-1

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1160573

Title:
  keystone config file doesn't work if you specify admin_endpoint

Status in OpenStack Identity (Keystone):
  Fix Released

Bug description:
  If you uncomment the following 2 lines in /etc/keystone.conf:

  # The port number which the public admin listens on
  admin_port = 35357

  # The base endpoint URLs for keystone that are advertised to clients
  # (NOTE: this does NOT affect how keystone listens for connections)
  # public_endpoint = http://localhost:%(public_port)d/
  admin_endpoint = http://localhost:%(admin_port)d/

  
  Then try to start keystone you'll get: 

  (keystone-all): 2013-03-26 16:14:52,754 DEBUG cfg log_opt_values ********************************************************************************
  Traceback (most recent call last):
    File "/opt/stack/grizzly/keystone/bin/keystone-all", line 112, 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

  
  It appears that config parser doesn't actually support %d in interpolation

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1160573/+subscriptions