{"action":"created","issue":{"url":"https://api.github.com/repos/rancher/rancher/issues/438","repository_url":"https://api.github.com/repos/rancher/rancher","labels_url":"https://api.github.com/repos/rancher/rancher/issues/438/labels{/name}","comments_url":"https://api.github.com/repos/rancher/rancher/issues/438/comments","events_url":"https://api.github.com/repos/rancher/rancher/issues/438/events","html_url":"https://github.com/rancher/rancher/issues/438","id":66669865,"number":438,"title":"Move containers between hosts","user":{"login":"ca0abinary","id":2895417,"avatar_url":"https://avatars.githubusercontent.com/u/2895417?v=3","gravatar_id":"","url":"https://api.github.com/users/ca0abinary","html_url":"https://github.com/ca0abinary","followers_url":"https://api.github.com/users/ca0abinary/followers","following_url":"https://api.github.com/users/ca0abinary/following{/other_user}","gists_url":"https://api.github.com/users/ca0abinary/gists{/gist_id}","starred_url":"https://api.github.com/users/ca0abinary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ca0abinary/subscriptions","organizations_url":"https://api.github.com/users/ca0abinary/orgs","repos_url":"https://api.github.com/users/ca0abinary/repos","events_url":"https://api.github.com/users/ca0abinary/events{/privacy}","received_events_url":"https://api.github.com/users/ca0abinary/received_events","type":"User","site_admin":false},"labels":[{"id":203011104,"url":"https://api.github.com/repos/rancher/rancher/labels/area/container","name":"area/container","color":"FBCA04","default":false},{"id":203011096,"url":"https://api.github.com/repos/rancher/rancher/labels/area/host","name":"area/host","color":"FBCA04","default":false},{"id":145695746,"url":"https://api.github.com/repos/rancher/rancher/labels/kind/enhancement","name":"kind/enhancement","color":"84b6eb","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/rancher/rancher/milestones/71","html_url":"https://github.com/rancher/rancher/milestones/Unscheduled","labels_url":"https://api.github.com/repos/rancher/rancher/milestones/71/labels","id":1853807,"number":71,"title":"Unscheduled","description":"This milestone includes bugs we have looked into but have not scheduled into an upcoming release.","creator":{"login":"deniseschannon","id":11410997,"avatar_url":"https://avatars.githubusercontent.com/u/11410997?v=3","gravatar_id":"","url":"https://api.github.com/users/deniseschannon","html_url":"https://github.com/deniseschannon","followers_url":"https://api.github.com/users/deniseschannon/followers","following_url":"https://api.github.com/users/deniseschannon/following{/other_user}","gists_url":"https://api.github.com/users/deniseschannon/gists{/gist_id}","starred_url":"https://api.github.com/users/deniseschannon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deniseschannon/subscriptions","organizations_url":"https://api.github.com/users/deniseschannon/orgs","repos_url":"https://api.github.com/users/deniseschannon/repos","events_url":"https://api.github.com/users/deniseschannon/events{/privacy}","received_events_url":"https://api.github.com/users/deniseschannon/received_events","type":"User","site_admin":false},"open_issues":767,"closed_issues":283,"state":"open","created_at":"2016-06-28T21:41:11Z","updated_at":"2016-11-17T04:21:03Z","due_on":null,"closed_at":null},"comments":17,"created_at":"2015-04-06T18:16:29Z","updated_at":"2016-11-17T19:15:07Z","closed_at":null,"body":"As an administrator I may need to move containers off of an over-provisioned machine so that I can free up resources on that host. I would like the ability to do this via the Rancher UI.\n![image](https://cloud.githubusercontent.com/assets/2895417/7009362/a36b4ebe-dc67-11e4-898d-e57efaab8da0.png)\n"},"comment":{"url":"https://api.github.com/repos/rancher/rancher/issues/comments/261340559","html_url":"https://github.com/rancher/rancher/issues/438#issuecomment-261340559","issue_url":"https://api.github.com/repos/rancher/rancher/issues/438","id":261340559,"user":{"login":"ebr","id":2433541,"avatar_url":"https://avatars.githubusercontent.com/u/2433541?v=3","gravatar_id":"","url":"https://api.github.com/users/ebr","html_url":"https://github.com/ebr","followers_url":"https://api.github.com/users/ebr/followers","following_url":"https://api.github.com/users/ebr/following{/other_user}","gists_url":"https://api.github.com/users/ebr/gists{/gist_id}","starred_url":"https://api.github.com/users/ebr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebr/subscriptions","organizations_url":"https://api.github.com/users/ebr/orgs","repos_url":"https://api.github.com/users/ebr/repos","events_url":"https://api.github.com/users/ebr/events{/privacy}","received_events_url":"https://api.github.com/users/ebr/received_events","type":"User","site_admin":false},"created_at":"2016-11-17T19:15:07Z","updated_at":"2016-11-17T19:15:07Z","body":"My current method of migrating containers when retiring hosts is a bit crude, but works:\r\n- start a new host\r\n- put the \"old\" host into `Inactive` state\r\n- delete containers one by one. this will cause new containers to be started on the \"new\" host.\r\n\r\nI could also delete the host, which would cause all containers to be deleted  simultaneously and started on the new host. I just prefer a slightly more controlled approach.\r\n\r\nI also tried to scale the service up+down after putting host into the Inactive state. This theoretically should work for services that don't rely on running a single container (e.g. for idempotency or whatever other reason). But in practice, it's not reliable, as it sometimes destroys the container on the \"new\" host when scaling down, bringing me back to the starting point. The only reliable (albeit tedious) way to do this so far is what I outlined in the beginning of the comment."}}
{"actor":{"display_login":"ebr"}}