Connectivity to compute nodes lost when deleting the configured vhost0 interface
Build
------
R4.1.0.0 Build 42 Ubuntu 14.04.5 Mitaka
Steps
Configure vhost0 interface per each vrouter through VNC API
Configure IP Fabric VN as provider network for vhost0 interface
Now, delete the configured vhost0 interface and connectivity to compure nodes is lost
Please see the log below:
>>> pprint(vnc_lib.virtual_routers_list())
{u'virtual-routers': [{u'fq_name': [u'default-global-system-config',
u'nodek11'],
u'href': u'http://10.204.217.127:8082/virtual-router/21774633-ddff-4238-b593-16ce76b9cd18',
u'uuid': u'21774633-ddff-4238-b593-16ce76b9cd18'},
{u'fq_name': [u'default-global-system-config',
u'nodeb9'],
u'href': u'http://10.204.217.127:8082/virtual-router/b652e507-6825-4a7a-8b3e-82335a8e0b8d',
u'uuid': u'b652e507-6825-4a7a-8b3e-82335a8e0b8d'},
{u'fq_name': [u'default-global-system-config',
u'nodec23'],
u'href': u'http://10.204.217.127:8082/virtual-router/90f5c301-9135-466f-92f0-0518c507a015',
u'uuid': u'90f5c301-9135-466f-92f0-0518c507a015'}]}
>>>
>>> nodek11_vr = vnc_lib.virtual_router_read(id="21774633-ddff-4238-b593-16ce76b9cd18")
>>> nodec23_vr = vnc_lib.virtual_router_read(id="90f5c301-9135-466f-92f0-0518c507a015")
>>> nodeb9_vr = vnc_lib.virtual_router_read(id="b652e507-6825-4a7a-8b3e-82335a8e0b8d”)
>>> vmi1 = vnc_api.VirtualMachineInterface(name="vhost0", parent_obj = nodek11_vr)
>>> vmi2 = vnc_api.VirtualMachineInterface(name="vhost0", parent_obj = nodec23_vr)
>>> vmi3 = vnc_api.VirtualMachineInterface(name="vhost0", parent_obj = nodeb9_vr)
>>>
>>> vmi1.set_virtual_network(ipfab_vn)
>>> vmi2.set_virtual_network(ipfab_vn)
>>> vmi3.set_virtual_network(ipfab_vn)
>>>
>>>
>>> vnc_lib.virtual_machine_interface_create(vmi1)
u'd5016c08-3fe3-400f-8ed6-f56a9bfbc12a'
>>>
>>> vnc_lib.virtual_machine_interface_create(vmi2)
u'24254503-473f-4d6a-b5e4-75b8e5130692’
>>>
>>> vnc_lib.virtual_machine_interface_create(vmi3)
u'9c8b60c4-380e-4a03-b469-325f3876437c’
>>>
>>> pprint(vnc_lib.virtual_machine_interfaces_list())
{u'virtual-machine-interfaces': [{u'fq_name': [u'default-domain',
u'ctest-TestGWLessFWD-16198224',
u'47b6f8fe-dcec-4708-b4e3-609511267135'],
u'href': u'http://10.204.217.127:8082/virtual-machine-interface/47b6f8fe-dcec-4708-b4e3-609511267135',
u'uuid': u'47b6f8fe-dcec-4708-b4e3-609511267135'},
{u'fq_name': [u'default-global-system-config',
u'nodec23',
u'vhost0'],
u'href': u'http://10.204.217.127:8082/virtual-machine-interface/f31ef438-f822-40ea-bda8-a35b06f8b91a',
u'uuid': u'f31ef438-f822-40ea-bda8-a35b06f8b91a'},
{u'fq_name': [u'default-domain',
u'ctest-TestGWLessFWD-16198224',
u'0c2e23af-a760-4af0-81ed-7b52a0997997'],
u'href': u'http://10.204.217.127:8082/virtual-machine-interface/0c2e23af-a760-4af0-81ed-7b52a0997997',
u'uuid': u'0c2e23af-a760-4af0-81ed-7b52a0997997'},
{u'fq_name': [u'default-global-system-config',
u'nodeb9',
u'vhost0'],
u'href': u'http://10.204.217.127:8082/virtual-machine-interface/24b53ca9-1f71-4328-a4fa-47e4eaa0e185',
u'uuid': u'24b53ca9-1f71-4328-a4fa-47e4eaa0e185'},
{u'fq_name': [u'default-global-system-config',
u'nodek11',
u'vhost0'],
u'href': u'http://10.204.217.127:8082/virtual-machine-interface/acdf7e54-8238-42ba-be3b-74fc538111fc',
u'uuid': u'acdf7e54-8238-42ba-be3b-74fc538111fc'}]}
>>>
>>> vnc_lib.virtual_machine_interface_delete(id="acdf7e54-8238-42ba-be3b-74fc538111fc")
>>>
>>>
[17:25:27][cmallam-mbp15:~]$ping nodek11
PING nodek11.englab.juniper.net (10.204.216.231): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
Request timeout for icmp_seq 4
^C
— nodek11.englab.juniper.net ping statistics ---
6 packets transmitted, 0 packets received, 100.0% packet loss
[17:25:35][cmallam-mbp15:~]$
Issue is not seen in later builds, after other changes went in. Closing this.