Ask Your Question
1

Instance failed to spawn

asked 2015-01-08 09:56:37 -0500

kpalania gravatar image

updated 2015-01-09 18:58:42 -0500

smaffulli gravatar image

Unable to create instance, instance failed to spawn. Nova services are running properly.

nova service-list
+----+------------------+-------------------+----------+---------+-------+----------------------------+-----------------+<br>
| Id | Binary           | Host              | Zone     | Status  | State | Updated_at                 | Disabled Reason |
+----+------------------+-------------------+----------+---------+-------+----------------------------+-----------------+<br>
| 1  | nova-conductor   | Ubuntu-34.80      | internal | enabled | up    | 2015-01-08T15:18:06.000000 | -               |<br>
| 2  | nova-consoleauth | Ubuntu-34.80      | internal | enabled | up    | 2015-01-08T15:18:06.000000 | -               |<br>
| 3  | nova-scheduler   | Ubuntu-34.80      | internal | enabled | up    | 2015-01-08T15:18:05.000000 | -               |<br>
| 4  | nova-cert        | Ubuntu-34.80      | internal | enabled | up    | 2015-01-08T15:18:06.000000 | -               |<br>
| 5  | nova-compute     | Ubuntu-34.80      | nova     | enabled | up    | 2015-01-08T15:18:05.000000 | None      <br>

virsh list<br>
 Id    Name                           State<br>
----------------------------------------------------"

virsh -c qemu:///system list<br>
 Id    Name                           State<br>
----------------------------------------------------"

virsh dumpxml instance-00000039<br>
error: failed to get domain 'instance-00000039'<br>
error: Domain not found: no domain with matching name 'instance-00000039'<br>

I am not seeing error state for the instance. But nova show throws the error message. Output of nova show:

nova show 7d76ff4a-4369-48d2-b4f2-ed72d81bc3ae<br>
{"message": "Build of instance 7d76ff4a-4369-48d2-b4f2-ed72d81bc3ae was re-scheduled: create_port_precommit failed.", "code": 500, "details": "  File \"/usr/lib/python2.7/dist-packages/nova/compute/manager.py\", line 2036, in _do_build_and_run_instance |

Logs from nova-compute.log

2015-01-08 10:18:56.046 3368 TRACE nova.network.neutronv2.api [instance: 7d76ff4a-4369-48d2-b4f2-ed72d81bc3ae] InternalServerError: create_port_precommit failed.<br>
\n 2015-01-08 10:18:56.046 3368 TRACE nova.network.neutronv2.api [instance: 7d76ff4a-4369-48d2-b4f2-ed72d81bc3ae]<br>
2015-01-08 10:18:56.065 3368 ERROR nova.compute.manager [-] Instance failed network setup after 1 attempt(s)<br>
2015-01-08 10:18:56.065 3368 TRACE nova.compute.manager Traceback (most recent call last):<br>
2015-01-08 10:18:56.065 3368 TRACE nova.compute.manager   File "/usr/lib/python2.7/dist-packages<br>/nova/compute/manager.py", line 1649, in _allocate_network_async
2015-01-08 10:18:56.065 3368 TRACE nova.compute.manager     dhcp_options=dhcp_options)<br>
2015-01-08 10:18:56.065 3368 TRACE nova.compute.manager   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 443, in allocate_for_instance<br>
2015-01-08 10:18:56.065 3368 TRACE nova.compute.manager     self._delete_ports(neutron, instance, created_port_ids)<br>
2015-01-08 10:18:56.065 3368 TRACE nova.compute.manager   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py", line 82, in __exit__<br>
2015-01-08 10:18:56.065 3368 TRACE nova.compute.manager     six.reraise(self.type_, self.value, self.tb)<br>
2015-01-08 10:18:56.065 3368 TRACE nova.compute.manager   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 423, in allocate_for_instance<br>
2015-01-08 10:18:56.065 3368 TRACE nova.compute.manager     security_group_ids, available_macs, dhcp_opts)<br>
2015-01-08 10:18:56.065 3368 TRACE nova.compute.manager   File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 236, in _create_port<br>
2015-01-08 10:18:56.065 3368 TRACE nova.compute.manager     network_id, instance=instance)<br>
2015-01-08 10:18:56.065 3368 TRACE nova.compute.manager   File "/usr/lib/python2.7/dist-packages/nova/openstack/common/excutils.py", line 82, in __exit__<br>
2015-01-08 10:18:56.065 3368 TRACE nova.compute.manager     six.reraise(self.type_, self.value, self.tb)<br>
2015-01-08 10:18 ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-01-20 00:06:49 -0500

hello,

if your problem still not resolved, kindlly do check your image must be compatible with the hypervisor.

your all other services must be up and running.
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

2 followers

Stats

Asked: 2015-01-08 09:56:37 -0500

Seen: 1,653 times

Last updated: Jan 20 '15