Hi,
I built a custom balena os image because a needed the macvlan support.
The image seems to work fine, it does connect to the dashboard and i’m able to create a macvlan network from command line and attach a container to it.
balena network create -d macvlan --subnet=172.16.86.0/24 --gateway=172.16.86.1 -o parent=eth0 pub_net
On the other hand, when I try to local push a multi container app (local push mode), the macvlan networks gets creates (visible with balena network list
) but it gets removed ‘instantally’ in a loop.
balena cli logs:
[Debug] Sending request to http://192.168.0.103:48484/v2/local/target-state
[Info] Streaming device logs...
[Logs] [5/1/2021, 12:22:38 PM] Removing network 'mymacvlan'
[Logs] [5/1/2021, 12:22:39 PM] Creating network 'mymacvlan'
[Logs] [5/1/2021, 12:22:39 PM] Removing network 'mymacvlan'
[Logs] [5/1/2021, 12:22:40 PM] Creating network 'mymacvlan'
[Logs] [5/1/2021, 12:22:41 PM] Removing network 'mymacvlan'
[Logs] [5/1/2021, 12:22:41 PM] Creating network 'mymacvlan'
[Logs] [5/1/2021, 12:22:42 PM] Removing network 'mymacvlan'
[Logs] [5/1/2021, 12:22:43 PM] Creating network 'mymacvlan'
[Logs] [5/1/2021, 12:22:43 PM] Removing network 'mymacvlan'
[Logs] [5/1/2021, 12:22:44 PM] Creating network 'mymacvlan'
[Logs] [5/1/2021, 12:22:45 PM] Removing network 'mymacvlan'
[Logs] [5/1/2021, 12:22:45 PM] Creating network 'mymacvlan'
balena supervisor logs :
May 01 10:22:38 0cfe6de resin-supervisor[5393]: [api] POST /v2/local/target-state 200 - 222.332 ms
May 01 10:22:38 0cfe6de resin-supervisor[5393]: [info] Applying target state
May 01 10:22:38 0cfe6de resin-supervisor[5393]: [event] Event: Network removal {}
May 01 10:22:39 0cfe6de resin-supervisor[5393]: [event] Event: Network creation {}
May 01 10:22:39 0cfe6de resin-supervisor[5393]: [event] Event: Network removal {}
May 01 10:22:40 0cfe6de resin-supervisor[5393]: [event] Event: Network creation {}
May 01 10:22:41 0cfe6de resin-supervisor[5393]: [event] Event: Network removal {}
May 01 10:22:41 0cfe6de resin-supervisor[5393]: [event] Event: Network creation {}
May 01 10:22:42 0cfe6de resin-supervisor[5393]: [event] Event: Network removal {}
May 01 10:22:43 0cfe6de resin-supervisor[5393]: [event] Event: Network creation {}
May 01 10:22:43 0cfe6de resin-supervisor[5393]: [event] Event: Network removal {}
May 01 10:22:44 0cfe6de resin-supervisor[5393]: [event] Event: Network creation {}
May 01 10:22:45 0cfe6de resin-supervisor[5393]: [event] Event: Network removal {}
May 01 10:22:45 0cfe6de resin-supervisor[5393]: [event] Event: Network creation {}
May 01 10:22:46 0cfe6de resin-supervisor[5393]: [event] Event: Network removal {}
May 01 10:22:47 0cfe6de resin-supervisor[5393]: [event] Event: Network creation {}
May 01 10:22:47 0cfe6de resin-supervisor[5393]: [event] Event: Network removal {}
May 01 10:22:48 0cfe6de resin-supervisor[5393]: [event] Event: Network creation {}
May 01 10:22:49 0cfe6de resin-supervisor[5393]: [event] Event: Network removal {}
May 01 10:22:49 0cfe6de resin-supervisor[5393]: [event] Event: Network creation {}
May 01 10:22:50 0cfe6de resin-supervisor[5393]: [event] Event: Network removal {}
May 01 10:22:50 0cfe6de resin-supervisor[5393]: [event] Event: Network creation {}
May 01 10:22:51 0cfe6de resin-supervisor[5393]: [event] Event: Network removal {}
May 01 10:22:52 0cfe6de resin-supervisor[5393]: [event] Event: Network creation {}
May 01 10:22:52 0cfe6de resin-supervisor[5393]: [event] Event: Network removal {}
May 01 10:22:53 0cfe6de resin-supervisor[5393]: [event] Event: Network creation {}
May 01 10:22:54 0cfe6de resin-supervisor[5393]: [event] Event: Network removal {}
May 01 10:22:54 0cfe6de resin-supervisor[5393]: [event] Event: Network creation {}
May 01 10:22:55 0cfe6de resin-supervisor[5393]: [event] Event: Network removal {}
May 01 10:22:55 0cfe6de resin-supervisor[5393]: [event] Event: Network creation {}
(tested on v12.5.1 & 12.5.10).
Is there a way to output more debug logs in the supervisor ? What could explain that loop ?
I known i’m kind of broder line because of my custom image but any help would be very much appreciated.
Thanks