Ask Your Question
0

Nova-compute not starting

asked 2015-06-04 01:40:05 -0500

Aleksi gravatar image

Hi! I'm new to OpenStack (and Linux as well) and I'm trying to get DevStack installed and working. I have already managed to create an image, but I'm not able to create an instance from it. I got error "Host not found" so I navigated to System Information to prove that nova-compute isn't running. So, I run "sudo nova-compute" after which nova-compute appears but soon goes to state "down". I get the following errors:

WARNING nova.compute.manager [req-abc None None] While synchronizing instance power states, found 0 instances in the database and 1 instances on the hypervisor.
WARNING nova.compute.manager [req-abc None None] Bandwidth usage not supported by hypervisor.
2015-06-04 07:37:33.739 ERROR nova.virt.libvirt.host [req-abc None None] Connection to libvirt failed: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory
2015-06-04 07:37:33.739 TRACE nova.virt.libvirt.host Traceback (most recent call last):
2015-06-04 07:37:33.739 TRACE nova.virt.libvirt.host   File "/opt/stack/nova/nova/virt/libvirt/host.py", line 531, in get_connection
2015-06-04 07:37:33.739 TRACE nova.virt.libvirt.host     conn = self._get_connection()
2015-06-04 07:37:33.739 TRACE nova.virt.libvirt.host   File "/opt/stack/nova/nova/virt/libvirt/host.py", line 518, in _get_connection
2015-06-04 07:37:33.739 TRACE nova.virt.libvirt.host     wrapped_conn = self._get_new_connection()
2015-06-04 07:37:33.739 TRACE nova.virt.libvirt.host   File "/opt/stack/nova/nova/virt/libvirt/host.py", line 470, in _get_new_connection
2015-06-04 07:37:33.739 TRACE nova.virt.libvirt.host     wrapped_conn = self._connect(self._uri, self._read_only)
2015-06-04 07:37:33.739 TRACE nova.virt.libvirt.host   File "/opt/stack/nova/nova/virt/libvirt/host.py", line 321, in _connect
2015-06-04 07:37:33.739 TRACE nova.virt.libvirt.host     libvirt.openAuth, uri, auth, flags)
2015-06-04 07:37:33.739 TRACE nova.virt.libvirt.host   File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 141, in proxy_call
2015-06-04 07:37:33.739 TRACE nova.virt.libvirt.host     rv = execute(f, *args, **kwargs)
2015-06-04 07:37:33.739 TRACE nova.virt.libvirt.host   File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 122, in execute
2015-06-04 07:37:33.739 TRACE nova.virt.libvirt.host     six.reraise(c, e, tb)
2015-06-04 07:37:33.739 TRACE nova.virt.libvirt.host   File "/usr/local/lib/python2.7/dist-packages/eventlet/tpool.py", line 80, in tworker
2015-06-04 07:37:33.739 TRACE nova.virt.libvirt.host     rv = meth(*args, **kwargs)
2015-06-04 07:37:33.739 TRACE nova.virt.libvirt.host   File "/usr/local/lib/python2.7/dist-packages/libvirt.py", line 105, in openAuth
2015-06-04 07:37:33.739 TRACE nova.virt.libvirt.host     if ret is None:raise libvirtError('virConnectOpenAuth() failed')
2015-06-04 07:37:33.739 TRACE nova.virt.libvirt.host libvirtError: Failed to connect socket to '/var/run/libvirt/libvirt-sock': No such file or directory
2015-06-04 07:37:33.739 TRACE nova ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-06-08 06:56:39 -0500

Aleksi gravatar image

I could overcome this by re-installing Ubuntu and upgrading libvirt to 1.2.16 prior to running stack.sh. I guess my multiple attempts to install DevStack just got things a bit confused :) I've also found the following commands helpful between installations, just in case someone else is unable to successfully run stack.sh after unstack.sh / clean.sh, too:

sudo pip uninstall virtualenv
sudo pip uninstall tox
sudo pip uninstall django
sudo pip uninstall python-openstackclient
sudo pip uninstall python-cinderclient
sudo pip uninstall python-ceilometerclient
sudo pip uninstall python-glanceclient
sudo pip uninstall python-keystoneclient
sudo pip uninstall python-neutronclient
sudo pip uninstall python-novaclient
sudo pip uninstall python-saharaclient
sudo apt-get purge mysql-server-5.1 mysql-common
sudo rm /etc/mysql/ -R
sudo mkdir /var/lib/mysql/
sudo chown root:root /var/lib/mysql/ -R
sudo cp * /var/lib/mysql/ -R
sudo apt-get install mysql-server
sudo start mysql
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

Stats

Asked: 2015-06-04 01:40:05 -0500

Seen: 648 times

Last updated: Jun 04 '15