Fails to start a server providing the configuration file

Bug #1369390 reported by Victor Morales
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
High
Victor Morales

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

Changed in glance:
assignee: nobody → Victor Morales (electrocucaracha)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

Fix proposed to branch: master
Review: https://review.openstack.org/121442

Changed in glance:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/121442
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=21402a943a2f0199870f4f6d243c6c2f7bbab91b
Submitter: Jenkins
Branch: master

commit 21402a943a2f0199870f4f6d243c6c2f7bbab91b
Author: Victor Morales <email address hidden>
Date: Thu Oct 2 23:43:56 2014 -0500

    Start server message changed

    The way that the user message was generated when it's launched a
    server providing a configuration file was causing an error. This is
    because the Message class doesn't support concatenation.

    Change-Id: I05d475049f96057b06d3ae14ec33e0125b9c4dd5
    Closes-Bug: #1369390

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
milestone: none → kilo-1
status: Fix Committed → Fix Released
Changed in glance:
importance: Undecided → High
Thierry Carrez (ttx)
Changed in glance:
milestone: kilo-1 → 2015.1.0
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.