Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VETH shows valid_lft forever preferred_lft forever #2

Open
RyanRamchandar opened this issue Apr 18, 2018 · 3 comments
Open

VETH shows valid_lft forever preferred_lft forever #2

RyanRamchandar opened this issue Apr 18, 2018 · 3 comments
Labels

Comments

@RyanRamchandar
Copy link

Some of the veths for my containers return odd results: valid_lft forever preferred_lft forever.
Notably: the containers with these have used the run flag --network=host whereas the other do not.

./dockerveth.sh
CONTAINER ID	VETH       	NAMES
7db0bdb50996	      valid_lft forever preferred_lft forever	plc-stats
1dd028ebd136	vethde39193	test1
94f7fb253c73	      valid_lft forever preferred_lft forever	plc-dash
31b4480a382b	veth12824da	test2
2aa0875d0949	veth9ddf10b	test3
4648d60375e8	veth3e8c797	test4
@naredlaAjay
Copy link

Facing the same issue here

@RyanRamchandar
Copy link
Author

Technically, containers with --network=host have no veth since they use the host interface. So I think the script could be modified to make this clear by showing the host interface name or just a placeholder.

Something like

./dockerveth.sh
CONTAINER ID	INTERFACE  	NAMES
7db0bdb50996	eth0	        plc-stats
1dd028ebd136	vethde39193	test1
94f7fb253c73	eth0	        plc-dash
31b4480a382b	veth12824da	test2
2aa0875d0949	veth9ddf10b	test3
4648d60375e8	veth3e8c797	test4

@micahculpepper
Copy link
Owner

valid_lft forever preferred_lft forever shows up when the script doesn't find a veth like it's expecting. It's a parsing bug. I'll see if I can work out a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants