{"action":"created","issue":{"url":"https://api.github.com/repos/rancher/rancher/issues/2188","labels_url":"https://api.github.com/repos/rancher/rancher/issues/2188/labels{/name}","comments_url":"https://api.github.com/repos/rancher/rancher/issues/2188/comments","events_url":"https://api.github.com/repos/rancher/rancher/issues/2188/events","html_url":"https://github.com/rancher/rancher/issues/2188","id":109009051,"number":2188,"title":"How upgrade/rollback suppose to work?","user":{"login":"summerQLin","id":12656360,"avatar_url":"https://avatars.githubusercontent.com/u/12656360?v=3","gravatar_id":"","url":"https://api.github.com/users/summerQLin","html_url":"https://github.com/summerQLin","followers_url":"https://api.github.com/users/summerQLin/followers","following_url":"https://api.github.com/users/summerQLin/following{/other_user}","gists_url":"https://api.github.com/users/summerQLin/gists{/gist_id}","starred_url":"https://api.github.com/users/summerQLin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/summerQLin/subscriptions","organizations_url":"https://api.github.com/users/summerQLin/orgs","repos_url":"https://api.github.com/users/summerQLin/repos","events_url":"https://api.github.com/users/summerQLin/events{/privacy}","received_events_url":"https://api.github.com/users/summerQLin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rancher/rancher/labels/area/rancher-compose","name":"area/rancher-compose","color":"fbca04"},{"url":"https://api.github.com/repos/rancher/rancher/labels/kind/question","name":"kind/question","color":"dddddd"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-09-30T03:47:27Z","updated_at":"2015-10-16T14:46:31Z","closed_at":null,"body":"I tried upgrade feature, it's really great. But I wonder how that suppose to work in reality?\r\n\r\nCan you please help to see if I understand right?\r\n\r\n1. write two versions of service in docker-compose.yml, \r\n```\r\nmyservice-v1:\r\n  ...\r\nmyservice-v2:\r\n  ...\r\n```\r\n2. run command line `rancher-compose upgrade myservice-v1 myservice-v2`\r\n3. In case new service fails, to rollback from myservice-v2, run `rancher-compose upgrade myservice-v2 myservice-v1`?\r\n4. finally remove myservice-v1 from docker-compose.yml.\r\n\r\nAre the steps correct?"},"comment":{"url":"https://api.github.com/repos/rancher/rancher/issues/comments/148736628","html_url":"https://github.com/rancher/rancher/issues/2188#issuecomment-148736628","issue_url":"https://api.github.com/repos/rancher/rancher/issues/2188","id":148736628,"user":{"login":"cloudnautique","id":1989084,"avatar_url":"https://avatars.githubusercontent.com/u/1989084?v=3","gravatar_id":"","url":"https://api.github.com/users/cloudnautique","html_url":"https://github.com/cloudnautique","followers_url":"https://api.github.com/users/cloudnautique/followers","following_url":"https://api.github.com/users/cloudnautique/following{/other_user}","gists_url":"https://api.github.com/users/cloudnautique/gists{/gist_id}","starred_url":"https://api.github.com/users/cloudnautique/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cloudnautique/subscriptions","organizations_url":"https://api.github.com/users/cloudnautique/orgs","repos_url":"https://api.github.com/users/cloudnautique/repos","events_url":"https://api.github.com/users/cloudnautique/events{/privacy}","received_events_url":"https://api.github.com/users/cloudnautique/received_events","type":"User","site_admin":false},"created_at":"2015-10-16T14:46:31Z","updated_at":"2015-10-16T14:46:31Z","body":"We are going to be creating in place upgrade scenarios to address these situations. At this point there will be a docker-compose file still required. You could do variable substitution for image tags which should mean your not really having to edit on the fly. \r\n\r\nCurrent thoughts are that It will be more inline with the existing Docker compose --recreate options."}}