← Back to team overview

openstack-poc team mailing list archive

[Bug 930270] Re: flagfile interpolation breaks instance_name_template

 

** Summary changed:

- flagfile interpolation breaks instance_name_tempalte
+ flagfile interpolation breaks instance_name_template

-- 
You received this bug notification because you are a member of OpenStack
Common Drivers, which is the registrant for openstack-common.
https://bugs.launchpad.net/bugs/930270

Title:
  flagfile interpolation breaks instance_name_template

Status in OpenStack Compute (Nova):
  Fix Committed
Status in openstack-common:
  Fix Committed

Bug description:
  When --volume_name_template=volume-%08x and
  --instance_name_template=instance-%08x are present in nova.conf,
  ConfigParser attempts to interpolate the '%' strings.  There are meant
  for nova to interpolate.

  2012-02-10 10:54:49,089 DEBUG nova.service [-] osapi_compute_link_prefix : None from (pid=22867) wait /opt/stack/nova/nova/service.py:409
  2012-02-10 10:54:49,089 CRITICAL nova [-] '%' must be followed by '%' or '(', found: '%08x'
  (nova): TRACE: Traceback (most recent call last):
  (nova): TRACE:   File "/opt/stack/nova/bin/nova-api", line 53, in <module>
  (nova): TRACE:     service.wait()
  (nova): TRACE:   File "/opt/stack/nova/nova/service.py", line 402, in wait
  (nova): TRACE:     flag_get = FLAGS.get(flag, None)
  (nova): TRACE:   File "/opt/stack/nova/nova/flags.py", line 73, in get
  (nova): TRACE:     value = getattr(self, name)
  (nova): TRACE:   File "/opt/stack/nova/nova/flags.py", line 70, in __getattr__
  (nova): TRACE:     return getattr(self._conf, name)
  (nova): TRACE:   File "/opt/stack/nova/nova/openstack/common/cfg.py", line 784, in __getattr__
  (nova): TRACE:     return self._substitute(self._get(name))
  (nova): TRACE:   File "/opt/stack/nova/nova/openstack/common/cfg.py", line 985, in _get
  (nova): TRACE:     return opt._get_from_config_parser(self._cparser, section)
  (nova): TRACE:   File "/opt/stack/nova/nova/openstack/common/cfg.py", line 433, in _get_from_config_parser
  (nova): TRACE:     return cparser.get(section, self.dest)
  (nova): TRACE:   File "/usr/lib/python2.7/ConfigParser.py", line 615, in get
  (nova): TRACE:     return self._interpolate(section, option, value, d)
  (nova): TRACE:   File "/usr/lib/python2.7/ConfigParser.py", line 683, in _interpolate
  (nova): TRACE:     self._interpolate_some(option, L, rawval, section, vars, 1)
  (nova): TRACE:   File "/usr/lib/python2.7/ConfigParser.py", line 724, in _interpolate_some
  (nova): TRACE:     "'%%' must be followed by '%%' or '(', found: %r" % (rest,))
  (nova): TRACE: InterpolationSyntaxError: '%' must be followed by '%' or '(', found: '%08x'
  (nova): TRACE:
  stack@356591-essex-k1:/opt/stack/nova$

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