{"action":"created","issue":{"url":"https://api.github.com/repos/rancher/rancher/issues/1334","labels_url":"https://api.github.com/repos/rancher/rancher/issues/1334/labels{/name}","comments_url":"https://api.github.com/repos/rancher/rancher/issues/1334/comments","events_url":"https://api.github.com/repos/rancher/rancher/issues/1334/events","html_url":"https://github.com/rancher/rancher/issues/1334","id":91100422,"number":1334,"title":"Not able to start services that has data volumes from other containers.","user":{"login":"sangeethah","id":4266958,"avatar_url":"https://avatars.githubusercontent.com/u/4266958?v=3","gravatar_id":"","url":"https://api.github.com/users/sangeethah","html_url":"https://github.com/sangeethah","followers_url":"https://api.github.com/users/sangeethah/followers","following_url":"https://api.github.com/users/sangeethah/following{/other_user}","gists_url":"https://api.github.com/users/sangeethah/gists{/gist_id}","starred_url":"https://api.github.com/users/sangeethah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sangeethah/subscriptions","organizations_url":"https://api.github.com/users/sangeethah/orgs","repos_url":"https://api.github.com/users/sangeethah/repos","events_url":"https://api.github.com/users/sangeethah/events{/privacy}","received_events_url":"https://api.github.com/users/sangeethah/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rancher/rancher/labels/area/ranchercompose","name":"area/ranchercompose","color":"fbca04"},{"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/status/resolved","name":"status/resolved","color":"0052cc"},{"url":"https://api.github.com/repos/rancher/rancher/labels/status/to-test","name":"status/to-test","color":"66aa66"}],"state":"open","locked":false,"assignee":{"login":"ibuildthecloud","id":1754002,"avatar_url":"https://avatars.githubusercontent.com/u/1754002?v=3","gravatar_id":"","url":"https://api.github.com/users/ibuildthecloud","html_url":"https://github.com/ibuildthecloud","followers_url":"https://api.github.com/users/ibuildthecloud/followers","following_url":"https://api.github.com/users/ibuildthecloud/following{/other_user}","gists_url":"https://api.github.com/users/ibuildthecloud/gists{/gist_id}","starred_url":"https://api.github.com/users/ibuildthecloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibuildthecloud/subscriptions","organizations_url":"https://api.github.com/users/ibuildthecloud/orgs","repos_url":"https://api.github.com/users/ibuildthecloud/repos","events_url":"https://api.github.com/users/ibuildthecloud/events{/privacy}","received_events_url":"https://api.github.com/users/ibuildthecloud/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":192,"closed_issues":105,"state":"open","created_at":"2015-01-22T18:32:24Z","updated_at":"2015-07-16T22:42:56Z","due_on":"2015-08-26T07:00:00Z","closed_at":null},"comments":1,"created_at":"2015-06-25T23:12:17Z","updated_at":"2015-07-17T18:29:16Z","closed_at":null,"body":"Server version - v0.25.0-rc2\r\nRancher compose version - rancher-compose-v0.1.3\r\n\r\nCreate a service that has data volumes from a container  with label con=vol.\r\nService has scheduling rules to start a containers on host that has containers with labels  con=vol.\r\n\r\nI get the following error when trying to start the service:\r\n\r\nroot@sangee01:/home/sangeethahariharan1/rancher-compose-v0.1.3# ./rancher-compose -p testvol create\r\nINFO[0000] Creating environment testvol                 \r\nERRO[0000] Failed to find 736073f0-2bb3-47aa-aa7c-02a90abc806e \r\nINFO[0000] Creating service test41261                   \r\nERRO[0000] Failed to start test41261 : Bad response from [http://104.154.37.50:8080/v1/services], statusCode [422]. Status [422 status code 422]. Body: [{\"id\":\"58318398-d51d-4fe7-b1d1-e30a565697b3\",\"type\":\"error\",\"links\":{},\"actions\":{},\"status\":422,\"code\":\"InvalidReference\",\"message\":null,\"detail\":null,\"fieldName\":\"LaunchConfigName\"}] \r\nERRO[0000] Failed to start: test41261 : Bad response from [http://104.154.37.50:8080/v1/services], statusCode [422]. Status [422 status code 422]. Body: [{\"id\":\"58318398-d51d-4fe7-b1d1-e30a565697b3\",\"type\":\"error\",\"links\":{},\"actions\":{},\"status\":422,\"code\":\"InvalidReference\",\"message\":null,\"detail\":null,\"fieldName\":\"LaunchConfigName\"}] \r\nFATA[0000] Bad response from [http://104.154.37.50:8080/v1/services], statusCode [422]. Status [422 status code 422]. Body: [{\"id\":\"58318398-d51d-4fe7-b1d1-e30a565697b3\",\"type\":\"error\",\"links\":{},\"actions\":{},\"status\":422,\"code\":\"InvalidReference\",\"message\":null,\"detail\":null,\"fieldName\":\"LaunchConfigName\"}] \r\nroot@sangee01:/home/sangeethahariharan1/rancher-compose-v0.1.3# \r\n\r\nymls used:\r\n\r\ndocker-compose.yml \r\n```\r\ntest41261:\r\n  restart: on-failure:10\r\n  labels:\r\n    io.rancher.scheduler.affinity:container_label: c1=vol\r\n  dns:\r\n  - 1.2.3.4\r\n  cpu_shares: 400\r\n  image: ibuildthecloud/helloworld:latest\r\n  hostname: test\r\n  volumes:\r\n  - /test/container:/test/vol1:ro\r\n  stdin_open: true\r\n  mem_limit: 8000000\r\n  cap_add:\r\n  - CHOWN\r\n  dns_search:\r\n  - 1.2.3.4\r\n  environment:\r\n    TEST_FILE: /etc/testpath.conf\r\n  domainname: rancher.io\r\n  cap_drop:\r\n  - KILL\r\n  tty: true\r\n  command:\r\n  - sleep\r\n  - '9000'\r\n  privileged: true\r\n  volumes_from:\r\n  - 736073f0-2bb3-47aa-aa7c-02a90abc806e\r\n  user: root\r\n```\r\n\r\nrancher-compose.yml\r\n``` \r\ntest41261:\r\n  scale: 2\r\n```"},"comment":{"url":"https://api.github.com/repos/rancher/rancher/issues/comments/122366352","html_url":"https://github.com/rancher/rancher/issues/1334#issuecomment-122366352","issue_url":"https://api.github.com/repos/rancher/rancher/issues/1334","id":122366352,"user":{"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},"created_at":"2015-07-17T18:29:16Z","updated_at":"2015-07-17T18:29:16Z","body":"With Rancher-compose v0.2.1, this should work. "}}