Ask Your Question

Why do I get "NameError: name '_' is not defined" when I try to manually start nova-conductor in /usr/bin?

asked 2013-10-05 07:51:19 -0600

JD gravatar image

updated 2013-10-06 16:10:06 -0600

nerminamiller gravatar image

Nova-conductor, nova-cert and nova-consoleauth can't get started.

root@nimbo1:/# nova-manage service list
Binary           Host                                 Zone             Status     State Updated_At
nova-scheduler   nimbo1                               internal         enabled    :-)   2013-10-05 12:45:25
nova-conductor   nimbo1                               internal         enabled    XXX   2013-10-05 12:20:02
nova-cert        nimbo1                               internal         enabled    XXX   2013-10-05 03:49:14
nova-consoleauth nimbo1                               internal         enabled    XXX   2013-10-05 03:49:13

When I try to restart one of them, this happens,

root@nimbo1:/# service nova-conductor restart
stop: Unknown instance: 
nova-conductor start/running, process 8382


root@nimbo1:/# service nova-conductor status
nova-conductor stop/waiting

And this error appears when I try to start manually nova-conductor in /usr/bin

root@nimbo1:/usr/bin# ./nova-conductor 
Traceback (most recent call last):
  File "./nova-conductor", line 39, in <module>
    from nova import service
  File "/opt/stack/nova/nova/", line 34, in <module>
    from nova import conductor
  File "/opt/stack/nova/nova/conductor/", line 17, in <module>
    from nova.conductor import api as conductor_api
  File "/opt/stack/nova/nova/conductor/", line 19, in <module>
    from nova.conductor import manager
  File "/opt/stack/nova/nova/conductor/", line 17, in <module>
    from nova.api.ec2 import ec2utils
  File "/opt/stack/nova/nova/api/ec2/", line 31, in <module>
    from nova.api.ec2 import apirequest
  File "/opt/stack/nova/nova/api/ec2/", line 27, in <module>
    from nova.api.ec2 import ec2utils
  File "/opt/stack/nova/nova/api/ec2/", line 22, in <module>
    from nova import availability_zones
  File "/opt/stack/nova/nova/", line 20, in <module>
    from nova import db
  File "/opt/stack/nova/nova/db/", line 23, in <module>
    from nova.db.api import *
  File "/opt/stack/nova/nova/db/", line 48, in <module>
    from nova.cells import rpcapi as cells_rpcapi
  File "/opt/stack/nova/nova/cells/", line 27, in <module>
    from nova import exception
  File "/opt/stack/nova/nova/", line 123, in <module>
    class NovaException(Exception):
  File "/opt/stack/nova/nova/", line 131, in NovaException
    message = _("An unknown exception occurred.")
NameError: name '_' is not defined

Does anyone know how to fix it please?


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2018-08-05 05:31:25 -0600

Aref gravatar image

please paste nova.conf content somewhere and give us the link to check...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-10-05 07:51:19 -0600

Seen: 604 times

Last updated: Aug 05 '18