Ask Your Question

Neutron error creating port on network

asked 2014-11-26 19:31:14 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

my openstack is Havana with Ubuntu 12.04 on three nodes,control node,compute node,network node.Last thursday I see the ip address of instance on the dashboard is different with the real ip address in the instance.The neutron's dhcp is disable,and I config the ip address manaually.So I connect to the mysql database,use neutron,and update the tables ipallocations.After do this,when I launch instance,the error on the compute node in nova-compute is:

2014-11-27 09:09:44.339 6526 ERROR nova.scheduler.filter_scheduler [req-117cd5b9-fcd9-4f4c-b322-9f1e00dbebba ba105fb7bb9b4005920e2c6c3504b642 8dd93863a19a45eba7711f4867f3830f] [instance: 658e1f79-7f77-4749-99da-e3149efd6ae7] Error from last host: osc10 (node [u'Traceback (most recent call last):\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/", line 1043, in _build_instance\n set_access_ip=set_access_ip)\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/", line 1426, in _spawn\n LOG.exception(_(\'Instance failed to spawn\'), instance=instance)\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/", line 1423, in _spawn\n block_device_info)\n', u' File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/", line 2084, in spawn\n admin_pass=admin_password)\n', u' File "/usr/lib/python2.7/dist-packages/nova/virt/libvirt/", line 2481, in _create_image\n net = netutils.get_injected_network_template(network_info)\n', u' File "/usr/lib/python2.7/dist-packages/nova/virt/", line 74, in get_injected_network_template\n if not (network_info and template):\n', u' File "/usr/lib/python2.7/dist-packages/nova/network/", line 379, in __len__\n return self._sync_wrapper(fn, args, *kwargs)\n', u' File "/usr/lib/python2.7/dist-packages/nova/network/", line 366, in _sync_wrapper\n self.wait()\n', u' File "/usr/lib/python2.7/dist-packages/nova/network/", line 398, in wait\n self[:] = self._gt.wait()\n', u' File "/usr/lib/python2.7/dist-packages/eventlet/", line 168, in wait\n return self._exit_event.wait()\n', u' File "/usr/lib/python2.7/dist-packages/eventlet/", line 120, in wait\n current.throw(self._exc)\n', u' File "/usr/lib/python2.7/dist-packages/eventlet/", line 194, in main\n result = function(args, *kwargs)\n', u' File "/usr/lib/python2.7/dist-packages/nova/compute/", line 1244, in _allocate_network_async\n dhcp_options=dhcp_options)\n', u' File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/", line 358, in allocate_for_instance\n LOG.exception(msg, port_id)\n', u' File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/", line 335, in allocate_for_instance\n security_group_ids, available_macs, dhcp_opts))\n', u' File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/", line 183, in _create_port\n port_id = port_client.create_port(port_req_body)[\'port\'][\'id\']\n', u' File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/", line 108, in with_params\n ret = self.function(instance, *args, *kwargs)\n', u' File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/", line 308, in create_port\n return, body=body)\n', u' File "/usr ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-11-26 20:23:24 -0500

GLaupre gravatar image


I am not sure the two errors are related with each other: the two timestamps are off about 18 hours.. Can you restart a new instance and past the content of .../nova/instances/<id of="" your="" instance="">/console.log if the instance starts? Or does the instance not even start?

edit flag offensive delete link more


I can not launch new instance now.If the instance ever exists,it could be reboot.what do you want?Thank you for help me.

shengchao liu gravatar imageshengchao liu ( 2014-11-26 23:41:07 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-11-26 19:31:14 -0500

Seen: 967 times

Last updated: Nov 26 '14