When running devstack stack.sh, nova-compute started at 2015-03-11 10:24:01.323, but ironic-api started at 2015-03-11 10:27:04.685. Nova-compute exited at 2015-03-11 10:26:00.083 with NovaException:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/eventlet/hubs/poll.py", line 115, in wait
listener.cb(fileno)
File "/usr/local/lib/python2.7/dist-packages/eventlet/greenthread.py", line 214, in main
result = function(*args, **kwargs)
File "/opt/stack/nova/nova/openstack/common/service.py", line 491, in run_service
service.start()
File "/opt/stack/nova/nova/service.py", line 164, in start
self.manager.init_host()
File "/opt/stack/nova/nova/compute/manager.py", line 1201, in init_host
self._destroy_evacuated_instances(context)
File "/opt/stack/nova/nova/compute/manager.py", line 737, in _destroy_evacuated_instances
local_instances = self._get_instances_on_driver(context, filters)
File "/opt/stack/nova/nova/compute/manager.py", line 700, in _get_instances_on_driver
driver_uuids = self.driver.list_instance_uuids()
File "/opt/stack/nova/nova/virt/ironic/driver.py", line 422, in list_instance_uuids
limit=0)
File "/opt/stack/nova/nova/virt/ironic/client_wrapper.py", line 142, in call
raise exception.NovaException(msg)
NovaException: Error contacting Ironic server for 'node.list'. Attempt 60 of 60
It doesn't make sense for a service.
I use Juno version, 2014.2. nova-compute. service nova-compute. service - OpenStack Nova Compute Server systemd/ system/ openstack- nova-compute. service; enabled) slice/openstack -nova-compute. service nova-compute
Check the status of nova-compute service after stop ironic-api service, and get it:
# systemctl status openstack-
openstack-
Loaded: loaded (/usr/lib/
Active: active (running) since Wed 2015-03-11 12:01:22 CST; 1h 41min ago
Main PID: 28778 (nova-compute)
CGroup: /system.
└─28778 /usr/bin/python /usr/bin/
Mar 11 12:01:22 controller systemd[1]: Started OpenStack Nova Compute Server.
But in the log file of nova-compute: common. periodic_ task NovaException: Error contacting Ironic server for 'node.list'. Attempt 60 of 60
2015-03-11 13:40:56.502 28778 TRACE nova.openstack.
Then start ironic-api service, and the exception was gone.
IMHO this flow does not process properly. When ironic-api service stopped, nova-compute service should be exited. But now it was running. End-user can launch one instance because 'nova-compute' service is up.