Description of problem: When you connect a router to a network (switch in OVS terms) using add router interface by subnet, and then remove the router interface, it should remove the port assigned for the network. If you try to delete the network, you will get an error about a port already attached to it, but this port is detached by the remove interface operation: HTTP code 400 "Unable to delete network <NETWORK_ID>. Ports exist for the network". Version-Release number of selected component (if applicable): ovirt-provider-ovn-1.2.2-1.el7ev.noarch How reproducible: 100% Steps to Reproduce: 1. Create OVN network, create and attach subnet to it. 2. Create OVN router. 3. Add router interface by subnet and attach the subnet ID from step 1. 4. Remove interface from router using the subnet ID from step 1. 5. Try to remove the network from the provider. Actual results: See description for error message. Expected results: Should work. Additional info: https://developer.openstack.org/api-ref/network/v2/#remove-interface-from-router Remove router interface states: - This operation deletes an internal router interface, which detaches a subnet from the router. If this subnet ID is the last subnet on the port, this operation deletes the port itself. Workaround: Look for the unassigned port and delete it, then remove the network.
Created attachment 1377001 [details] ovirt-provider-ovn.log
Verified on: RHV 4.2.2.1-0.1.el7
This bugzilla is included in oVirt 4.2.2 release, published on March 28th 2018. Since the problem described in this bug report should be resolved in oVirt 4.2.2 release, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report.