[ovs-git] [ovn-org/ovn] 4d83a0: northd: Amend RBAC rules for Port_Binding table

Frode Nordahl noreply at github.com
Fri Mar 12 15:27:13 UTC 2021


  Branch: refs/heads/branch-20.03
  Home:   https://github.com/ovn-org/ovn
  Commit: 4d83a056d9bc7b1f64ef26748cd404711209b728
      https://github.com/ovn-org/ovn/commit/4d83a056d9bc7b1f64ef26748cd404711209b728
  Author: Frode Nordahl <frode.nordahl at canonical.com>
  Date:   2021-03-12 (Fri, 12 Mar 2021)

  Changed paths:
    M northd/ovn-northd.c

  Log Message:
  -----------
  northd: Amend RBAC rules for Port_Binding table

When `ovn-controller` claims a virtual lport it will update the
Port_Binding table with which chassis currently has claimed the
port as well as recording information about the virtual parent
lport [0].

When `ovn-controller` claims a lport it will also update the
encap field of the Port_Binding table if set and an update is
needed.

The current RBAC rules does not allow for these updates.

0: https://github.com/ovn-org/ovn/blob/b7b0fbdab03ce8b39d5bdc114876e6b0d0683892/controller/pinctrl.c#L6150
Fixes: 054f4c85c ("Add a new logical switch port type - 'virtual'")
Fixes: 6c8b9a132 (" ovn-controller: Store the local port bindings in the runtime data I-P state")
Reported-At: https://bugs.launchpad.net/ubuntu/+source/ovn/+bug/1917475
Signed-off-by: Frode Nordahl <frode.nordahl at canonical.com>
Signed-off-by: Numan Siddique <numans at ovn.org>

(cherry-picked from master commit 525d78946e6db29430fc2f946b9348eda6356fc6)

(cherry picked from commit 02823c72c141e9983b01d0c5d40b81495b536fd5)




More information about the git mailing list