Skip to content

Teardown VETH interfaces does not work when one end is in container #1546

Description

@mattiaswal

Current Behavior

Running following PYTHONHASH=0 ./9pm/9pm.py case/use_case/ospf_container/test.py case/misc/operational_all/test.py on my branch refactor-misc-operational cause the operational_all always failing because the veth interfaces from ospf_container has not been removed.

Jun 24 20:17:50 R3 kernel: br1: port 1(veth1b) entered disabled state
Jun 24 20:17:50 R3 kernel: veth0a: renamed from br0
Jun 24 20:17:50 R3 dagger[2649]: Aborting: /run/net/1/action/exit/veth0b/50-exit.ip failed with exitcode 1
Jun 24 20:17:50 R3 dagger[2649]: Abandoned generation 2
Jun 24 20:17:50 R3 confd[2649]: Failed to apply interface configuration
Jun 24 20:17:50 R3 netopeer2-server[3667]: SSH: ssh_socket_exception_callback: Socket exception callback: 1 (0)
Jun 24 20:17:50 R3 netopeer2-server[3667]: SSH key exchange error (Socket error: disconnected).
Jun 24 20:17:52 R3 finit[1]: Stopped zeroconf:br0[4584]
Jun 24 20:18:10 R3 finit[3662]: Starting getty on /dev/hvc0
admin@R3:~$ cat /run/net/1/action/exit/veth0b/50-exit.ip
#!/sbin/ip -batch

link del dev veth0b
admin@R3:~$ cat /run/net/1/action/exit/veth0b/50-exit.ip.log 
Cannot find device "veth0b"
Command failed /run/net/1/action/exit/veth0b/50-exit.ip:3
admin@R3:~$ 

I believe this issue was supposed to be fixed just recently, but failed to find the issue for that.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriagePending investigation & classification (CCB)

Type

No type
No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions