{"action":"created","issue":{"url":"https://api.github.com/repos/rancherio/rancher/issues/739","labels_url":"https://api.github.com/repos/rancherio/rancher/issues/739/labels{/name}","comments_url":"https://api.github.com/repos/rancherio/rancher/issues/739/comments","events_url":"https://api.github.com/repos/rancherio/rancher/issues/739/events","html_url":"https://github.com/rancherio/rancher/issues/739","id":74082370,"number":739,"title":"Service Links - When service name are edited, service links does not honor the changed service name.","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"},{"url":"https://api.github.com/repos/rancherio/rancher/labels/status/reopened","name":"status/reopened","color":"C80408"}],"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/4","html_url":"https://github.com/rancherio/rancher/milestones/Release%201.0","labels_url":"https://api.github.com/repos/rancherio/rancher/milestones/4/labels","id":947265,"number":4,"title":"Release 1.0","description":"MVP for Rancher 1.0","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":164,"closed_issues":40,"state":"open","created_at":"2015-01-22T18:32:24Z","updated_at":"2015-06-18T20:28:01Z","due_on":"2015-08-26T07:00:00Z","closed_at":null},"comments":3,"created_at":"2015-05-07T18:29:00Z","updated_at":"2015-06-18T20:33:11Z","closed_at":null,"body":"Version - V0.19.1\r\n\r\nCreate service - test1 with 2 instances.\r\nCreate service - test2 with 3 instances.\r\nLink test2 to test1.\r\n\r\nFrom instances of service test1 , tried to access test2 , using hostname as \"test2\". This redirects request to one of the instances in test2.\r\n\r\nEdit the service name to \"test123\".\r\n\r\nFrom instances of service test1 , tried to access test2 , using hostname as \"test123\".\r\nDNS  resolution for this fails:\r\n\r\nroot@57c8dfddb3b1:/# wget http://test23:80/name.html\r\n--2015-05-07 18:19:17--  http://test23/name.html\r\nResolving test23 (test23)... failed: Name or service not known.\r\nwget: unable to resolve host address `test23'\r\nroot@57c8dfddb3b1:/# wget http://test2:80/name.html\r\n\r\nThe older service name - test2 continues to work.\r\n\r\nExpected Behavior:\r\nDNS resolution for the older service name should stop working and DNS resolution for the current service name should work."},"comment":{"url":"https://api.github.com/repos/rancherio/rancher/issues/comments/113281501","html_url":"https://github.com/rancherio/rancher/issues/739#issuecomment-113281501","issue_url":"https://api.github.com/repos/rancherio/rancher/issues/739","id":113281501,"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-18T20:33:11Z","updated_at":"2015-06-18T20:33:11Z","body":"@sangeethah its because the UI currently sets the link name = service.name behind the scenes. So changing the target service name won't change anything on the dns side. Could you please test this use case using APIs? There is some refactoring planned to be done on the UI side after PR https://github.com/rancherio/cattle/pull/635 gets in. After that, you can test the use case using API as well."}}