{"action":"created","issue":{"url":"https://api.github.com/repos/floragunncom/search-guard/issues/113","repository_url":"https://api.github.com/repos/floragunncom/search-guard","labels_url":"https://api.github.com/repos/floragunncom/search-guard/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/floragunncom/search-guard/issues/113/comments","events_url":"https://api.github.com/repos/floragunncom/search-guard/issues/113/events","html_url":"https://github.com/floragunncom/search-guard/issues/113","id":144851103,"number":113,"title":"Config hot reloading not working","user":{"login":"paulheijman","id":16876395,"avatar_url":"https://avatars.githubusercontent.com/u/16876395?v=3","gravatar_id":"","url":"https://api.github.com/users/paulheijman","html_url":"https://github.com/paulheijman","followers_url":"https://api.github.com/users/paulheijman/followers","following_url":"https://api.github.com/users/paulheijman/following{/other_user}","gists_url":"https://api.github.com/users/paulheijman/gists{/gist_id}","starred_url":"https://api.github.com/users/paulheijman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulheijman/subscriptions","organizations_url":"https://api.github.com/users/paulheijman/orgs","repos_url":"https://api.github.com/users/paulheijman/repos","events_url":"https://api.github.com/users/paulheijman/events{/privacy}","received_events_url":"https://api.github.com/users/paulheijman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-31T10:07:14Z","updated_at":"2016-03-31T10:48:02Z","closed_at":null,"body":"Hi,\r\n\r\nI have SG2 2.2.1.0-alpha3 working on a 3 node cluster (ES 2.2.1).\r\nThe problem I have is that the 'Config hot reloading' is not working:\r\n\r\n```shell\r\n# before changing config (correct information)\r\n\r\npheadmin@es:~/Dev/Elastic/lab-ssl/elasticsearch $ curl -sk \"https://es-01.cm.local:9200/_searchguard/authinfo\" -u pheadmin:secret |json_pp\r\n{\r\n   \"user\" : \"User [name=pheadmin, roles=[cmadmin]]\",\r\n   \"peer_certificates\" : \"0\",\r\n   \"principal\" : null,\r\n   \"remote_address\" : \"127.0.0.1:54744\",\r\n   \"sg_roles\" : [\r\n      \"sg_public\",\r\n      \"sg_admin\"\r\n   ]\r\n}\r\n\r\n# add starfleet role in sg_internal_users.yml\r\n# run sgadmin.sh (no errors)\r\n\r\npheadmin@es:~/Dev/Elastic/lab-ssl/elasticsearch $ curl -sk \"https://es-01.cm.local:9200/_searchguard/authinfo\" -u pheadmin:secret |json_pp\r\n{\r\n   \"sg_roles\" : [\r\n      \"sg_public\",\r\n      \"sg_admin\"\r\n   ],\r\n   \"remote_address\" : \"127.0.0.1:54839\",\r\n   \"peer_certificates\" : \"0\",\r\n   \"principal\" : null,\r\n   \"user\" : \"User [name=pheadmin, roles=[cmadmin]]\"\r\n}\r\n\r\n# missing role starfleet\r\n# restart node es-01\r\n\r\npheadmin@es:~/Dev/Elastic/lab-ssl/elasticsearch $ curl -sk \"https://es-01.cm.local:9200/_searchguard/authinfo\" -u pheadmin:secret |json_pp\r\n{\r\n   \"sg_roles\" : [\r\n      \"sg_public\",\r\n      \"sg_role_starfleet_library\",\r\n      \"sg_role_starfleet\",\r\n      \"sg_admin\"\r\n   ],\r\n   \"user\" : \"User [name=pheadmin, roles=[starfleet, cmadmin]]\",\r\n   \"principal\" : null,\r\n   \"peer_certificates\" : \"0\",\r\n   \"remote_address\" : \"127.0.0.1:60921\"\r\n}\r\n\r\n# now starfleet role is showing\r\n# try different node (es-02)\r\n\r\npheadmin@es:~/Dev/Elastic/lab-ssl/elasticsearch $ curl -sk \"https://es-02.cm.local:9201/_searchguard/authinfo\" -u pheadmin:secret |json_pp\r\n{\r\n   \"peer_certificates\" : \"0\",\r\n   \"user\" : \"User [name=pheadmin, roles=[cmadmin]]\",\r\n   \"principal\" : null,\r\n   \"remote_address\" : \"127.0.0.1:60958\",\r\n   \"sg_roles\" : [\r\n      \"sg_public\",\r\n      \"sg_admin\"\r\n   ]\r\n}\r\n\r\n# missing role starfleet\r\n```\r\n\r\nIs there some caching flush or reload command?\r\n\r\nThanks in advance!"},"comment":{"url":"https://api.github.com/repos/floragunncom/search-guard/issues/comments/203875659","html_url":"https://github.com/floragunncom/search-guard/issues/113#issuecomment-203875659","issue_url":"https://api.github.com/repos/floragunncom/search-guard/issues/113","id":203875659,"user":{"login":"floragunncom","id":11678154,"avatar_url":"https://avatars.githubusercontent.com/u/11678154?v=3","gravatar_id":"","url":"https://api.github.com/users/floragunncom","html_url":"https://github.com/floragunncom","followers_url":"https://api.github.com/users/floragunncom/followers","following_url":"https://api.github.com/users/floragunncom/following{/other_user}","gists_url":"https://api.github.com/users/floragunncom/gists{/gist_id}","starred_url":"https://api.github.com/users/floragunncom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/floragunncom/subscriptions","organizations_url":"https://api.github.com/users/floragunncom/orgs","repos_url":"https://api.github.com/users/floragunncom/repos","events_url":"https://api.github.com/users/floragunncom/events{/privacy}","received_events_url":"https://api.github.com/users/floragunncom/received_events","type":"User","site_admin":false},"created_at":"2016-03-31T10:48:02Z","updated_at":"2016-03-31T10:48:02Z","body":"Normally you do not need a manual flush/reload. But spreading the new config within the cluster happens asynchronously you maybe have to wait a few seconds. How long did you wait after running sgadmin.sh?"}}