nimbess / nimbess-agent

Nimbess SDN Controller
Apache License 2.0
2 stars 7 forks source link

Error with mac-learning after a delete/create #20

Open trozet opened 4 years ago

trozet commented 4 years ago

Looks like after I delete a pod, then try to add another into the same network I get a pod creation failure:

rpc error: code = Unknown desc = MAC address already exist in backup table

This error code is coming from BESS, triggered by the agent to create the fastpath port pipeline: time="2019-12-05T15:16:27Z" level=debug msg="L2FIB Gate search. Gate: 2, mod: port_8fde98e32dd8cee0fe5de38032e2faf5615139ab5601286802c0edf75b62b034_eth0-fast path_egress, port: port_8fde98e32dd8cee0fe5de38032e2faf5615139ab5601286802c0edf75b62b034_eth0-fastpath_egress" func="github.com/nimbess/nimbess-agent/pkg/age nt.(NimbessAgent).updateFIB" file="/go/src/github.com/nimbess/nimbess-agent/pkg/agent/agent.go:513" time="2019-12-05T15:16:27Z" level=debug msg="Gate 2 found for port {{ port_8fde98e32dd8cee0fe5de38032e2faf5615139ab5601286802c0edf75b62b034_eth0-fastpath_egr ess map[0:0xc000531cc0] map[]} 0xc0003e03f0}" func="github.com/nimbess/nimbess-agent/pkg/agent.(NimbessAgent).updateFIB" file="/go/src/github.com/nimbess/ni mbess-agent/pkg/agent/agent.go:515" time="2019-12-05T15:16:27Z" level=info msg="Creating L2 BESS entry for mac: 56:48:4f:53:54:01, gate: 2" func="github.com/nimbess/nimbess-agent/pkg/drivers/be ss.(Driver).AddEntryL2FIB" file="/go/src/github.com/nimbess/nimbess-agent/pkg/drivers/bess/bess.go:848" time="2019-12-05T15:16:27Z" level=error msg="Failed to add tcam entry, error: MAC address already exist in backup table" func="github.com/nimbess/nimbess-agent/pkg/drivers/bess.(Driver).AddEntryL2FIB" file="/go/src/github.com/nimbess/nimbess-agent/pkg/drivers/bess/bess.go:863" time="2019-12-05T15:16:27Z" level=error msg="Error while creating FastPath virtual interface: MAC address already exist in backup table" func="github.com/nimbess/nimbess-agent/pkg/agent.(*NimbessAgent).Add" file="/go/src/github.com/nimbess/nimbess-agent/pkg/agent/agent.go:386"

trozet commented 4 years ago

https://gist.githubusercontent.com/trozet/b88345a8894f59a79368c1bfbc3fb86f/raw/7018dfaaf63065bb42081792f172ccf8cacfddd5/gistfile1.txt