Errors associated with nova starting.
/var/log/syslog:
Apr 28 15:29:23 cc202 kernel: [107254.975874] init: nova-compute main process (27423) terminated with status 1
Apr 28 15:29:25 cc202 kernel: [107257.682464] init: nova-compute main process (27436) terminated with status 1
Apr 28 15:29:26 cc202 kernel: [107258.342480] init: nova-compute main process (27449) terminated with status 1
Apr 28 15:29:26 cc202 kernel: [107258.809095] init: nova-compute main process (27462) terminated with status 1
Apr 28 15:34:09 cc202 kernel: [107541.662575] init: keystone main process (5208) terminated with status 143
Apr 28 15:36:10 cc202 kernel: [107662.601144] init: keystone main process (27565) terminated with status 143
Apr 28 15:44:29 cc202 kernel: [108161.299635] init: nova-api main process (30123) terminated with status 1
Apr 28 15:44:30 cc202 kernel: [108162.401465] init: nova-api main process (30135) terminated with status 1
Apr 28 15:44:31 cc202 kernel: [108163.086635] init: nova-api main process (30147) terminated with status 1
Apr 28 15:44:31 cc202 kernel: [108163.577797] init: nova-api main process (30159) terminated with status 1
my nova.conf files as below:
[DEFAULT]
# LOGS/STATE
--verbose=True
# AUTHENTICATION
--auth_
# SCHEDULER
--compute_
# VOLUMES
--volume_
--volume_
--iscsi_
# DATABASE
--sql_connectio
# COMPUTE
--libvirt_type=qemu
--connection_
--instance_
--api_paste_
--allow_
# APIS
--osapi_
--ec2_dmz_
--s3_host=localhost
# RABBITMQ
--rabbit_
#--rabbit_
# GLANCE
--image_
--glance_
# NETWORK
--network_
--force_
--dhcpbridge_
--firewall_
--my_ip=localhost
--public_
--vlan_
--flat_
--flat_
--fixed_
--flat_
--public_
--flat_
--flat_
# NOVNC CONSOLE
--novncproxy_
--vncserver_
--vncserver_
so, what problem made it not work?
Thanks!
Question information
- Language:
- English Edit question
- Status:
- Expired
- Assignee:
- No assignee Edit question
- Last query:
- 2012-05-06
- Last reply:
- 2012-05-21
| yong sheng gong (gongysh) said : | #1 |
please add
log-dir=
debug=true
into nova.conf and see what's in the log files
and also enable the log for keystone.
Or we can start the nova binaries by console to see the output on console.
| koolhead17 (koolhead17) said : | #2 |
chown -R nova:nova /etc/nova
restart all services and it will work.
| Havent (guestly) said : | #3 |
to koolhead17: It still doesn't work.
to yong sheng gong: It doesn't print any log.
| Havent (guestly) said : | #4 |
I checked the /var/log/
2012-04-28 17:11:09 TRACE nova.manager Traceback (most recent call last):
2012-04-28 17:11:09 TRACE nova.manager File "/usr/lib/
2012-04-28 17:11:09 TRACE nova.manager task(self, context)
2012-04-28 17:11:09 TRACE nova.manager File "/usr/lib/
2012-04-28 17:11:09 TRACE nova.manager time)
2012-04-28 17:11:09 TRACE nova.manager File "/usr/lib/
2012-04-28 17:11:09 TRACE nova.manager return IMPL.fixed_
2012-04-28 17:11:09 TRACE nova.manager File "/usr/lib/
2012-04-28 17:11:09 TRACE nova.manager return f(*args, **kwargs)
2012-04-28 17:11:09 TRACE nova.manager File "/usr/lib/
2012-04-28 17:11:09 TRACE nova.manager filter(
2012-04-28 17:11:09 TRACE nova.manager File "/usr/lib/
2012-04-28 17:11:09 TRACE nova.manager return list(self)
2012-04-28 17:11:09 TRACE nova.manager File "/usr/lib/
2012-04-28 17:11:09 TRACE nova.manager return self._execute_
2012-04-28 17:11:09 TRACE nova.manager File "/usr/lib/
2012-04-28 17:11:09 TRACE nova.manager result = conn.execute(
2012-04-28 17:11:09 TRACE nova.manager File "/usr/lib/
2012-04-28 17:11:09 TRACE nova.manager params)
2012-04-28 17:11:09 TRACE nova.manager File "/usr/lib/
2012-04-28 17:11:09 TRACE nova.manager compiled_sql, distilled_params
2012-04-28 17:11:09 TRACE nova.manager File "/usr/lib/
2012-04-28 17:11:09 TRACE nova.manager context)
2012-04-28 17:11:09 TRACE nova.manager File "/usr/lib/
2012-04-28 17:11:09 TRACE nova.manager context)
2012-04-28 17:11:09 TRACE nova.manager File "/usr/lib/
2012-04-28 17:11:09 TRACE nova.manager cursor.
2012-04-28 17:11:09 TRACE nova.manager OperationalError: (OperationalError) no such table: fixed_ips u'SELECT fixed_ips.id AS fixed_ips_id \nFROM fixed_ips JOIN networks ON networks.id = fixed_ips.
2012-04-28 17:11:09 TRACE nova.manager
| Havent (guestly) said : | #5 |
I start:
nova-api
nova-compute
nova-network
nova-scheduler
nova-vncproxy
nova-volume
and copy the /var/log/upstart dir log as below:
nova-api:
2012-05-06 16:03:50 TRACE nova File "/usr/bin/
2012-05-06 16:03:50 TRACE nova servers.
2012-05-06 16:03:50 TRACE nova File "/usr/lib/
2012-05-06 16:03:50 TRACE nova self.app = self.loader.
2012-05-06 16:03:50 TRACE nova File "/usr/lib/
2012-05-06 16:03:50 TRACE nova return deploy.
2012-05-06 16:03:50 TRACE nova File "/usr/lib/
2012-05-06 16:03:50 TRACE nova return loadobj(APP, uri, name=name, **kw)
2012-05-06 16:03:50 TRACE nova File "/usr/lib/
2012-05-06 16:03:50 TRACE nova return context.create()
2012-05-06 16:03:50 TRACE nova File "/usr/lib/
2012-05-06 16:03:50 TRACE nova return self.object_
2012-05-06 16:03:50 TRACE nova File "/usr/lib/
2012-05-06 16:03:50 TRACE nova **context.
2012-05-06 16:03:50 TRACE nova File "/usr/lib/
2012-05-06 16:03:50 TRACE nova val = callable(*args, **kw)
2012-05-06 16:03:50 TRACE nova File "/usr/lib/
2012-05-06 16:03:50 TRACE nova app = loader.
2012-05-06 16:03:50 TRACE nova File "/usr/lib/
2012-05-06 16:03:50 TRACE nova name=name, global_
2012-05-06 16:03:50 TRACE nova File "/usr/lib/
2012-05-06 16:03:50 TRACE nova APP, name=name, global_
2012-05-06 16:03:50 TRACE nova File "/usr/lib/
2012-05-06 16:03:50 TRACE nova global_
2012-05-06 16:03:50 TRACE nova File "/usr/lib/
2012-05-06 16:03:50 TRACE nova APP, pipeline[-1], global_conf)
2012-05-06 16:03:50 TRACE nova File "/usr/lib/
2012-05-06 16:03:50 TRACE nova section)
2012-05-06 16:03:50 TRACE nova File "/usr/lib/
2012-05-06 16:03:50 TRACE nova value = import_
2012-05-06 16:03:50 TRACE nova File "/usr/lib/
2012-05-06 16:03:50 TRACE nova return pkg_resources.
2012-05-06 16:03:50 TRACE nova File "/usr/lib/
2012-05-06 16:03:50 TRACE nova entry = __import_
2012-05-06 16:03:50 TRACE nova ImportError: No module named metadatarequest
2012-05-06 16:03:50 TRACE nova
Exception KeyError: KeyError(
nova-compute:
2012-05-06 16:08:35 TRACE nova.rpc.common
2012-05-06 16:08:37 INFO nova.rpc.common [-] Reconnecting to AMQP server on localhost:5672
2012-05-06 16:08:40 ERROR nova.rpc.common [-] AMQP server on localhost:5672 is unreachable: Socket closed. Trying again in 3 seconds.
2012-05-06 16:08:40 TRACE nova.rpc.common Traceback (most recent call last):
2012-05-06 16:08:40 TRACE nova.rpc.common File "/usr/lib/
2012-05-06 16:08:40 TRACE nova.rpc.common self._connect()
2012-05-06 16:08:40 TRACE nova.rpc.common File "/usr/lib/
2012-05-06 16:08:40 TRACE nova.rpc.common self.connection
2012-05-06 16:08:40 TRACE nova.rpc.common File "/usr/lib/
2012-05-06 16:08:40 TRACE nova.rpc.common return self.connection
2012-05-06 16:08:40 TRACE nova.rpc.common File "/usr/lib/
2012-05-06 16:08:40 TRACE nova.rpc.common self._connection = self._establish
2012-05-06 16:08:40 TRACE nova.rpc.common File "/usr/lib/
2012-05-06 16:08:40 TRACE nova.rpc.common conn = self.transport.
2012-05-06 16:08:40 TRACE nova.rpc.common File "/usr/lib/
2012-05-06 16:08:40 TRACE nova.rpc.common connect_
2012-05-06 16:08:40 TRACE nova.rpc.common File "/usr/lib/
2012-05-06 16:08:40 TRACE nova.rpc.common super(Connection, self)._
2012-05-06 16:08:40 TRACE nova.rpc.common File "/usr/lib/
2012-05-06 16:08:40 TRACE nova.rpc.common (10, 30), # tune
2012-05-06 16:08:40 TRACE nova.rpc.common File "/usr/lib/
2012-05-06 16:08:40 TRACE nova.rpc.common self.channel_id, allowed_methods)
2012-05-06 16:08:40 TRACE nova.rpc.common File "/usr/lib/
2012-05-06 16:08:40 TRACE nova.rpc.common self.method_
2012-05-06 16:08:40 TRACE nova.rpc.common File "/usr/lib/
2012-05-06 16:08:40 TRACE nova.rpc.common raise m
2012-05-06 16:08:40 TRACE nova.rpc.common IOError: Socket closed
2012-05-06 16:08:40 TRACE nova.rpc.common
2012-05-06 16:08:43 INFO nova.rpc.common [-] Reconnecting to AMQP server on localhost:5672
nova-network:
2012-05-06 16:09:32 TRACE nova File "/usr/bin/
2012-05-06 16:09:32 TRACE nova service.wait()
2012-05-06 16:09:32 TRACE nova File "/usr/lib/
2012-05-06 16:09:32 TRACE nova _launcher.wait()
2012-05-06 16:09:32 TRACE nova File "/usr/lib/
2012-05-06 16:09:32 TRACE nova service.wait()
2012-05-06 16:09:32 TRACE nova File "/usr/lib/
2012-05-06 16:09:32 TRACE nova return self._exit_
2012-05-06 16:09:32 TRACE nova File "/usr/lib/
2012-05-06 16:09:32 TRACE nova return hubs.get_
2012-05-06 16:09:32 TRACE nova File "/usr/lib/
2012-05-06 16:09:32 TRACE nova return self.greenlet.
2012-05-06 16:09:32 TRACE nova File "/usr/lib/
2012-05-06 16:09:32 TRACE nova result = function(*args, **kwargs)
2012-05-06 16:09:32 TRACE nova File "/usr/lib/
2012-05-06 16:09:32 TRACE nova server.start()
2012-05-06 16:09:32 TRACE nova File "/usr/lib/
2012-05-06 16:09:32 TRACE nova self.manager.
2012-05-06 16:09:32 TRACE nova File "/usr/lib/
2012-05-06 16:09:32 TRACE nova self.l3driver.
2012-05-06 16:09:32 TRACE nova File "/usr/lib/
2012-05-06 16:09:32 TRACE nova linux_net.
2012-05-06 16:09:32 TRACE nova File "/usr/lib/
2012-05-06 16:09:32 TRACE nova add_snat_
2012-05-06 16:09:32 TRACE nova File "/usr/lib/
2012-05-06 16:09:32 TRACE nova iptables_
2012-05-06 16:09:32 TRACE nova File "/usr/lib/
2012-05-06 16:09:32 TRACE nova with lock:
2012-05-06 16:09:32 TRACE nova File "/usr/lib/
2012-05-06 16:09:32 TRACE nova self.acquire()
2012-05-06 16:09:32 TRACE nova File "/usr/lib/
2012-05-06 16:09:32 TRACE nova raise LockFailed("failed to create %s" % self.unique_name)
2012-05-06 16:09:32 TRACE nova LockFailed: failed to create /usr/lib/
2012-05-06 16:09:32 TRACE nova
Exception KeyError: KeyError(
nova-scheduler:
2012-05-06 16:10:38 TRACE nova.rpc.common Traceback (most recent call last):
2012-05-06 16:10:38 TRACE nova.rpc.common File "/usr/lib/
2012-05-06 16:10:38 TRACE nova.rpc.common self._connect()
2012-05-06 16:10:38 TRACE nova.rpc.common File "/usr/lib/
2012-05-06 16:10:38 TRACE nova.rpc.common self.connection
2012-05-06 16:10:38 TRACE nova.rpc.common File "/usr/lib/
2012-05-06 16:10:38 TRACE nova.rpc.common return self.connection
2012-05-06 16:10:38 TRACE nova.rpc.common File "/usr/lib/
2012-05-06 16:10:38 TRACE nova.rpc.common self._connection = self._establish
2012-05-06 16:10:38 TRACE nova.rpc.common File "/usr/lib/
2012-05-06 16:10:38 TRACE nova.rpc.common conn = self.transport.
2012-05-06 16:10:38 TRACE nova.rpc.common File "/usr/lib/
2012-05-06 16:10:38 TRACE nova.rpc.common connect_
2012-05-06 16:10:38 TRACE nova.rpc.common File "/usr/lib/
2012-05-06 16:10:38 TRACE nova.rpc.common super(Connection, self)._
2012-05-06 16:10:38 TRACE nova.rpc.common File "/usr/lib/
2012-05-06 16:10:38 TRACE nova.rpc.common (10, 30), # tune
2012-05-06 16:10:38 TRACE nova.rpc.common File "/usr/lib/
2012-05-06 16:10:38 TRACE nova.rpc.common self.channel_id, allowed_methods)
2012-05-06 16:10:38 TRACE nova.rpc.common File "/usr/lib/
2012-05-06 16:10:38 TRACE nova.rpc.common self.method_
2012-05-06 16:10:38 TRACE nova.rpc.common File "/usr/lib/
2012-05-06 16:10:38 TRACE nova.rpc.common raise m
2012-05-06 16:10:38 TRACE nova.rpc.common IOError: Socket closed
2012-05-06 16:10:38 TRACE nova.rpc.common
nova-vncproxy:(only this process can be start with no error)
2012-05-06 16:01:15 DEBUG nova.service [-] api_paste_config : /etc/nova/
2012-05-06 16:01:15 DEBUG nova.service [-] rabbit_virtual_host : / from (pid=2548) wait /usr/lib/
2012-05-06 16:01:15 DEBUG nova.service [-] network_driver : nova.network.
2012-05-06 16:01:15 DEBUG nova.service [-] vnc_keymap : FLAG SET from (pid=2548) wait /usr/lib/
2012-05-06 16:01:15 DEBUG nova.service [-] image_service : nova.image.
2012-05-06 16:01:15 DEBUG nova.service [-] control_exchange : nova from (pid=2548) wait /usr/lib/
2012-05-06 16:01:15 DEBUG nova.service [-] log_file : None from (pid=2548) wait /usr/lib/
2012-05-06 16:01:15 DEBUG nova.service [-] compute_manager : nova.compute.
2012-05-06 16:01:15 DEBUG nova.service [-] network_topic : network from (pid=2548) wait /usr/lib/
2012-05-06 16:01:15 INFO nova.wsgi [-] Started XCP VNC Proxy on 0.0.0.0:6081
nova-volume:
2012-05-06 16:12:35 TRACE nova Traceback (most recent call last):
2012-05-06 16:12:35 TRACE nova File "/usr/bin/
2012-05-06 16:12:35 TRACE nova service.wait()
2012-05-06 16:12:35 TRACE nova File "/usr/lib/
2012-05-06 16:12:35 TRACE nova _launcher.wait()
2012-05-06 16:12:35 TRACE nova File "/usr/lib/
2012-05-06 16:12:35 TRACE nova service.wait()
2012-05-06 16:12:35 TRACE nova File "/usr/lib/
2012-05-06 16:12:35 TRACE nova return self._exit_
2012-05-06 16:12:35 TRACE nova File "/usr/lib/
2012-05-06 16:12:35 TRACE nova return hubs.get_
2012-05-06 16:12:35 TRACE nova File "/usr/lib/
2012-05-06 16:12:35 TRACE nova return self.greenlet.
2012-05-06 16:12:35 TRACE nova File "/usr/lib/
2012-05-06 16:12:35 TRACE nova result = function(*args, **kwargs)
2012-05-06 16:12:35 TRACE nova File "/usr/lib/
2012-05-06 16:12:35 TRACE nova server.start()
2012-05-06 16:12:35 TRACE nova File "/usr/lib/
2012-05-06 16:12:35 TRACE nova self.manager.
2012-05-06 16:12:35 TRACE nova File "/usr/lib/
2012-05-06 16:12:35 TRACE nova self.driver.
2012-05-06 16:12:35 TRACE nova File "/usr/lib/
2012-05-06 16:12:35 TRACE nova run_as_root=True)
2012-05-06 16:12:35 TRACE nova File "/usr/lib/
2012-05-06 16:12:35 TRACE nova cmd=' '.join(cmd))
2012-05-06 16:12:35 TRACE nova ProcessExecutio
2012-05-06 16:12:35 TRACE nova Command: sudo vgs --noheadings -o name
2012-05-06 16:12:35 TRACE nova Exit code: 1
2012-05-06 16:12:35 TRACE nova Stdout: ''
2012-05-06 16:12:35 TRACE nova Stderr: 'sudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: no tty present and no askpass program specified\nSorry, try again.\nsudo: 3 incorrect password attempts\n'
2012-05-06 16:12:35 TRACE nova
Exception KeyError: KeyError(
| Launchpad Janitor (janitor) said : | #6 |
This question was expired because it remained in the 'Open' state without activity for the last 15 days.
| Lorin Hochstein (lorinh) said : | #7 |
This error messages suggests that nova doesn't have sudo privileges. If you installed from packages on ubuntu, then add the following line to nova.conf:
root_helper=sudo nova-rootwrap
| Aimon Bustardo (aimonb) said : | #8 |
Correct solution is to remove the Defaults requiretty from /etc/sudoers.

