Unable to spin up VMs in some compute nodes

asked 2017-01-10 22:11:34 -0600

Anand TS gravatar image

Enviroment: Openstack liberty is up and running with one controller and 3 compute nodes.

Scenario: Unable to spin the VM's in 2 compute nodes if I choose the availability zone as this nodes. But for one compute node I am able to spin up VMs with out any issue.

I compared all the configuration files in these compute nodes and it is same as the working one.

ERROR:

Error:Failed to perform requested operation on instance "123", the instance has an error status: Please try again later [Error: No valid host was found. There are not enough hosts available.].

From compute logs:

2017-01-10 23:01:04.269 34160 ERROR nova.network.neutronv2.api [req-f775168b-2ef9-4c14-81d7-eabef628b689 54140a2bd29e41b78a3e9145268d4f4f a9210aa2a7d14064b5a819c700ddc4ec - - -] Unable to clear device ID for port 'None'
2017-01-10 23:01:04.269 34160 TRACE nova.network.neutronv2.api Traceback (most recent call last):
2017-01-10 23:01:04.269 34160 TRACE nova.network.neutronv2.api   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 412, in _unbind_ports
2017-01-10 23:01:04.269 34160 TRACE nova.network.neutronv2.api     port_client.update_port(port_id, port_req_body)
2017-01-10 23:01:04.269 34160 TRACE nova.network.neutronv2.api   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 202, in wrapper
2017-01-10 23:01:04.269 34160 TRACE nova.network.neutronv2.api     ret = obj(*args, **kwargs)
2017-01-10 23:01:04.269 34160 TRACE nova.network.neutronv2.api   File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 102, in with_params
2017-01-10 23:01:04.269 34160 TRACE nova.network.neutronv2.api     ret = self.function(instance, *args, **kwargs)
2017-01-10 23:01:04.269 34160 TRACE nova.network.neutronv2.api   File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 549, in update_port
2017-01-10 23:01:04.269 34160 TRACE nova.network.neutronv2.api     return self.put(self.port_path % (port), body=body)
2017-01-10 23:01:04.269 34160 TRACE nova.network.neutronv2.api   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 202, in wrapper
2017-01-10 23:01:04.269 34160 TRACE nova.network.neutronv2.api     ret = obj(*args, **kwargs)
2017-01-10 23:01:04.269 34160 TRACE nova.network.neutronv2.api   File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 302, in put
2017-01-10 23:01:04.269 34160 TRACE nova.network.neutronv2.api     headers=headers, params=params)
2017-01-10 23:01:04.269 34160 TRACE nova.network.neutronv2.api   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 202, in wrapper
2017-01-10 23:01:04.269 34160 TRACE nova.network.neutronv2.api     ret = obj(*args, **kwargs)
2017-01-10 23:01:04.269 34160 TRACE nova.network.neutronv2.api   File "/usr/lib/python2.7/site-packages/neutronclient/v2_0/client.py", line 270, in retry_request
2017-01-10 23:01:04.269 34160 TRACE nova.network.neutronv2.api     headers=headers, params=params)
2017-01-10 23:01:04.269 34160 TRACE nova.network.neutronv2.api   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 202, in wrapper
2017-01-10 23:01 ...
(more)
edit retag flag offensive close merge delete

Comments

I believe the error in the compute log doesn't reflect the root problem. It occurs when unbinding a port fails (in this case, it fails because the port doesn't exist). Something happened earlier that required unbinding the port; look for earlier errors.

Bernd Bausch gravatar imageBernd Bausch ( 2017-01-11 00:34:18 -0600 )edit

Hello @Bernd,

There was some issue with the neutron plugin configuration. When I changed the unusual entry in the /etc/neutron/plugins/ml2/ml2_conf.ini and changed machanisim_drivers to openvswitch and removed other entry, restarted neutron-server, it started working. mechanism_drivers = openvswitc

Anand TS gravatar imageAnand TS ( 2017-01-11 23:26:41 -0600 )edit