You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If your host machine happens to have interfaces named eth0, eth1, etc., when you stop a CORE session you may lose networking. For me, this happened on a remote system, SSH to run the session (Python script), and it is Ubuntu 18.04 upgraded from past Ubuntu version (so it retained "eth0" versus e.g. "ens33" interface naming.)
To Reproduce
Steps to reproduce the behavior:
use the GUI to draw a node linked to a switch
create an eth0 interface on the host system (just to illustrate this bug, if you don't already have an eth0), and assign it an address; ex: ip link add name eth0_0 type veth peer name eth0; ip addr add 192.168.77.1/24 dev eth0
start the session
stop the session
the address from eth0 will be flushed
imagine if you were SSHed into the machine via eth0 now you are locked out
Expected behavior
Class Veth invokes this: self.node.node_net_client.device_flush(self.name).
But that ip addr flush dev eth0 command is run on the host, not within the node namespace. So the host's IP addresses on eth0 are flushed instead.
Desktop (please complete the following information):
Ubuntu 18.04
CORE Version 7.0.0 (also 6.5.0)
Additional context
Using the old core-gui to repro this.
The text was updated successfully, but these errors were encountered:
thanks, determined a path for correction. This would involve leverage a shell to run the command in context of a node for node commands where shell=True.
With this it made me think, in a lot of places we use "sh," which is /bin/sh, which is usually a symlink to a distros shell. This can potentially vary and be different and cause issue.
We should probably standardize on using bash to be safe and update that usage across the boards.
Describe the bug
If your host machine happens to have interfaces named eth0, eth1, etc., when you stop a CORE session you may lose networking. For me, this happened on a remote system, SSH to run the session (Python script), and it is Ubuntu 18.04 upgraded from past Ubuntu version (so it retained "eth0" versus e.g. "ens33" interface naming.)
To Reproduce
Steps to reproduce the behavior:
ip link add name eth0_0 type veth peer name eth0; ip addr add 192.168.77.1/24 dev eth0
Expected behavior
Class Veth invokes this:
self.node.node_net_client.device_flush(self.name)
.But that
ip addr flush dev eth0
command is run on the host, not within the node namespace. So the host's IP addresses on eth0 are flushed instead.Desktop (please complete the following information):
Additional context
Using the old core-gui to repro this.
The text was updated successfully, but these errors were encountered: