{"action":"closed","issue":{"url":"https://api.github.com/repos/joyent/containerbuddy/issues/89","repository_url":"https://api.github.com/repos/joyent/containerbuddy","labels_url":"https://api.github.com/repos/joyent/containerbuddy/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/joyent/containerbuddy/issues/89/comments","events_url":"https://api.github.com/repos/joyent/containerbuddy/issues/89/events","html_url":"https://github.com/joyent/containerbuddy/issues/89","id":136826925,"number":89,"title":"Consul: Figure out why Consul is registering a Server node rather than the Client node when using Agent API","user":{"login":"justenwalker","id":222027,"avatar_url":"https://avatars.githubusercontent.com/u/222027?v=3","gravatar_id":"","url":"https://api.github.com/users/justenwalker","html_url":"https://github.com/justenwalker","followers_url":"https://api.github.com/users/justenwalker/followers","following_url":"https://api.github.com/users/justenwalker/following{/other_user}","gists_url":"https://api.github.com/users/justenwalker/gists{/gist_id}","starred_url":"https://api.github.com/users/justenwalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justenwalker/subscriptions","organizations_url":"https://api.github.com/users/justenwalker/orgs","repos_url":"https://api.github.com/users/justenwalker/repos","events_url":"https://api.github.com/users/justenwalker/events{/privacy}","received_events_url":"https://api.github.com/users/justenwalker/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-26T22:01:20Z","updated_at":"2016-02-29T15:43:42Z","closed_at":"2016-02-29T15:43:42Z","body":"Update:  I thought this was due to using the Catalog API rather than the Agent API but we are already using the Agent API.  Needs a bit more investigation - perhaps my expectations are wrong.\r\n\r\nThe service definition that I get is:\r\n\r\n```json\r\n{\r\n    \"Node\": \"consul-server1\",\r\n    \"Address\": \"10.111.0.1\",\r\n    \"ServiceID\": \"my-service-8d462d139c39\",\r\n    \"ServiceName\": \"my-service\",\r\n    \"ServiceTags\": [],\r\n    \"ServiceAddress\": \"10.222.0.100\",\r\n    \"ServicePort\": 3000,\r\n    \"ServiceEnableTagOverride\": false,\r\n    \"CreateIndex\": 2403,\r\n    \"ModifyIndex\": 2409\r\n},\r\n```\r\n\r\nWhat I expect to get is:\r\n\r\n```json\r\n{\r\n    \"Node\": \"consul-agent1\",\r\n    \"Address\": \"10.222.1.100\",\r\n    \"ServiceID\": \"my-service-8d462d139c39\",\r\n    \"ServiceName\": \"my-service\",\r\n    \"ServiceTags\": [],\r\n    \"ServiceAddress\": \"10.222.0.100\",\r\n    \"ServicePort\": 3000,\r\n    \"ServiceEnableTagOverride\": false,\r\n    \"CreateIndex\": 2403,\r\n    \"ModifyIndex\": 2409\r\n},\r\n```\r\n"}}