{"action":"opened","issue":{"url":"https://api.github.com/repos/systemd/systemd/issues/1147","labels_url":"https://api.github.com/repos/systemd/systemd/issues/1147/labels{/name}","comments_url":"https://api.github.com/repos/systemd/systemd/issues/1147/comments","events_url":"https://api.github.com/repos/systemd/systemd/issues/1147/events","html_url":"https://github.com/systemd/systemd/issues/1147","id":104935913,"number":1147,"title":"networkd regression: \"DHCP error: could not get routes: No data available\"","user":{"login":"martinpitt","id":200109,"avatar_url":"https://avatars.githubusercontent.com/u/200109?v=3","gravatar_id":"","url":"https://api.github.com/users/martinpitt","html_url":"https://github.com/martinpitt","followers_url":"https://api.github.com/users/martinpitt/followers","following_url":"https://api.github.com/users/martinpitt/following{/other_user}","gists_url":"https://api.github.com/users/martinpitt/gists{/gist_id}","starred_url":"https://api.github.com/users/martinpitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinpitt/subscriptions","organizations_url":"https://api.github.com/users/martinpitt/orgs","repos_url":"https://api.github.com/users/martinpitt/repos","events_url":"https://api.github.com/users/martinpitt/events{/privacy}","received_events_url":"https://api.github.com/users/martinpitt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-04T17:41:52Z","updated_at":"2015-09-04T17:41:52Z","closed_at":null,"body":"In current trunk, our \"networkd\" integration tests started failing. I have a simple `*.network` file like this:\r\n\r\n```\r\n# cat /run/systemd/network/test_eth42.network\r\n[Match]\r\nName=test_eth42\r\n[Network]\r\nDHCP=yes\r\n```\r\n\r\nwhich is a veth (the other end is called `router_eth42`, and runs `dnsmasq`). With systemd 225 this still works fine, but in current trunk this now gets stuck in \"degraded/configuring\", although it got all the data:\r\n\r\n```\r\n# networkctl status test_eth42\r\n● 16: test_eth42\r\n       Link File: /lib/systemd/network/99-default.link\r\n    Network File: /run/systemd/network/test_eth42.network\r\n            Type: ether\r\n           State: degraded (configuring)\r\n          Driver: veth\r\n      HW Address: 96:fb:e4:d2:fc:de\r\n             MTU: 1500\r\n         Address: 192.168.5.180\r\n                  fe80::94fb:e4ff:fed2:fcde\r\n         Gateway: 192.168.5.1\r\n```\r\n\r\nCorresponding journal log:\r\n\r\n```\r\nSep 04 19:30:44 debian systemd[1]: Started Network Service.\r\nSep 04 19:30:44 debian systemd-networkd[11717]: test_eth42: Gained carrier\r\nSep 04 19:30:44 debian systemd-networkd[11717]: router_eth42: Gained carrier\r\nSep 04 19:30:47 debian systemd-networkd[11717]: test_eth42: DHCPv4 address 192.168.5.180/24 via 192.168.5.1\r\nSep 04 19:30:47 debian systemd-networkd[11717]: test_eth42: DHCP error: could not get routes: No data available\r\nSep 04 19:30:47 debian systemd-networkd[11717]: test_eth42: Configured\r\n```\r\n\r\nThis \"could not get routes: No data available\" seems to be the culprit? The device itself is configured fine:\r\n\r\n```\r\n# ip a show dev test_eth42\r\n16: test_eth42@router_eth42: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000\r\n    link/ether 96:fb:e4:d2:fc:de brd ff:ff:ff:ff:ff:ff\r\n    inet 192.168.5.180/24 brd 192.168.5.255 scope global dynamic test_eth42\r\n       valid_lft 3018sec preferred_lft 3018sec\r\n    inet6 fe80::94fb:e4ff:fed2:fcde/64 scope link \r\n       valid_lft forever preferred_lft forever\r\n\r\n# ip route\r\ndefault via 10.0.2.2 dev eth0 \r\ndefault via 192.168.5.1 dev test_eth42  proto dhcp  src 192.168.5.180  metric 1024 \r\n10.0.2.0/24 dev eth0  proto kernel  scope link  src 10.0.2.15 \r\n192.168.5.0/24 dev router_eth42  proto kernel  scope link  src 192.168.5.1 \r\n192.168.5.0/24 dev test_eth42  proto kernel  scope link  src 192.168.5.180 \r\n192.168.5.1 dev test_eth42  proto dhcp  scope link  src 192.168.5.180  metric 1\r\n```\r\n\r\n(`eth0` is the \"real\" network card)."}}