{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/consul/issues/1434","labels_url":"https://api.github.com/repos/hashicorp/consul/issues/1434/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/consul/issues/1434/comments","events_url":"https://api.github.com/repos/hashicorp/consul/issues/1434/events","html_url":"https://github.com/hashicorp/consul/issues/1434","id":118045058,"number":1434,"title":"Empty data being returned by consul","user":{"login":"atrbgithub","id":14765982,"avatar_url":"https://avatars.githubusercontent.com/u/14765982?v=3","gravatar_id":"","url":"https://api.github.com/users/atrbgithub","html_url":"https://github.com/atrbgithub","followers_url":"https://api.github.com/users/atrbgithub/followers","following_url":"https://api.github.com/users/atrbgithub/following{/other_user}","gists_url":"https://api.github.com/users/atrbgithub/gists{/gist_id}","starred_url":"https://api.github.com/users/atrbgithub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atrbgithub/subscriptions","organizations_url":"https://api.github.com/users/atrbgithub/orgs","repos_url":"https://api.github.com/users/atrbgithub/repos","events_url":"https://api.github.com/users/atrbgithub/events{/privacy}","received_events_url":"https://api.github.com/users/atrbgithub/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-20T13:44:14Z","updated_at":"2015-11-20T14:09:08Z","closed_at":"2015-11-20T14:09:08Z","body":"Hi There, \r\nWe have a service which is defined with the following config, no health checks, just for autodiscovery:\r\n\r\n```\r\n{\r\n  \"service\": {\r\n    \"name\": \"apachenodes\"\r\n  }\r\n}\r\n```\r\nWe have 8 nodes in this service group. However, when querying consul for this servicegroup, we end up with 3 nodes which don't exist, and are returned with null data:\r\n\r\n```\r\n[{\"Node\":\"\",\"Address\":\"\",\"ServiceID\":\"\",\"ServiceName\":\"\",\"ServiceTags\":null,\"ServiceAddress\":\"\",\"ServicePort\":0},{\"Node\":\"\",\"Address\":\"\",\"ServiceID\":\"\",\"ServiceName\":\"\",\"ServiceTags\":null,\"ServiceAddress\":\"\",\"ServicePort\":0},{\"Node\":\"\",\"Address\":\"\",\"ServiceID\":\"\",\"ServiceName\":\"\",\"ServiceTags\":null,\"ServiceAddress\":\"\",\"ServicePort\":0},{\"Node\":\"apache1\",\"Address\":\"192.168.9.85\",\"ServiceID\":\"apachenodes\",\"ServiceName\":\"apachenodes\",\"ServiceTags\":null,\"ServiceAddress\":\"\",\"ServicePort\":0},{\"Node\":\"apache5\",\"Address\":\"192.168.11.98\",\"ServiceID\":\"apachenodes\",\"ServiceName\":\"apachenodes\",\"ServiceTags\":null,\"ServiceAddress\":\"\",\"ServicePort\":0},{\"Node\":\"apache3\",\"Address\":\"192.168.9.87\",\"ServiceID\":\"apachenodes\",\"ServiceName\":\"apachenodes\",\"ServiceTags\":null,\"ServiceAddress\":\"\",\"ServicePort\":0},{\"Node\":\"apache6\",\"Address\":\"192.168.11.58\",\"ServiceID\":\"apachenodes\",\"ServiceName\":\"apachenodes\",\"ServiceTags\":null,\"ServiceAddress\":\"\",\"ServicePort\":0},{\"Node\":\"apache7\",\"Address\":\"192.168.8.2\",\"ServiceID\":\"apachenodes\",\"ServiceName\":\"apachenodes\",\"ServiceTags\":null,\"ServiceAddress\":\"\",\"ServicePort\":0},{\"Node\":\"apache2\",\"Address\":\"192.168.9.84\",\"ServiceID\":\"apachenodes\",\"ServiceName\":\"apachenodes\",\"ServiceTags\":null,\"ServiceAddress\":\"\",\"ServicePort\":0},{\"Node\":\"apache4\",\"Address\":\"192.168.9.89\",\"ServiceID\":\"apachenodes\",\"ServiceName\":\"apachenodes\",\"ServiceTags\":null,\"ServiceAddress\":\"\",\"ServicePort\":0},{\"Node\":\"apache8\",\"Address\":\"192.168.8.4\",\"ServiceID\":\"apachenodes\",\"ServiceName\":\"apachenodes\",\"ServiceTags\":null,\"ServiceAddress\":\"\",\"ServicePort\":0}]\r\n```\r\nThe endpoint being used for this is 8500/v1/catalog/service/apachenodes\r\n\r\nAlso, within consul-template, when using range service, it means we are seeing 3 blank nodes populating a file, as well as the running 8 nodes. \r\n\r\nIs this a known issue?\r\n\r\nVersion is:\r\n```\r\nConsul v0.5.0\r\nConsul Protocol: 2 (Understands back to: 1)\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/consul/issues/comments/158411242","html_url":"https://github.com/hashicorp/consul/issues/1434#issuecomment-158411242","issue_url":"https://api.github.com/repos/hashicorp/consul/issues/1434","id":158411242,"user":{"login":"atrbgithub","id":14765982,"avatar_url":"https://avatars.githubusercontent.com/u/14765982?v=3","gravatar_id":"","url":"https://api.github.com/users/atrbgithub","html_url":"https://github.com/atrbgithub","followers_url":"https://api.github.com/users/atrbgithub/followers","following_url":"https://api.github.com/users/atrbgithub/following{/other_user}","gists_url":"https://api.github.com/users/atrbgithub/gists{/gist_id}","starred_url":"https://api.github.com/users/atrbgithub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atrbgithub/subscriptions","organizations_url":"https://api.github.com/users/atrbgithub/orgs","repos_url":"https://api.github.com/users/atrbgithub/repos","events_url":"https://api.github.com/users/atrbgithub/events{/privacy}","received_events_url":"https://api.github.com/users/atrbgithub/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T14:09:08Z","updated_at":"2015-11-20T14:09:08Z","body":"Looks like the cluster was in a strange state in one DC, after restarting, all is now fine.... "}}