← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1201861] Re: admin_port not being properly transposed when launching keystone

 

[Expired for Keystone because there has been no activity for 60 days.]

** Changed in: keystone
       Status: Incomplete => Expired

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

Title:
  admin_port not being properly transposed when launching keystone

Status in OpenStack Identity (Keystone):
  Expired

Bug description:
  I noticed this issue while trying to launch devstack.  When I got to
  the point where keystone is supposed to start, it fails to start
  because of the following traceback:

  Traceback (most recent call last):
    File "/opt/stack/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 669, in _interpolate
      option, section, rawval, e.args[0])
  ConfigParser.InterpolationMissingOptionError: Error in file /etc/keystone/keystone.conf: Bad value substitution:
          section: [DEFAULT]
          option : admin_endpoint
          key    : admin_port
          rawval : http://192.168.0.100:%(admin_port)s/

  If you look at the full debug output, admin_port is clearly identified
  as 35357:

  (keystone-all): 2013-07-16 11:16:02,807 DEBUG cfg log_opt_values admin_endpoint                 = http://192.168.0.100:%(admin_port)s/
  (keystone-all): 2013-07-16 11:16:02,807 DEBUG cfg log_opt_values admin_port                     = 35357

  but the value of admin_port is not being resolved in the
  %(admin_port)s variable in the admin endpoint url.

  See the full debug output here:
  http://pastebin.ubuntu.com/5881166/

  Including the command line used to generate that output.

  The only way to work around this, I've found, is to enusre that
  instead of %(variable)s in the endpoint definition, the values are
  hard coded:

  admin_endpoint = http://192.168.0.100:35357/
  public_endpoint = http://192.168.0.100:5000/

  Doing this in keystone.conf, I am able to successfully start keystone.

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