os-net-config/os_net_config
Moshe Levi 519f12b181 fix missing shared_block for PF interface in switchdev bond connected to ovs
When having a deployment with ovs bridge having a linux bond and
the slaves of that bond are in switchdev mode , shared_blocks are
expected to be created for both the bond and the slaves, but because the
slaves have an autoconfig IPv6 so ovs will assume that the slaves are not
managed by it, and so those shared_blocks will be missing for those slaves.

As a workaround for this issue we should handle two cases:
 * First os-net-config run / Post deployment
 * Reboot compute node

For deployment case, we are restarting openvswitch and ifdown ifup
any PF interface, this will make openvswitch recreate PF shared_block

For reboot case, we are disabling ipv6 for PF interfaces and because
the ovs will start after moving to swichdev, so the shared_blocks will
be created.

Also there is no need to ifup the PF interfaces after moving to switchdev
in reboot case as the config scripts will bring them up later

Change-Id: I2468866629d95dc9f088985d57fbf70263253235
Closes-Bug: #1836581
(cherry picked from commit a74bbdd7b0)
2019-08-30 22:51:50 +00:00
..
tests Avoid driverctl run if the driver is already bound 2019-08-22 12:13:04 +00:00
__init__.py ifdown does not work if no ifcfg file exist 2019-07-18 12:40:36 -07:00
cli.py fix missing shared_block for PF interface in switchdev bond connected to ovs 2019-08-30 22:51:50 +00:00
impl_eni.py Continue bringing up interfaces even if one fails 2017-05-30 20:17:21 +00:00
impl_ifcfg.py Fix handling of SR-IOV PF routes 2019-06-18 12:47:40 -07:00
impl_iproute.py Add copyrights to files. 2014-07-07 16:15:53 -04:00
objects.py Add ETHTOOL_OPTS support for LinuxBond class 2019-07-24 10:55:04 -07:00
schema.yaml Add ETHTOOL_OPTS support for LinuxBond class 2019-07-24 10:55:04 -07:00
sriov_config.py fix missing shared_block for PF interface in switchdev bond connected to ovs 2019-08-30 22:51:50 +00:00
utils.py fix missing shared_block for PF interface in switchdev bond connected to ovs 2019-08-30 22:51:50 +00:00
validator.py Removing the warnings generated due to yaml.load() 2019-03-19 04:14:09 +00:00
version.py Move versioning into version.py 2014-09-04 09:59:11 -04:00