Add more strict checking for veth pair into OVS bridge.
Some time VETH pair may be self-disassempled or broken by 3d party action,
but OVS doesn't know about it and does not remove port with broken interface.
Such ports we can detect by 'ifindex' property. For really existing interfaces
'ifindex' property should be equal to real ifindex. For broken interfaces
'ifindex' mabe have zero or empty value.
This patchset add checking for it.
Also:
* improove logging
* monitor() function was refactored, because previous logic had no full
coverage of failure cases.
* set sysctl -w net.ipv4.ip_nonlocal_bind=1 into network namespace while creating
Reviewed: https:/ /review. openstack. org/465591 /git.openstack. org/cgit/ openstack/ fuel-library/ commit/ ?id=22e7dcb5396 b503636c0a2f4ba 14f100fd2850d1
Committed: https:/
Submitter: Jenkins
Branch: stable/mitaka
commit 22e7dcb5396b503 636c0a2f4ba14f1 00fd2850d1
Author: Sergey Vasilenko <email address hidden>
Date: Wed May 17 17:02:03 2017 +0300
Add more strict checking for veth pair into OVS bridge.
Some time VETH pair may be self-disassempled or broken by 3d party action,
but OVS doesn't know about it and does not remove port with broken interface.
Such ports we can detect by 'ifindex' property. For really existing interfaces
'ifindex' property should be equal to real ifindex. For broken interfaces
'ifindex' mabe have zero or empty value.
This patchset add checking for it.
Also: ip_nonlocal_ bind=1 into network namespace while creating
* improove logging
* monitor() function was refactored, because previous logic had no full
coverage of failure cases.
* set sysctl -w net.ipv4.
Change-Id: I05062f84895e02 0b10a94ac09f857 3598434b0e6
Closes-Bug: #1682835