Description of problem:
Since we do not support ovs2ovn migration with iptables_hybrid firewall driver we should block it explicitly in the ovn_migration script.
Version-Release number of selected component (if applicable):
RHOS-16.2-RHEL-8-20211027.n.1
How reproducible:
100%
Steps to Reproduce:
1. Deploy ml2ovs environment with iptables_hybrid firewall driver.
2. Try to run ovs2ovn migration according to the official documentation.
Actual results:
ovn_migration script allows customers to perform ovs2ovn migration on an environment with iptables_hybrid firewall driver. This can lead to the situation where customer receives an unsupported OVN configuration where VMs are connected via linux bridges.
Expected results:
ovn migration script detects existing firewall driver. In case the firewall driver is iptables_hybrid the script prints a message that ovs2ovn migration is not allowed and exits. In case firewall driver is openvswitch the script initiates the ovs2ovn migration as usual.
Additional info:
Verified on puddle RHOS-16.2-RHEL-8-20220513.n.2 which uses python3-networking-ovn-migration-tool-7.4.2-2.20220409154848.el8ost.noarch.rpm.
Verified that it's possible to migrate to ovn from ml2ovs with either iptables_hybrid or openvswitch firewall.