Cannot launch a VM after configuring Shared File Systesm (NFS): No valid host was found. There are not enough hosts available.

asked 2017-01-11 12:20:27 -0600

AmirV gravatar image

I have a controller and two compute nodes in my OpenStack environment. I could successfully run and launch a VM.

I wanted to configure Live Migration, so I installed NFS on controller and shared /var/lib/nova/instances and mount it on compute nodes. I also give read/write permission to nova user for the shared folder.

The problem is, now I cannot launch a VM. It gives the error: No valid host was found. There are not enough hosts available.

This is the nova-compute error log on compute node 1: http://paste.openstack.org/show/594537/

It applears that the problem is from the permissions! But I don't know how to fix it.

 error: Unable to acquire lock on `/var/lib/nova/instances/locks/nova-7fcf70d05241436c608

Also, this is Nova-scheduler on controller error log: http://paste.openstack.org/show/594535/

edit retag flag offensive close merge delete

Comments

Have nfs exports configured with this permissions? In RH based OS /etc/exports

/nfsshare   *(rw,sync,fsid=0,no_root_squash)

Also, check selinux policies for nfs, and ensure the paths are properly mounted.

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2017-01-11 15:01:20 -0600 )edit

Yes the /etc/export file and mounting are configured fine. The problem is permissions.

AmirV gravatar imageAmirV ( 2017-01-11 23:28:59 -0600 )edit