{"action":"created","issue":{"url":"https://api.github.com/repos/rancherio/rancher/issues/1215","labels_url":"https://api.github.com/repos/rancherio/rancher/issues/1215/labels{/name}","comments_url":"https://api.github.com/repos/rancherio/rancher/issues/1215/comments","events_url":"https://api.github.com/repos/rancherio/rancher/issues/1215/events","html_url":"https://github.com/rancherio/rancher/issues/1215","id":88049643,"number":1215,"title":"When removing one of the existing targets from \"Service Alias\" ,  we see the existing target being added twice.","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/rancherio/rancher/labels/area/service","name":"area/service","color":"FBCA04"},{"url":"https://api.github.com/repos/rancherio/rancher/labels/bug","name":"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/rancherio/rancher/milestones/25","html_url":"https://github.com/rancherio/rancher/milestones/Release%201.0%20Beta","labels_url":"https://api.github.com/repos/rancherio/rancher/milestones/25/labels","id":1134764,"number":25,"title":"Release 1.0 Beta","description":"","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":23,"closed_issues":176,"state":"open","created_at":"2015-05-26T21:14:50Z","updated_at":"2015-06-13T19:22:40Z","due_on":"2015-06-13T07:00:00Z","closed_at":null},"comments":3,"created_at":"2015-06-13T19:05:01Z","updated_at":"2015-06-13T19:49:40Z","closed_at":null,"body":"Server version - V0.24.0-rc3\r\n\r\nSteps to reproduce the problem:\r\nAdd a \"Service Alias\" with 2 targets - test1 and test2.\r\nStart service.\r\n\r\nNow edit the service and remove one of the target - \"test2\"\r\nThis results in \"test2\" being removed , but \"test1\" added twice to the dns.\r\n\r\n![screen shot 2015-06-13 at 12 04 32 pm](https://cloud.githubusercontent.com/assets/4266958/8145637/65732798-11c4-11e5-93df-7010a202948b.png)\r\n\r\n\r\nSent from UI:\r\n{serviceLinks: {test1: \"1s1\"}}\r\n\r\nmysql> select * from service_consume_map where service_id=19;\r\n+----+-------+-------------------+--------------------------------------+-------------+---------+---------------------+---------------------+---------------------+------+------------+---------------------+------------+\r\n| id | name  | kind              | uuid                                 | description | state   | created             | removed             | remove_time         | data | service_id | consumed_service_id | account_id |\r\n+----+-------+-------------------+--------------------------------------+-------------+---------+---------------------+---------------------+---------------------+------+------------+---------------------+------------+\r\n| 17 | NULL  | serviceConsumeMap | 5c035778-bf00-4876-8ad3-cb90f6131297 | NULL        | active  | 2015-06-13 18:54:08 | NULL                | NULL                | {}   |         19 |                   1 |          5 |\r\n| 18 | NULL  | serviceConsumeMap | 2a1a78ad-05ec-47e2-89dd-3044527e54fa | NULL        | removed | 2015-06-13 18:54:08 | 2015-06-13 18:56:22 | 2015-06-13 18:57:22 | {}   |         19 |                   7 |          5 |\r\n| 20 | test1 | serviceConsumeMap | 49f1c5fa-6c16-467e-9222-0b4db2971546 | NULL        | active  | 2015-06-13 18:56:22 | NULL                | NULL                | {}   |         19 |                   1 |          5 |\r\n+----+-------+-------------------+--------------------------------------+-------------+---------+---------------------+---------------------+---------------------+------+------------+---------------------+------------+\r\n3 rows in set (0.00 sec)\r\n\r\nmysql> "},"comment":{"url":"https://api.github.com/repos/rancherio/rancher/issues/comments/111743096","html_url":"https://github.com/rancherio/rancher/issues/1215#issuecomment-111743096","issue_url":"https://api.github.com/repos/rancherio/rancher/issues/1215","id":111743096,"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-06-13T19:49:40Z","updated_at":"2015-06-13T19:49:40Z","body":"@vincent99 happens on edit only - on create serviceIds are being set, which is correct."}}