Hide Forgot
Description of problem: OVN provider driver removal action does not remove all changes done by the installation and OVN configuration actions. 1. Python compiled file exists in: /usr/lib/python2.7/site-packages/vdsm/tool/ovn_config.pyc This is also relevant to (but not yet tested): /usr/libexec/vdsm/hooks/before_device_create/ovirt_provider_ovn_hook.pyc /usr/libexec/vdsm/hooks/before_nic_hotplug/ovirt_provider_ovn_hook.pyc 2. OVN bridge interface is not removed (created by setup_ovn_controller.sh): ovs-vsctl show output: Bridge br-int fail_mode: secure Port br-int Interface br-int type: internal Port "ovn-9abf38-0" Interface "ovn-9abf38-0" type: geneve options: {csum="true", key=flow, remote_ip="10.35.128.5"} ovs_version: "2.6.90" Version-Release number of selected component (if applicable): ovirt-provider-ovn-driver: 1.0-1.fc24 How reproducible: 100% Steps to Reproduce: 1. Install ovirt-provider-ovn-driver RPM on OVN node. 2. Use vdsm-tool ovn-config {provider_ip} {host_ip} to configure OVN tunnel. 3. Remove ovirt-provider-ovn-driver RPM from OVN node. Actual results: There are leftovers. Expected results: 1. .pyc files should be removed from the installation directories. 2. Bridge interface should be removed. Additional info:
br-int is created by ovn-controller, and I am not sure if it should remove it automatically (as it could provide connectivity to something). pyc files must be collected.
pyc files will be cleaned br-int is the ovn integration bridge. It can be used for more than just the ovirt networking. It should only be removed by the ovn admin.
I tried to verify it on today's build. Directory: /usr/libexec/vdsm/hooks/ovirt-provider-ovn exists on removal.
I verified it on version: ovirt-provider-ovn-driver-1.0-1.20161228093622.git3b3d6e1.fc24.noarch