Hi,
This is a brand new, 2-node installation to evaluate Searchguard.
Despite a successful completion of the sgadmin.sh the cluster can’t initialise:
[root@spoonguard sgconfig-new]# /usr/share/elasticsearch/plugins/search-guard-7/tools/sgadmin.sh -h spoonguard.is.ed.ac.uk -cn spoonguard -cert /root/Enterprise_Services-crt.pem -key /root/Enterprise_Services.key -cacert /etc/elasticsearch/certs/eduni2.pem -nhnv -arc
WARNING: JAVA_HOME not set, will use /usr/bin/java
Search Guard Admin v7
Will connect to spoonguard.is.ed.ac.uk:9300 … done
Connected as CN=Enterprise Services/emailAddress,OU=Information Services,O=University of Edinburgh,L=Edinburgh,ST=Scotland,C=GB
Elasticsearch Version: 7.8.1
Search Guard Version: 7.8.1-43.0.0
Contacting elasticsearch cluster ‘spoonguard’ …
Clustername: spoonguard
Clusterstate: GREEN
Number of nodes: 2
Number of data nodes: 2
searchguard index already exists, so we do not need to create one.
Populate config from /root/sgconfig-new
./sg_action_groups.yml OK
./sg_internal_users.yml OK
./sg_roles.yml OK
./sg_roles_mapping.yml OK
./sg_config.yml OK
./sg_tenants.yml OK
./sg_blocks.yml OK
Will update ‘_doc/config’ with ./sg_config.yml
SUCC: Configuration for ‘config’ created or updated
Will update ‘_doc/roles’ with ./sg_roles.yml
SUCC: Configuration for ‘roles’ created or updated
Will update ‘_doc/rolesmapping’ with ./sg_roles_mapping.yml
SUCC: Configuration for ‘rolesmapping’ created or updated
Will update ‘_doc/internalusers’ with ./sg_internal_users.yml
SUCC: Configuration for ‘internalusers’ created or updated
Will update ‘_doc/actiongroups’ with ./sg_action_groups.yml
SUCC: Configuration for ‘actiongroups’ created or updated
Will update ‘_doc/tenants’ with ./sg_tenants.yml
SUCC: Configuration for ‘tenants’ created or updated
Will update ‘_doc/blocks’ with ./sg_blocks.yml
SUCC: Configuration for ‘blocks’ created or updated
Done with success
With the following appearing in the elasticsearch logs:
[2020-08-05T14:59:19,197][INFO ][c.f.s.c.ConfigurationRepository] [spoonguard] Search Guard License Info: SearchGuardLicense [uid=00000000-0000-0000-0000-000000000000, type=TRIAL, features=[COMPLIANCE], issueDate=2020-08-05, expiryDate=2020-10-04, issuedTo=The world, issuer=floragunn GmbH, startDate=2020-08-05, majorVersion=7, clusterName=*, allowedNodeCount=2147483647, msgs=, expiresInDays=60, isExpired=false, valid=true, action=, prodUsage=Yes, one cluster with all commercial features and unlimited nodes per cluster., clusterService=org.elasticsearch.cluster.service.ClusterService@5243a948, getMsgs()=, getExpiresInDays()=60, isExpired()=false, isValid()=true, getAction()=, getProdUsage()=Yes, one cluster with all commercial features and unlimited nodes per cluster.]
[2020-08-05T14:59:19,197][INFO ][c.f.s.c.ConfigurationRepository] [spoonguard] Search Guard License Type: TRIAL, valid
[2020-08-05T14:59:19,923][ERROR][c.f.s.a.BackendRegistry ] [spoonguard] Not yet initialized (you may need to run sgadmin)
[2020-08-05T14:59:22,425][ERROR][c.f.s.a.BackendRegistry ] [spoonguard] Not yet initialized (you may need to run sgadmin)
No matter how many times I run sgadmin.sh I get the same behaviour.
Is there any way to get the cluster into an initialised state?
searchguard-es.log (24.8 KB) searchguard-elasticsearch.yml (1.5 KB)