{"action":"created","issue":{"url":"https://api.github.com/repos/sensu/sensu-docs/issues/1005","repository_url":"https://api.github.com/repos/sensu/sensu-docs","labels_url":"https://api.github.com/repos/sensu/sensu-docs/issues/1005/labels{/name}","comments_url":"https://api.github.com/repos/sensu/sensu-docs/issues/1005/comments","events_url":"https://api.github.com/repos/sensu/sensu-docs/issues/1005/events","html_url":"https://github.com/sensu/sensu-docs/issues/1005","id":389532726,"node_id":"MDU6SXNzdWUzODk1MzI3MjY=","number":1005,"title":"sensuctl can display a cluster member ID in different formats","user":{"login":"nikkiki","id":10634078,"node_id":"MDQ6VXNlcjEwNjM0MDc4","avatar_url":"https://avatars2.githubusercontent.com/u/10634078?v=4","gravatar_id":"","url":"https://api.github.com/users/nikkiki","html_url":"https://github.com/nikkiki","followers_url":"https://api.github.com/users/nikkiki/followers","following_url":"https://api.github.com/users/nikkiki/following{/other_user}","gists_url":"https://api.github.com/users/nikkiki/gists{/gist_id}","starred_url":"https://api.github.com/users/nikkiki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikkiki/subscriptions","organizations_url":"https://api.github.com/users/nikkiki/orgs","repos_url":"https://api.github.com/users/nikkiki/repos","events_url":"https://api.github.com/users/nikkiki/events{/privacy}","received_events_url":"https://api.github.com/users/nikkiki/received_events","type":"User","site_admin":false},"labels":[{"id":908672093,"node_id":"MDU6TGFiZWw5MDg2NzIwOTM=","url":"https://api.github.com/repos/sensu/sensu-docs/labels/5.x","name":"5.x","color":"6fb9c6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-12-10T22:33:37Z","updated_at":"2018-12-14T18:12:17Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"A cluster member can have an ID outside the 64 bit range.\r\n\r\n## Expected Behavior\r\n`http://127.0.0.1:8080/api/core/v2/cluster/members/9882886658148554927?peer-addrs=http://127.0.0.1:2380` **PUT** should update the peer urls of a cluster member with the auto-generated ID of `9882886658148554927`.\r\n\r\n## Current Behavior\r\n400 Bad Request: `bad id (9882886658148554927): strconv.ParseUint: parsing \"9882886658148554927\": value out of range`\r\n\r\n## Possible Solution\r\nInvestigate how etcd generates the ID, or parse the ID using a different approach. https://github.com/sensu/sensu-go/blob/ae978f830e8fcb07da289d36c0d0876777222614/backend/apid/routers/cluster.go#L53\r\n\r\n## Steps to Reproduce (for bugs)\r\n1. **PUT** `http://127.0.0.1:8080/api/core/v2/cluster/members/9882886658148554927?peer-addrs=http://127.0.0.1:2380`\r\n2. Max 64 bit int = `9223372036854775807`\r\n3. Observe `bad id (9882886658148554927): strconv.ParseUint: parsing \"9882886658148554927\": value out of range`\r\n\r\n## Context\r\nCannot update cluster members with ID's larger than `9223372036854775807`. Ran across this issue when pairing with @apaskulin on API requests. The ID given to my default cluster member was `9882886658148554927` and I could not complete the request.\r\n\r\n## Your Environment\r\n* Sensu version used (sensuctl, sensu-backend, and/or sensu-agent): https://github.com/sensu/sensu-go/commit/3fff14d47f401f13e72c37820402c27d9f4c893d\r\n* Installation method (packages, binaries, docker etc.): local binaries\r\n* Operating System and version (e.g. Ubuntu 14.04): MacOS"},"comment":{"url":"https://api.github.com/repos/sensu/sensu-docs/issues/comments/447407378","html_url":"https://github.com/sensu/sensu-docs/issues/1005#issuecomment-447407378","issue_url":"https://api.github.com/repos/sensu/sensu-docs/issues/1005","id":447407378,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzQwNzM3OA==","user":{"login":"cwjohnston","id":148017,"node_id":"MDQ6VXNlcjE0ODAxNw==","avatar_url":"https://avatars1.githubusercontent.com/u/148017?v=4","gravatar_id":"","url":"https://api.github.com/users/cwjohnston","html_url":"https://github.com/cwjohnston","followers_url":"https://api.github.com/users/cwjohnston/followers","following_url":"https://api.github.com/users/cwjohnston/following{/other_user}","gists_url":"https://api.github.com/users/cwjohnston/gists{/gist_id}","starred_url":"https://api.github.com/users/cwjohnston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cwjohnston/subscriptions","organizations_url":"https://api.github.com/users/cwjohnston/orgs","repos_url":"https://api.github.com/users/cwjohnston/repos","events_url":"https://api.github.com/users/cwjohnston/events{/privacy}","received_events_url":"https://api.github.com/users/cwjohnston/received_events","type":"User","site_admin":false},"created_at":"2018-12-14T18:12:17Z","updated_at":"2018-12-14T18:12:17Z","author_association":"MEMBER","body":"I think https://github.com/etcd-io/etcd/blob/master/Documentation/v2/members_api.md may be a useful upstream documentation reference for the issue at hand.\n\nWith regard to Deleting and Modifying an existing cluster member, the doc states:\n\n> The member ID must be a hex-encoded uint64."}}
{"actor":{"display_login":"cwjohnston"}}