Comment 5 for bug 1918108

Revision history for this message
Pedro GuimarĂ£es (pguimaraes) wrote :

@lucasagomes, yes, I do believe we also need mcast_flood for provnet ports.

The thing is that provnet ports are treated like any other port by OVN. However, if it receives an IGMP Leave, it will leave the group and that affects all the VMs connected to that specific provider network and group.

The way around I've found to resolve this was to add sth like:

    def create_provnet_port(self, network_id, segment, txn=None):
        tag = segment.get(segment_def.SEGMENTATION_ID, [])
        physnet = segment.get(segment_def.PHYSICAL_NETWORK)
        cmd = self._nb_idl.create_lswitch_port(
            lport_name=utils.ovn_provnet_port_name(segment['id']),
            lswitch_name=utils.ovn_name(network_id),
            addresses=[ovn_const.UNKNOWN_ADDR],
            external_ids={},
            type=ovn_const.LSP_TYPE_LOCALNET,
            tag=tag,
            options={'network_name': physnet, <---------------------------
                     ovn_const.MCAST_FLOOD_PORT: 'true'}) <---------------------------