← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1369390] [NEW] Fails to start a server providing the configuration file

 

Public bug reported:

Using "glance-control api start etc/glance-api.conf" or "glance-control
registry start etc/glance-registry.conf", it's resulting in the
following error:

Traceback (most recent call last):
  File "/home/vagrant/glance/.venv/bin/glance-control", line 10, in <module>
    sys.exit(main())
  File "/home/vagrant/glance/glance/cmd/control.py", line 354, in main
    pid = do_start('Start', *args)
  File "/home/vagrant/glance/glance/cmd/control.py", line 199, in do_start
    return launch(pid_file, conf_file, CONF.capture_output, CONF.await_child)
  File "/home/vagrant/glance/glance/cmd/control.py", line 163, in launch
    msg += 'with %s' % conf_file
  File "/home/vagrant/glance/.venv/local/lib/python2.7/site-packages/oslo/i18n/_message.py", line 154, in __add__
    raise TypeError(msg)
TypeError

This is because the variable "msg" is an instance of
"oslo.i18n._message.Message" which not support concatenation.


https://github.com/openstack/glance/blob/master/glance/cmd/control.py#L163
https://github.com/openstack/oslo.i18n/blob/master/oslo/i18n/_message.py#L151-154

** Affects: glance
     Importance: Undecided
         Status: New

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

Title:
  Fails to start a server providing the configuration file

Status in OpenStack Image Registry and Delivery Service (Glance):
  New

Bug description:
  Using "glance-control api start etc/glance-api.conf" or "glance-
  control registry start etc/glance-registry.conf", it's resulting in
  the following error:

  Traceback (most recent call last):
    File "/home/vagrant/glance/.venv/bin/glance-control", line 10, in <module>
      sys.exit(main())
    File "/home/vagrant/glance/glance/cmd/control.py", line 354, in main
      pid = do_start('Start', *args)
    File "/home/vagrant/glance/glance/cmd/control.py", line 199, in do_start
      return launch(pid_file, conf_file, CONF.capture_output, CONF.await_child)
    File "/home/vagrant/glance/glance/cmd/control.py", line 163, in launch
      msg += 'with %s' % conf_file
    File "/home/vagrant/glance/.venv/local/lib/python2.7/site-packages/oslo/i18n/_message.py", line 154, in __add__
      raise TypeError(msg)
  TypeError

  This is because the variable "msg" is an instance of
  "oslo.i18n._message.Message" which not support concatenation.

  
  https://github.com/openstack/glance/blob/master/glance/cmd/control.py#L163
  https://github.com/openstack/oslo.i18n/blob/master/oslo/i18n/_message.py#L151-154

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


Follow ups

References