Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

Network is not ready when executing run_cmd commands #850

Open
brandhout opened this issue Mar 31, 2022 · 0 comments
Open

Network is not ready when executing run_cmd commands #850

brandhout opened this issue Mar 31, 2022 · 0 comments
Labels
kind/bug Something isn't working

Comments

@brandhout
Copy link

Version (k3OS / kernel)
k3os version v0.22.2-k3s2r0 5.4.0-88-generic

Architecture
x86

Describe the bug
Network is not ready when executing run_cmd commands, I can only run route commands or iptables commands in combination with a sleep.

To Reproduce
Install a fresh k3os machine on kvm or bare metal

run_cmd:

  • "route add default gw 192.168.1.254 eth1"

Or some other route command or iptables

Expected behavior
The route command is added to the system routing table

Actual behavior
route: ioctl 0x890b failed: network unreachable
sleep 5 && route add default gw 192.168.1.254 eth1 works

Additional context
I've got two network interfaces, one connected to the internet (eth1) and one internal network without access to the internet.

@brandhout brandhout added the kind/bug Something isn't working label Mar 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant