{"action":"created","issue":{"url":"https://api.github.com/repos/kubevirt/kubevirt/issues/845","repository_url":"https://api.github.com/repos/kubevirt/kubevirt","labels_url":"https://api.github.com/repos/kubevirt/kubevirt/issues/845/labels{/name}","comments_url":"https://api.github.com/repos/kubevirt/kubevirt/issues/845/comments","events_url":"https://api.github.com/repos/kubevirt/kubevirt/issues/845/events","html_url":"https://github.com/kubevirt/kubevirt/issues/845","id":308752001,"number":845,"title":"Avoid creating static route to our default gateway","user":{"login":"mlsorensen","id":1047709,"avatar_url":"https://avatars1.githubusercontent.com/u/1047709?v=4","gravatar_id":"","url":"https://api.github.com/users/mlsorensen","html_url":"https://github.com/mlsorensen","followers_url":"https://api.github.com/users/mlsorensen/followers","following_url":"https://api.github.com/users/mlsorensen/following{/other_user}","gists_url":"https://api.github.com/users/mlsorensen/gists{/gist_id}","starred_url":"https://api.github.com/users/mlsorensen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlsorensen/subscriptions","organizations_url":"https://api.github.com/users/mlsorensen/orgs","repos_url":"https://api.github.com/users/mlsorensen/repos","events_url":"https://api.github.com/users/mlsorensen/events{/privacy}","received_events_url":"https://api.github.com/users/mlsorensen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-26T22:05:08Z","updated_at":"2018-03-27T00:17:02Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I may have run into an issue related to [#830](https://github.com/kubevirt/kubevirt/pull/830). It seems I'm getting a static route to my gateway, and no default gateway.\r\n\r\nSince this is merged I'll just create a new issue.\r\n\r\nMy lease looks like this:\r\n\r\n> lease {\r\n>   interface \"eth0\";\r\n>   fixed-address 172.16.52.146;\r\n>   option subnet-mask 255.255.255.255;\r\n>   option routers 169.254.1.1;\r\n>   option dhcp-lease-time 86313600;\r\n>   option dhcp-message-type 5;\r\n>   option domain-name-servers 192.168.0.10;\r\n>   option dhcp-server-identifier 10.11.12.13;\r\n>   option classless-static-routes 32.169.254.1.1 169.254.1.1;\r\n>   renew 3 2019/05/01 23:04:52;\r\n>   rebind 0 2020/08/16 23:48:11;\r\n>   expire 6 2020/12/19 20:48:11;\r\n> }\r\n\r\nAnd results in routing table like this:\r\n\r\n> [root@fedora ~]# ip route show\r\n> 169.254.1.1 via 169.254.1.1 dev eth0 proto static\r\n\r\nAnd I can't get anywhere. Maybe in the \"// Filter out irrelevant routes\" it should skip routes with destination IP of the gateway? Or does that defeat your purpose?\r\n\r\nI ran some debugging and I'm getting a VIF route entry of Src=nil Dst.IP=169.254.1.1/32\r\n\r\nIf I do filter out the Dst == router route I'm back in business:\r\n\r\n> [root@fedora ~]# ip route show\r\n> default via 169.254.1.1 dev eth0"},"comment":{"url":"https://api.github.com/repos/kubevirt/kubevirt/issues/comments/376353696","html_url":"https://github.com/kubevirt/kubevirt/issues/845#issuecomment-376353696","issue_url":"https://api.github.com/repos/kubevirt/kubevirt/issues/845","id":376353696,"user":{"login":"mlsorensen","id":1047709,"avatar_url":"https://avatars1.githubusercontent.com/u/1047709?v=4","gravatar_id":"","url":"https://api.github.com/users/mlsorensen","html_url":"https://github.com/mlsorensen","followers_url":"https://api.github.com/users/mlsorensen/followers","following_url":"https://api.github.com/users/mlsorensen/following{/other_user}","gists_url":"https://api.github.com/users/mlsorensen/gists{/gist_id}","starred_url":"https://api.github.com/users/mlsorensen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlsorensen/subscriptions","organizations_url":"https://api.github.com/users/mlsorensen/orgs","repos_url":"https://api.github.com/users/mlsorensen/repos","events_url":"https://api.github.com/users/mlsorensen/events{/privacy}","received_events_url":"https://api.github.com/users/mlsorensen/received_events","type":"User","site_admin":false},"created_at":"2018-03-27T00:17:02Z","updated_at":"2018-03-27T00:17:02Z","author_association":"CONTRIBUTOR","body":"When the gateway is in my lease file, as well as the classless-static-routes, yes, I don't get a gateway, only the static route. I'm not sure if this is strictly a dhclient behavior when the static route matches the gateway.\r\n\r\nWhen manually adjusting things I also tried your test and noticed this:\r\n\r\n```\r\n[root@fedora ~]# ip route add 169.254.1.1 via 169.254.1.1 dev eth0 proto static\r\nRTNETLINK answers: Network is unreachable\r\n\r\n[root@fedora ~]# ip route show\r\ndefault via 169.254.1.1 dev eth0\r\n```\r\n\r\nSo there may also be something specifically related to the network plugins using link-local to do its thing.\r\n\r\nAt any rate if this route isn't necessary for the previous fix to work then perhaps it's ok to filter it out per pull #846 , as it seems to fix my problem and I'm not sure there is a need to have a static route to reach the default gateway. "}}
{"actor":{"display_login":"mlsorensen"}}