{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/consul/issues/2095","repository_url":"https://api.github.com/repos/hashicorp/consul","labels_url":"https://api.github.com/repos/hashicorp/consul/issues/2095/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/consul/issues/2095/comments","events_url":"https://api.github.com/repos/hashicorp/consul/issues/2095/events","html_url":"https://github.com/hashicorp/consul/issues/2095","id":158610335,"number":2095,"title":"\"acl_datacenter\" configuration is case sensitive, if you set it to uppder case, the ACL won't work","user":{"login":"WUMUXIAN","id":1101630,"avatar_url":"https://avatars.githubusercontent.com/u/1101630?v=3","gravatar_id":"","url":"https://api.github.com/users/WUMUXIAN","html_url":"https://github.com/WUMUXIAN","followers_url":"https://api.github.com/users/WUMUXIAN/followers","following_url":"https://api.github.com/users/WUMUXIAN/following{/other_user}","gists_url":"https://api.github.com/users/WUMUXIAN/gists{/gist_id}","starred_url":"https://api.github.com/users/WUMUXIAN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WUMUXIAN/subscriptions","organizations_url":"https://api.github.com/users/WUMUXIAN/orgs","repos_url":"https://api.github.com/users/WUMUXIAN/repos","events_url":"https://api.github.com/users/WUMUXIAN/events{/privacy}","received_events_url":"https://api.github.com/users/WUMUXIAN/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-06T06:43:49Z","updated_at":"2016-06-06T14:44:09Z","closed_at":"2016-06-06T14:44:09Z","body":"### `consul version` for both Client and Server\r\nClient: `Consul v0.6.4`\r\nServer: `Consul v0.6.4`\r\n\r\n### `consul info` for both Client and Server\r\nClient:\r\n```\r\nagent:\r\n\tcheck_monitors = 1\r\n\tcheck_ttls = 0\r\n\tchecks = 2\r\n\tservices = 2\r\nbuild:\r\n\tprerelease =\r\n\trevision = 26a0ef8c\r\n\tversion = 0.6.4\r\nconsul:\r\n\tknown_servers = 3\r\n\tserver = false\r\nruntime:\r\n\tarch = amd64\r\n\tcpu_count = 1\r\n\tgoroutines = 41\r\n\tmax_procs = 1\r\n\tos = linux\r\n\tversion = go1.6\r\nserf_lan:\r\n\tencrypted = true\r\n\tevent_queue = 0\r\n\tevent_time = 300\r\n\tfailed = 0\r\n\tintent_queue = 0\r\n\tleft = 0\r\n\tmember_time = 129\r\n\tmembers = 8\r\n\tquery_queue = 0\r\n\tquery_time = 11\r\n```\r\n\r\nServer:\r\n```\r\nagent:\r\n\tcheck_monitors = 3\r\n\tcheck_ttls = 0\r\n\tchecks = 4\r\n\tservices = 5\r\nbuild:\r\n\tprerelease =\r\n\trevision = 26a0ef8c\r\n\tversion = 0.6.4\r\nconsul:\r\n\tbootstrap = false\r\n\tknown_datacenters = 1\r\n\tleader = false\r\n\tserver = true\r\nraft:\r\n\tapplied_index = 1005718\r\n\tcommit_index = 1005718\r\n\tfsm_pending = 0\r\n\tlast_contact = 43.997383ms\r\n\tlast_log_index = 1005718\r\n\tlast_log_term = 606\r\n\tlast_snapshot_index = 1001689\r\n\tlast_snapshot_term = 369\r\n\tnum_peers = 2\r\n\tstate = Follower\r\n\tterm = 606\r\nruntime:\r\n\tarch = amd64\r\n\tcpu_count = 1\r\n\tgoroutines = 73\r\n\tmax_procs = 1\r\n\tos = linux\r\n\tversion = go1.6\r\nserf_lan:\r\n\tencrypted = true\r\n\tevent_queue = 0\r\n\tevent_time = 300\r\n\tfailed = 0\r\n\tintent_queue = 0\r\n\tleft = 0\r\n\tmember_time = 129\r\n\tmembers = 8\r\n\tquery_queue = 0\r\n\tquery_time = 11\r\nserf_wan:\r\n\tencrypted = true\r\n\tevent_queue = 0\r\n\tevent_time = 1\r\n\tfailed = 0\r\n\tintent_queue = 0\r\n\tleft = 0\r\n\tmember_time = 1\r\n\tmembers = 1\r\n\tquery_queue = 0\r\n\tquery_time = 1\r\n```\r\n\r\n### Operating system and Environment details\r\nAWS Linux AMI (Based on Centos 6)\r\n\r\n### Description of the Issue (and unexpected/desired result)\r\nIf you set the \"acl_datacenter\" configuration to an upper case string, the ACL function will not work. An error \"Unexpected response code: 500 (No path to datacenter)\" will be through if you try to update ACL.\r\n\r\n### Reproduction steps\r\n1. Set acl_datacenter to an uppder case string, such as \"Test-DataCenter\"\r\n2. Start consul servers and clients.\r\n3. Try to update acl now: \r\n\"consul-cli acl-update --token={{ consul_acl_master_token }} --name=\"Secure Token\" --rule='key:secure:write' --rule='service::write' {{ consul_acl_secure_token }}\"\r\n4. The operation fails with error \"Unexpected response code: 500 (No path to datacenter)\"\r\n\r\n### Verifications\r\nIf I set the acl_datacenter to a lower case string, such as \"test-datacenter\", everything works fine."},"comment":{"url":"https://api.github.com/repos/hashicorp/consul/issues/comments/223980313","html_url":"https://github.com/hashicorp/consul/issues/2095#issuecomment-223980313","issue_url":"https://api.github.com/repos/hashicorp/consul/issues/2095","id":223980313,"user":{"login":"slackpad","id":673509,"avatar_url":"https://avatars.githubusercontent.com/u/673509?v=3","gravatar_id":"","url":"https://api.github.com/users/slackpad","html_url":"https://github.com/slackpad","followers_url":"https://api.github.com/users/slackpad/followers","following_url":"https://api.github.com/users/slackpad/following{/other_user}","gists_url":"https://api.github.com/users/slackpad/gists{/gist_id}","starred_url":"https://api.github.com/users/slackpad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slackpad/subscriptions","organizations_url":"https://api.github.com/users/slackpad/orgs","repos_url":"https://api.github.com/users/slackpad/repos","events_url":"https://api.github.com/users/slackpad/events{/privacy}","received_events_url":"https://api.github.com/users/slackpad/received_events","type":"User","site_admin":false},"created_at":"2016-06-06T14:44:09Z","updated_at":"2016-06-06T14:44:09Z","body":"Hi @WUMUXIAN thanks for the bug report! I'm going to close this as a duplicate of https://github.com/hashicorp/consul/issues/1778 - they have the same root cause."}}
{"actor":{"display_login":"slackpad"}}