balena-io-library / base-images

Balena base images
https://docs.balena.io/reference/base-images/base-images/#balena-base-images
Apache License 2.0
224 stars 85 forks source link

armv7hf-debian: Problem with traffic control command (tc) #624

Open borodiliz opened 4 years ago

borodiliz commented 4 years ago

Hi! I'm trying to emulate network issues with alexei-led/pumba#156 but it seems there is a problem with tc on docker image balenalib/armv7hf-debian

I'm getting the following error:

root@9ba2acaed775:/# tc qdisc add dev eth0 root netem loss 100.00
Unsupported setsockopt level=270 optname=11
Unknown QEMU_IFLA_INFO_KIND ipip
Unknown QEMU_IFLA_INFO_KIND ip6tnl
Cannot talk to rtnetlink: Operation not supported

Any ideas? Thanks in advance

domdion08 commented 4 years ago

Hello,

Having a similar issue here.

tc will show "invalid argument", or "command line is not complete", even though I've tried a dozen of well known and documented variants. Anything after the device name seems to be incorrectly parsed, and I've seen an error message spewing out the value of the SSH_CONNECTION environment variable out of nowhere...

A simple tc qdisc del dev eth0 root will not work. (command line is not complete)

Anyone had luck using tc with balena OS?