{"action":"created","issue":{"url":"https://api.github.com/repos/rancher/rancher/issues/3896","repository_url":"https://api.github.com/repos/rancher/rancher","labels_url":"https://api.github.com/repos/rancher/rancher/issues/3896/labels{/name}","comments_url":"https://api.github.com/repos/rancher/rancher/issues/3896/comments","events_url":"https://api.github.com/repos/rancher/rancher/issues/3896/events","html_url":"https://github.com/rancher/rancher/issues/3896","id":139703919,"number":3896,"title":"Rancher removing `external_links` from Docker-Compose file ","user":{"login":"gcallsen","id":633975,"avatar_url":"https://avatars.githubusercontent.com/u/633975?v=3","gravatar_id":"","url":"https://api.github.com/users/gcallsen","html_url":"https://github.com/gcallsen","followers_url":"https://api.github.com/users/gcallsen/followers","following_url":"https://api.github.com/users/gcallsen/following{/other_user}","gists_url":"https://api.github.com/users/gcallsen/gists{/gist_id}","starred_url":"https://api.github.com/users/gcallsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gcallsen/subscriptions","organizations_url":"https://api.github.com/users/gcallsen/orgs","repos_url":"https://api.github.com/users/gcallsen/repos","events_url":"https://api.github.com/users/gcallsen/events{/privacy}","received_events_url":"https://api.github.com/users/gcallsen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rancher/rancher/labels/kind/bug","name":"kind/bug","color":"fc2929"},{"url":"https://api.github.com/repos/rancher/rancher/labels/release/v1.0.0","name":"release/v1.0.0","color":"efeaec"}],"state":"open","locked":false,"assignee":{"login":"alena1108","id":1562176,"avatar_url":"https://avatars.githubusercontent.com/u/1562176?v=3","gravatar_id":"","url":"https://api.github.com/users/alena1108","html_url":"https://github.com/alena1108","followers_url":"https://api.github.com/users/alena1108/followers","following_url":"https://api.github.com/users/alena1108/following{/other_user}","gists_url":"https://api.github.com/users/alena1108/gists{/gist_id}","starred_url":"https://api.github.com/users/alena1108/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alena1108/subscriptions","organizations_url":"https://api.github.com/users/alena1108/orgs","repos_url":"https://api.github.com/users/alena1108/repos","events_url":"https://api.github.com/users/alena1108/events{/privacy}","received_events_url":"https://api.github.com/users/alena1108/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/rancher/rancher/milestones/4","html_url":"https://github.com/rancher/rancher/milestones/Release%201.0","labels_url":"https://api.github.com/repos/rancher/rancher/milestones/4/labels","id":947265,"number":4,"title":"Release 1.0","description":"1.0 GA","creator":{"login":"will-chan","id":10134676,"avatar_url":"https://avatars.githubusercontent.com/u/10134676?v=3","gravatar_id":"","url":"https://api.github.com/users/will-chan","html_url":"https://github.com/will-chan","followers_url":"https://api.github.com/users/will-chan/followers","following_url":"https://api.github.com/users/will-chan/following{/other_user}","gists_url":"https://api.github.com/users/will-chan/gists{/gist_id}","starred_url":"https://api.github.com/users/will-chan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/will-chan/subscriptions","organizations_url":"https://api.github.com/users/will-chan/orgs","repos_url":"https://api.github.com/users/will-chan/repos","events_url":"https://api.github.com/users/will-chan/events{/privacy}","received_events_url":"https://api.github.com/users/will-chan/received_events","type":"User","site_admin":false},"open_issues":255,"closed_issues":316,"state":"open","created_at":"2015-01-22T18:32:24Z","updated_at":"2016-03-09T23:29:03Z","due_on":"2016-03-31T07:00:00Z","closed_at":null},"comments":1,"created_at":"2016-03-09T21:21:24Z","updated_at":"2016-03-09T23:36:48Z","closed_at":null,"body":"Rancher Version: v0.59.0\r\n\r\nDocker Version: v1.9.1\r\n\r\nOS: Ubuntu 14.04 LTS\r\n\r\nSteps to Reproduce: \r\nAn application stack (`myapp-workers`) that has one or more services. All of these services have `external_links` to services in another stack (`myapp`). e.g. launch the following into a stack `myapp-workers`:\r\n\r\n    some-worker:\r\n      image: some/image\r\n      ...\r\n      external_links:\r\n        - myapp/rabbitmq:rabbitmq\r\n        - myapp/redis:redis\r\n        - myapp/postgres:postgres\r\n\r\n__Note: all `myapp` services run on \"Host A\" and all `myapp-workers` services run across \"Host B\" and \"Host C\".__\r\n\r\nScenario 1: Create the `myapp-workers` stack for the first time.\r\nOutcome: Looking at the 'Compose YAML' in the rancher interface is 100% correct, and includes the `external_links`.\r\n\r\nScenario 2: Stop all services in the `myapp-workers` stack and then start them again.\r\nOutcome: All works as expected (`external_links` is still in the Compose YAML).\r\n\r\nScenario 3:\r\n  * Stop all services in `myapp-workers` \r\n  * Remove the hosts that were supporting `myapp-workers` (Host B and Host C)\r\n  * Add two new hosts with required labels for scheduling\r\n  * Start the `myapp-workers` services again\r\nOutcome: The `Compose YAML` file is now incorrect and the whole `external_links` block has disappeared. \r\n\r\nResults: See above.\r\n\r\nExpected:\r\nMy use case is: the main application runs on \"Host A\" and workers are only needed periodically, therefore are spot instances that auto-attach to rancher with correct host labels. This means they will come and go.\r\n\r\nThe behavior  outlined above causes me to be unable to simply \"Stop\" and \"Start\" the workers stack, instead I have to delete it and manually re-launch the stack using rancher-compose. Otherwise the external links are not created and the workers are unable to talk with redis/postgres/etc.\r\n\r\nAny guidance is much appreciated!\r\n"},"comment":{"url":"https://api.github.com/repos/rancher/rancher/issues/comments/194568222","html_url":"https://github.com/rancher/rancher/issues/3896#issuecomment-194568222","issue_url":"https://api.github.com/repos/rancher/rancher/issues/3896","id":194568222,"user":{"login":"alena1108","id":1562176,"avatar_url":"https://avatars.githubusercontent.com/u/1562176?v=3","gravatar_id":"","url":"https://api.github.com/users/alena1108","html_url":"https://github.com/alena1108","followers_url":"https://api.github.com/users/alena1108/followers","following_url":"https://api.github.com/users/alena1108/following{/other_user}","gists_url":"https://api.github.com/users/alena1108/gists{/gist_id}","starred_url":"https://api.github.com/users/alena1108/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alena1108/subscriptions","organizations_url":"https://api.github.com/users/alena1108/orgs","repos_url":"https://api.github.com/users/alena1108/repos","events_url":"https://api.github.com/users/alena1108/events{/privacy}","received_events_url":"https://api.github.com/users/alena1108/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T23:36:48Z","updated_at":"2016-03-09T23:36:48Z","body":"@gcallsen in scenario3, did you stop/start services using UI or rancher-compose?"}}