{"action":"created","issue":{"url":"https://api.github.com/repos/rancher/rancher/issues/2298","labels_url":"https://api.github.com/repos/rancher/rancher/issues/2298/labels{/name}","comments_url":"https://api.github.com/repos/rancher/rancher/issues/2298/comments","events_url":"https://api.github.com/repos/rancher/rancher/issues/2298/events","html_url":"https://github.com/rancher/rancher/issues/2298","id":110750758,"number":2298,"title":"Not able to use rancher-compose.yml generated for service with metadata.","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/kind/bug","name":"kind/bug","color":"fc2929"}],"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/42","html_url":"https://github.com/rancher/rancher/milestones/Milestone%2010/7/2015","labels_url":"https://api.github.com/repos/rancher/rancher/milestones/42/labels","id":1324614,"number":42,"title":"Milestone 10/7/2015","description":"0.41","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":15,"closed_issues":28,"state":"open","created_at":"2015-09-25T22:56:56Z","updated_at":"2015-10-10T01:13:04Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-10-09T23:18:05Z","updated_at":"2015-10-10T03:15:39Z","closed_at":null,"body":"Rancher server version - v0.41.0-rc1\r\nRancher compose version - rancher-compose-v0.4.1-rc2\r\n\r\nFollowing is the  rancher-compose.yml generated for service that was created with metadata - \r\n{\"test1\": {\"name\": \"t1name\", \"value\": \"t1value\"}, \"test2\": {\"name\": \"begin[1,2,3,4]end\"}}\r\n\r\n\r\n```\r\nWEB1:\r\n  metadata:\r\n    test1:\r\n      name: t1name\r\n      value: t1value\r\n    test2:\r\n      name: begin[1,2,3,4]end\r\next1:\r\n  external_ips:\r\n  - 1.1.1.1\r\n  - 2.2.2.2\r\n  metadata:\r\n    test1:\r\n      name: t1name\r\n      value: t1value\r\n    test2:\r\n      name: begin[1,2,3,4]end\r\nlb-1:\r\n  scale: 1\r\n  metadata:\r\n    test1:\r\n      name: t1name\r\n      value: t1value\r\n    test2:\r\n      name: begin[1,2,3,4]end\r\ntest932494:\r\n  scale: 2\r\n  metadata:\r\n    test1:\r\n      name: t1name\r\n      value: t1value\r\n    test2:\r\n      name: begin[1,2,3,4]end\r\n```\r\nWhen using this with rancher-compose , service fails to get created with the following error message:\r\n\r\nERRO[0001] Failed Creating test : json: unsupported type: map[interface {}]interface {} \r\nERRO[0001] Failed to start: test : json: unsupported type: map[interface {}]interface {} \r\nFATA[0001] json: unsupported type: map[interface {}]interface {} \r\n"},"comment":{"url":"https://api.github.com/repos/rancher/rancher/issues/comments/147027688","html_url":"https://github.com/rancher/rancher/issues/2298#issuecomment-147027688","issue_url":"https://api.github.com/repos/rancher/rancher/issues/2298","id":147027688,"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":"2015-10-10T03:15:39Z","updated_at":"2015-10-10T03:15:39Z","body":"Ok, reassigning to rancher-compose for now"}}