Open docbobo opened 7 years ago
@gdeverlant, can you please post the output of ip link
? Thanks.
$ sudo ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 00:1e:06:10:0b:d5 brd ff:ff:ff:ff:ff:ff
3: sit0: <NOARP> mtu 1480 qdisc noop state DOWN mode DEFAULT group default
link/sit 0.0.0.0 brd 0.0.0.0
4: ip6tnl0@NONE: <NOARP> mtu 1452 qdisc noop state DOWN mode DEFAULT group default
link/tunnel6 :: brd ::
5: docker0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default
link/ether 02:42:9a:7b:01:e8 brd ff:ff:ff:ff:ff:ff
15: veth03dda15: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master docker0 state UP mode DEFAULT group default
link/ether 9a:4f:7d:85:e9:d6 brd ff:ff:ff:ff:ff:ff
17: veth41a9632: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master docker0 state UP mode DEFAULT group default
link/ether 2a:92:65:43:b6:04 brd ff:ff:ff:ff:ff:ff
80: ov-001000-xyez7: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UP mode DEFAULT group default
link/ether 22:2f:3a:cd:a9:a1 brd ff:ff:ff:ff:ff:ff
81: vx-001000-xyez7: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue master ov-001000-xyez7 state UNKNOWN mode DEFAULT group default
link/ether 22:2f:3a:cd:a9:a1 brd ff:ff:ff:ff:ff:ff
83: veth78e177e: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue master ov-001000-xyez7 state UP mode DEFAULT group default
link/ether 72:42:ac:24:b3:b7 brd ff:ff:ff:ff:ff:ff
84: docker_gwbridge: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default
link/ether 02:42:2a:47:a8:b2 brd ff:ff:ff:ff:ff:ff
86: veth66029a9: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master docker_gwbridge state UP mode DEFAULT group default
link/ether 7a:e2:58:6d:50:33 brd ff:ff:ff:ff:ff:ff
164: veth6589e47: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue master ov-001000-xyez7 state UP mode DEFAULT group default
link/ether 42:2f:bb:0f:56:5f brd ff:ff:ff:ff:ff:ff
166: vethcba7937: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master docker_gwbridge state UP mode DEFAULT group default
link/ether ca:56:5f:46:fc:30 brd ff:ff:ff:ff:ff:ff
167: ov-001001-wmrr9: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue state UP mode DEFAULT group default
link/ether 4a:cf:51:50:17:d3 brd ff:ff:ff:ff:ff:ff
168: vx-001001-wmrr9: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue master ov-001001-wmrr9 state UNKNOWN mode DEFAULT group default
link/ether 4a:cf:51:50:17:d3 brd ff:ff:ff:ff:ff:ff
170: veth24d8b8b: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1450 qdisc noqueue master ov-001001-wmrr9 state UP mode DEFAULT group default
link/ether f6:0b:57:f0:ab:6d brd ff:ff:ff:ff:ff:ff
I believe this is a bug in device-init
itself. Lines 80, 84, and 167 definitely don't match the regular expression at https://github.com/hypriot/device-init/blob/master/cmd/hostname_set.go#L122.
@StefanScherer ?
Is any solution here ?
From #38: