fix missing shared_block for PF interface
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
os-net-config |
Fix Released
|
Undecided
|
waleed mousa |
Bug Description
fix missing shared_block for PF interface
this patch handels 2 cases of missing shared_block for PF interface:
* First os-net-config run / Post deployment
* Reboot compute node
in case of first os-net-config we restart openvswitch and ifdown ifup
any PF interface, this will make openvswitch recreate PF shared_block
in case of reboot comput node we just need to make sure PF interface
is up.
issue example PF's p6p1, p6p2
# tc q | grep ingress
qdisc ingress ffff: dev em1 parent ffff:fff1
qdisc ingress ffff: dev p6p1_49 parent ffff:fff1
qdisc ingress ffff: dev p6p1_57 parent ffff:fff1
qdisc ingress ffff: dev bond0 parent ffff:fff1 ingress_block 141
qdisc ingress ffff: dev p6p2_9 parent ffff:fff1
qdisc ingress ffff: dev p6p2_45 parent ffff:fff1
qdisc ingress ffff: dev vxlan_sys_4789 parent ffff:fff1
missing:
qdisc ingress ffff: dev p6p1 parent ffff:fff1 ingress_block 141
qdisc ingress ffff: dev p6p2 parent ffff:fff1 ingress_block 141
Changed in os-net-config: | |
assignee: | nobody → Noam Angel (noama) |
status: | New → In Progress |
Changed in os-net-config: | |
assignee: | Noam Angel (noama) → waleed mousa (waleedm) |
Reviewed: https:/ /review. opendev. org/670740 /git.openstack. org/cgit/ openstack/ os-net- config/ commit/ ?id=a74bbdd7b01 7fb3bb9faffb424 0efa59cb42c79c
Committed: https:/
Submitter: Zuul
Branch: master
commit a74bbdd7b017fb3 bb9faffb4240efa 59cb42c79c
Author: Moshe Levi <email address hidden>
Date: Mon Jul 15 00:26:02 2019 +0300
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: I2468866629d95d c9f088985d57fbf 70263253235
Closes-Bug: #1836581