{"action":"created","issue":{"url":"https://api.github.com/repos/juju/juju/issues/2549","labels_url":"https://api.github.com/repos/juju/juju/issues/2549/labels{/name}","comments_url":"https://api.github.com/repos/juju/juju/issues/2549/comments","events_url":"https://api.github.com/repos/juju/juju/issues/2549/events","html_url":"https://github.com/juju/juju/pull/2549","id":87350719,"number":2549,"title":"Fixed lp:1348663 - (port to 1.25) ensure NICs are brought down to trigger DHCPRELEASE","user":{"login":"dimitern","id":619986,"avatar_url":"https://avatars.githubusercontent.com/u/619986?v=3","gravatar_id":"","url":"https://api.github.com/users/dimitern","html_url":"https://github.com/dimitern","followers_url":"https://api.github.com/users/dimitern/followers","following_url":"https://api.github.com/users/dimitern/following{/other_user}","gists_url":"https://api.github.com/users/dimitern/gists{/gist_id}","starred_url":"https://api.github.com/users/dimitern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimitern/subscriptions","organizations_url":"https://api.github.com/users/dimitern/orgs","repos_url":"https://api.github.com/users/dimitern/repos","events_url":"https://api.github.com/users/dimitern/events{/privacy}","received_events_url":"https://api.github.com/users/dimitern/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-11T13:39:15Z","updated_at":"2015-06-12T12:30:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/juju/juju/pulls/2549","html_url":"https://github.com/juju/juju/pull/2549","diff_url":"https://github.com/juju/juju/pull/2549.diff","patch_url":"https://github.com/juju/juju/pull/2549.patch"},"body":"Straightforward port of #2548 to master, no other changes.\n\nAdded a new \"juju-clean-shutdown\" init job/service to all machines at\ninitial boot (as an upstart job or systemd service, as needed). This job\nensures that on reboot, shutdown, or halt, \"ifdown -a\" is called to\nbring down (and consequently issue a DHCPRELEASE packet) all machine\nnetwork interfaces.\n\nA drive-by fix in the MAAS provider is included. I've discovered when\nyou bootstrap (or add) a vivid machine on MAAS the script creating\njuju-br0 (calling ifdown PRIMARY_NIC ; ifup juju-br0) is somehow causing\na duplicate route (e.g. 10.14.0.0/24 proto kernel scope link dev et0 src\n10.14.0.100 and 10.14.0.0/24 proto kernel scope link dev juju-br0 src\n10.14.0.100) which effectively makes the bootstrap node inaccessible.\nThe drive-by fix just flushes any routes on the primary NIC before\nbringing up juju-br0 - verified to work by live testing.\n\nLive tested extensively on MAAS and EC2 using different combinations of\nseries (precise, trusty, vivid) and workloads in containers (LXC, KVM).\nEach machine or container was manually stopped or rebooted and\nDHCPRELEASE packets are observed as this happens on the MAAS DHCP server\nside using dhcpdump.\n\n(Review request: http://reviews.vapour.ws/r/1919/)"},"comment":{"url":"https://api.github.com/repos/juju/juju/issues/comments/111476650","html_url":"https://github.com/juju/juju/pull/2549#issuecomment-111476650","issue_url":"https://api.github.com/repos/juju/juju/issues/2549","id":111476650,"user":{"login":"jujubot","id":7779494,"avatar_url":"https://avatars.githubusercontent.com/u/7779494?v=3","gravatar_id":"","url":"https://api.github.com/users/jujubot","html_url":"https://github.com/jujubot","followers_url":"https://api.github.com/users/jujubot/followers","following_url":"https://api.github.com/users/jujubot/following{/other_user}","gists_url":"https://api.github.com/users/jujubot/gists{/gist_id}","starred_url":"https://api.github.com/users/jujubot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jujubot/subscriptions","organizations_url":"https://api.github.com/users/jujubot/orgs","repos_url":"https://api.github.com/users/jujubot/repos","events_url":"https://api.github.com/users/jujubot/events{/privacy}","received_events_url":"https://api.github.com/users/jujubot/received_events","type":"User","site_admin":false},"created_at":"2015-06-12T12:30:44Z","updated_at":"2015-06-12T12:30:44Z","body":"Status: merge request accepted. Url: http://juju-ci.vapour.ws:8080/job/github-merge-juju"}}