However nova-compute did not delete the port from neutron during instance termination.
Then instance was rescheduled to node-3, nova-compute created new port in neutron and successfully spawned the instance.
Nova team, please check why nova-compute on node-6 did not clear neutron port.
Instance 2b580249- 9467-44d7- 9e6b-73693534a5 d4 was first scheduled to node-6:
2016-05-26 02:37:34.645 14354 DEBUG nova.compute. manager [req-81751add- 78d4-4f53- 8042-a04596d0a0 40 becfc7903e7e491 7ab927eae3fb3bb 3d 420cb14a42c84b3 fbbb8891fc93298 16 - - -] [instance: 2b580249- 9467-44d7- 9e6b-73693534a5 d4] Starting instance... _do_build_ and_run_ instance /usr/lib/ python2. 7/dist- packages/ nova/compute/ manager. py:1897
port fa843bf8- 01b7-424e- a705-ff8453ec74 3e created:
2016-05-26 02:37:37.614 14354 DEBUG keystoneauth. session [req-81751add- 78d4-4f53- 8042-a04596d0a0 40 becfc7903e7e491 7ab927eae3fb3bb 3d 420cb14a42c84b3 fbbb8891fc93298 16 - - -] RESP: [201] Date: Thu, 26 May 2016 02:37:37 GMT Connection: close Content-Type: application/json; charset=UTF-8 Content-Length: 886 X-Openstack- Request- Id: req-c801de97- 029d-4927- a983-3d3db3e6f4 43 test.domain. local", "description": "", "allowed_ address_ pairs": [], "extra_dhcp_opts": [], "updated_at": "2016-05- 26T02:37: 37", "device_owner": "compute:None", "port_security_ enabled" : true, "binding:profile": {}, "fixed_ips": [{"subnet_id": "b888bc63- 4e17-43e1- 885f-aa7ba3511d 33", "ip_address": "10.100.0.6"}], "id": "fa843bf8- 01b7-424e- a705-ff8453ec74 3e", "security_groups": ["f1cb0412- 1db4-4332- 911b-1f9a0362f3 bc"], "device_id": "2b580249- 9467-44d7- 9e6b-73693534a5 d4", "name": "", "admin_state_up": true, "network_id": "5db2908b- a315-45e2- 92ac-37472d4bdf 76", "dns_name": null, "binding: vif_details" : {"port_filter": true, "ovs_hybrid_plug": true}, "binding: vnic_type" : "normal", "binding:vif_type": "ovs", "tenant_id": "420cb14a42c84b 3fbbb8891fc9329 816", "mac_address": "fa:16: 3e:2c:5a: c4", "created_at": "2016-05- 26T02:37: 36"}} python2. 7/dist- packages/ keystoneauth1/ session. py:277 neutronv2. api [req-81751add- 78d4-4f53- 8042-a04596d0a0 40 becfc7903e7e491 7ab927eae3fb3bb 3d 420cb14a42c84b3 fbbb8891fc93298 16 - - -] [instance: 2b580249- 9467-44d7- 9e6b-73693534a5 d4] Successfully created port: fa843bf8- 01b7-424e- a705-ff8453ec74 3e _create_port /usr/lib/ python2. 7/dist- packages/ nova/network/ neutronv2/ api.py: 261
RESP BODY: {"port": {"status": "DOWN", "binding:host_id": "node-6.
_http_log_response /usr/lib/
2016-05-26 02:37:37.615 14354 DEBUG nova.network.
But eventually instance failed to spawn:
2016-05-26 02:37:47.591 14354 ERROR nova.compute. manager [req-81751add- 78d4-4f53- 8042-a04596d0a0 40 becfc7903e7e491 7ab927eae3fb3bb 3d 420cb14a42c84b3 fbbb8891fc93298 16 - - -] [instance: 2b580249- 9467-44d7- 9e6b-73693534a5 d4] Instance failed to spawn manager [instance: 2b580249- 9467-44d7- 9e6b-73693534a5 d4] Traceback (most recent call last): manager [instance: 2b580249- 9467-44d7- 9e6b-73693534a5 d4] File "/usr/lib/ python2. 7/dist- packages/ nova/compute/ manager. py", line 2218, in _build_resources manager [instance: 2b580249- 9467-44d7- 9e6b-73693534a5 d4] yield resources manager [instance: 2b580249- 9467-44d7- 9e6b-73693534a5 d4] File "/usr/lib/ python2. 7/dist- packages/ nova/compute/ manager. py", line 2064, in _build_ and_run_ instance manager [instance: 2b580249- 9467-44d7- 9e6b-73693534a5 d4] block_device_ info=block_ device_ info) manager [instance: 2b580249- 9467-44d7- 9e6b-73693534a5 d4] File "/usr/lib/ python2. 7/dist- packages/ nova/virt/ libvirt/ driver. py", line 2780, in spawn manager [instance: 2b580249- 9467-44d7- 9e6b-73693534a5 d4] block_device_ info=block_ device_ info) manager [instance: 2b580249- 9467-44d7- 9e6b-73693534a5 d4] File "/usr/lib/ python2. 7/dist- packages/ nova/virt/ libvirt/ driver. py", line 4915, in _create_ domain_ and_network manager [instance: 2b580249- 9467-44d7- 9e6b-73693534a5 d4] xml, pause=pause, power_on=power_on) manager [instance: 2b580249- 9467-44d7- 9e6b-73693534a5 d4] File "/usr/lib/ python2. 7/dist- packages/ nova/virt/ libvirt/ driver. py", line 4846, in _create_domain manager [instance: 2b580249- 9467-44d7- 9e6b-73693534a5 d4] guest.launch( pause=pause) manager [instance: 2b580249- 9467-44d7- 9e6b-73693534a5 d4] File "/usr/lib/ python2. 7/dist- packages/ nova/virt/ libvirt/ guest.py" , line 142, in launch manager [instance: 2b580249- 9467-44d7- 9e6b-73693534a5 d4] self._encoded_xml, errors='ignore') manager [instance: 2b580249- 9467-44d7- 9e6b-73693534a5 d4] File "/usr/lib/ python2. 7/dist- packages/ oslo_utils/ excutils. py", line 220, in __exit__ manager [instance: 2b580249- 9467-44d7- 9e6b-73693534a5 d4] self.force_ reraise( ) manager [instance: 2b580249- 9467-44d7- 9e6b-73693534a5 d4] File "/usr/lib/ python2. 7/dist- packages/ oslo_utils/ excutils. py", line 196, in force_reraise manager [instance: 2b580249- 9467-44d7- 9e6b-73693534a5 d4] six.reraise( self.type_ , self.value, self.tb) manager [instance: 2b580249- 9467-44d7- 9e6b-73693534a5 d4] File "/usr/lib/ python2. 7/dist- packages/ nova/virt/ libvirt/ guest.py" , line 137, in launch manager [instance: 2b580249- 9467-44d7- 9e6b-73693534a5 d4] return self._domain. createWithFlags (flags) manager [instance: 2b580249- 9467-44d7- 9e6b-73693534a5 d4] File "/usr/lib/ python2. 7/dist- packages/ eventlet/ tpool.py" , line 186, in doit manager [instance: 2b580249- 9467-44d7- 9e6b-73693534a5 d4] result = proxy_call( self._autowrap, f, *args, **kwargs) manager [instance: 2b580249- 9467-44d7- 9e6b-73693534a5 d4] File "/usr/lib/ python2. 7/dist- packages/ eventlet/ tpool.py" , line 144, in proxy_call manager [instance: 2b580249- 9467-44d7- 9e6b-73693534a5 d4] rv = execute(f, *args, **kwargs) manager [instance: 2b580249- 9467-44d7- 9e6b-73693534a5 d4] File "/usr/lib/ python2. 7/dist- packages/ eventlet/ tpool.py" , line 125, in execute manager [instance: 2b580249- 9467-44d7- 9e6b-73693534a5 d4] six.reraise(c, e, tb) manager [instance: 2b580249- 9467-44d7- 9e6b-73693534a5 d4] File "/usr/lib/ python2. 7/dist- packages/ eventlet/ tpool.py" , line 83, in tworker manager [instance: 2b580249- 9467-44d7- 9e6b-73693534a5 d4] rv = meth(*args, **kwargs) manager [instance: 2b580249- 9467-44d7- 9e6b-73693534a5 d4] File "/usr/lib/ python2. 7/dist- packages/ libvirt. py", line 1033, in createWithFlags manager [instance: 2b580249- 9467-44d7- 9e6b-73693534a5 d4] if ret == -1: raise libvirtError ('virDomainCrea teWithFlags( ) failed', dom=self) manager [instance: 2b580249- 9467-44d7- 9e6b-73693534a5 d4] libvirtError: Unable to read from monitor: Connection reset by peer manager [instance: 2b580249- 9467-44d7- 9e6b-73693534a5 d4] manager [req-81751add- 78d4-4f53- 8042-a04596d0a0 40 becfc7903e7e491 7ab927eae3fb3bb 3d 420cb14a42c84b3 fbbb8891fc93298 16 - - -] [instance: 2b580249- 9467-44d7- 9e6b-73693534a5 d4] Terminating instance
2016-05-26 02:37:47.591 14354 ERROR nova.compute.
2016-05-26 02:37:47.591 14354 ERROR nova.compute.
2016-05-26 02:37:47.591 14354 ERROR nova.compute.
2016-05-26 02:37:47.591 14354 ERROR nova.compute.
2016-05-26 02:37:47.591 14354 ERROR nova.compute.
2016-05-26 02:37:47.591 14354 ERROR nova.compute.
2016-05-26 02:37:47.591 14354 ERROR nova.compute.
2016-05-26 02:37:47.591 14354 ERROR nova.compute.
2016-05-26 02:37:47.591 14354 ERROR nova.compute.
2016-05-26 02:37:47.591 14354 ERROR nova.compute.
2016-05-26 02:37:47.591 14354 ERROR nova.compute.
2016-05-26 02:37:47.591 14354 ERROR nova.compute.
2016-05-26 02:37:47.591 14354 ERROR nova.compute.
2016-05-26 02:37:47.591 14354 ERROR nova.compute.
2016-05-26 02:37:47.591 14354 ERROR nova.compute.
2016-05-26 02:37:47.591 14354 ERROR nova.compute.
2016-05-26 02:37:47.591 14354 ERROR nova.compute.
2016-05-26 02:37:47.591 14354 ERROR nova.compute.
2016-05-26 02:37:47.591 14354 ERROR nova.compute.
2016-05-26 02:37:47.591 14354 ERROR nova.compute.
2016-05-26 02:37:47.591 14354 ERROR nova.compute.
2016-05-26 02:37:47.591 14354 ERROR nova.compute.
2016-05-26 02:37:47.591 14354 ERROR nova.compute.
2016-05-26 02:37:47.591 14354 ERROR nova.compute.
2016-05-26 02:37:47.591 14354 ERROR nova.compute.
2016-05-26 02:37:47.591 14354 ERROR nova.compute.
2016-05-26 02:37:47.591 14354 ERROR nova.compute.
2016-05-26 02:37:47.591 14354 ERROR nova.compute.
2016-05-26 02:37:47.591 14354 ERROR nova.compute.
2016-05-26 02:37:47.591 14354 ERROR nova.compute.
2016-05-26 02:37:47.591 14354 ERROR nova.compute.
2016-05-26 02:37:47.595 14354 INFO nova.compute.
However nova-compute did not delete the port from neutron during instance termination.
Then instance was rescheduled to node-3, nova-compute created new port in neutron and successfully spawned the instance.
Nova team, please check why nova-compute on node-6 did not clear neutron port.