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

asked 2016-03-31 04:49:19 -0500

Renars S gravatar image

When trying to launch any instance, I get "Error: Failed to perform requested operation on instance "test1", the instance has an error status: Please try again later [Error: No valid host was found. There are not enough hosts available.]." - this only happens when a floating IP is assigned to an instance. If only internal IPs are being used, the instances launch just fine.

I've checked that all services are running, there are enough resources and all the usual things. I've also tried deploying an environment via Murano, and it does work that way - instance is launched with floating IP, but if I try to create an instance manually, it shows the above error and does not start.

Compute logs:

nova.compute.manager [req-22af9597-24d6-4ea3-a27a-b4bdd1c62bc5 dd49b1d384684b95be602045e0daf9e6 8bda9f8cd490444e9075853c995ace9a - - -] [instance: 7ec79c16-d0b3-4068-9e4a-2d5ee3f0dbd2] Instance failed to spawn
2016-03-31 09:40:49.692 13044 ERROR nova.compute.manager [instance: 7ec79c16-d0b3-4068-9e4a-2d5ee3f0dbd2] Traceback (most recent call last):
2016-03-31 09:40:49.692 13044 ERROR nova.compute.manager [instance: 7ec79c16-d0b3-4068-9e4a-2d5ee3f0dbd2]   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2157, in _build_resources
2016-03-31 09:40:49.692 13044 ERROR nova.compute.manager [instance: 7ec79c16-d0b3-4068-9e4a-2d5ee3f0dbd2]     yield resources
2016-03-31 09:40:49.692 13044 ERROR nova.compute.manager [instance: 7ec79c16-d0b3-4068-9e4a-2d5ee3f0dbd2]   File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2011, in _build_and_run_instance
2016-03-31 09:40:49.692 13044 ERROR nova.compute.manager [instance: 7ec79c16-d0b3-4068-9e4a-2d5ee3f0dbd2]     block_device_info=block_device_info)
2016-03-31 09:40:49.692 13044 ERROR nova.compute.manager [instance: 7ec79c16-d0b3-4068-9e4a-2d5ee3f0dbd2]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2529, in spawn
2016-03-31 09:40:49.692 13044 ERROR nova.compute.manager [instance: 7ec79c16-d0b3-4068-9e4a-2d5ee3f0dbd2]     admin_pass=admin_password)
2016-03-31 09:40:49.692 13044 ERROR nova.compute.manager [instance: 7ec79c16-d0b3-4068-9e4a-2d5ee3f0dbd2]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 3061, in _create_image
2016-03-31 09:40:49.692 13044 ERROR nova.compute.manager [instance: 7ec79c16-d0b3-4068-9e4a-2d5ee3f0dbd2]     instance, network_info, admin_pass, files, suffix)
2016-03-31 09:40:49.692 13044 ERROR nova.compute.manager [instance: 7ec79c16-d0b3-4068-9e4a-2d5ee3f0dbd2]   File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/driver.py", line 2842, in _inject_data
2016-03-31 09:40:49.692 13044 ERROR nova.compute.manager [instance: 7ec79c16-d0b3-4068-9e4a-2d5ee3f0dbd2]     network_info, libvirt_virt_type=CONF.libvirt.virt_type)
2016-03-31 09:40:49.692 13044 ERROR nova.compute.manager [instance: 7ec79c16-d0b3-4068-9e4a-2d5ee3f0dbd2]   File "/usr/lib/python2.7/dist-packages/nova/virt/netutils.py", line 87, in get_injected_network_template
2016-03-31 09:40:49.692 13044 ERROR nova.compute.manager [instance: 7ec79c16-d0b3-4068-9e4a-2d5ee3f0dbd2]     if not (network_info and template):
2016-03-31 09:40:49.692 13044 ERROR nova.compute.manager [instance: 7ec79c16-d0b3-4068-9e4a-2d5ee3f0dbd2]   File "/usr/lib/python2.7/dist-packages/nova/network/model.py", line 511, in __len__
2016-03-31 09:40:49.692 13044 ERROR nova.compute.manager [instance: 7ec79c16-d0b3-4068-9e4a-2d5ee3f0dbd2]     return self._sync_wrapper(fn, *args, **kwargs)
2016-03-31 09:40:49.692 13044 ERROR nova.compute.manager [instance: 7ec79c16-d0b3-4068-9e4a-2d5ee3f0dbd2]   File "/usr/lib/python2.7/dist-packages/nova/network/model.py", line 498, in _sync_wrapper
2016-03-31 09:40:49.692 13044 ERROR nova.compute.manager [instance: 7ec79c16-d0b3-4068-9e4a-2d5ee3f0dbd2]     self.wait()
2016-03-31 09:40:49.692 13044 ERROR nova.compute.manager [instance: 7ec79c16-d0b3-4068-9e4a-2d5ee3f0dbd2]   File "/usr ...
(more)
edit retag flag offensive close merge delete

Comments

Make sure all of your services are running nova service-listneutron agent-list

Bipin gravatar imageBipin ( 2016-03-31 05:38:40 -0500 )edit

They are. Again, I am able to spawn instances with floating ips via Murano, but not directly. This is related to port binding error as per logs, but I can't figure out the fix.

Renars S gravatar imageRenars S ( 2016-03-31 05:56:33 -0500 )edit