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 -0500

JD gravatar image

updated 2013-10-06 16:10:06 -0500

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

but....

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/service.py", line 34, in <module>
    from nova import conductor
  File "/opt/stack/nova/nova/conductor/__init__.py", line 17, in <module>
    from nova.conductor import api as conductor_api
  File "/opt/stack/nova/nova/conductor/api.py", line 19, in <module>
    from nova.conductor import manager
  File "/opt/stack/nova/nova/conductor/manager.py", line 17, in <module>
    from nova.api.ec2 import ec2utils
  File "/opt/stack/nova/nova/api/ec2/__init__.py", line 31, in <module>
    from nova.api.ec2 import apirequest
  File "/opt/stack/nova/nova/api/ec2/apirequest.py", line 27, in <module>
    from nova.api.ec2 import ec2utils
  File "/opt/stack/nova/nova/api/ec2/ec2utils.py", line 22, in <module>
    from nova import availability_zones
  File "/opt/stack/nova/nova/availability_zones.py", line 20, in <module>
    from nova import db
  File "/opt/stack/nova/nova/db/__init__.py", line 23, in <module>
    from nova.db.api import *
  File "/opt/stack/nova/nova/db/api.py", line 48, in <module>
    from nova.cells import rpcapi as cells_rpcapi
  File "/opt/stack/nova/nova/cells/rpcapi.py", line 27, in <module>
    from nova import exception
  File "/opt/stack/nova/nova/exception.py", line 123, in <module>
    class NovaException(Exception):
  File "/opt/stack/nova/nova/exception.py", line 131, in NovaException
    message = _("An unknown exception occurred.")
NameError: name '_' is not defined

Does anyone know how to fix it please?

Thanks!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

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

Aref gravatar image

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

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 669 times

Last updated: Aug 05 '18