Hi team,
I’m trying to deploy a single node cluster via docker-compose. We have deployed several opendistro hosts with tarball, and this is the first one im trying to deploy with docker.
I have volumes for the security yml files, but when I’m trying to deploy de container I have the following error message:
opensearch-node1 | [2022-11-24T08:07:14,487][INFO ][o.o.s.c.ConfigurationRepository] [opensearch-node1] Will not attempt to create index .opendistro_security and default configs if the
y are absent. Use securityadmin to initialize cluster
opensearch-node1 | [2022-11-24T08:07:14,490][INFO ][o.o.s.OpenSearchSecurityPlugin] [opensearch-node1] 0 OpenSearch Security modules loaded so far: []
opensearch-node1 | [2022-11-24T08:07:14,490][INFO ][o.o.s.c.ConfigurationRepository] [opensearch-node1] Background init thread started. Install default config?: false
opensearch-node1 | [2022-11-24T08:07:14,501][ERROR][o.o.s.c.ConfigurationLoaderSecurity7] [opensearch-node1] Failure no such index [.opendistro_security] retrieving configuration for [
INTERNALUSERS, ACTIONGROUPS, CONFIG, ROLES, ROLESMAPPING, TENANTS, NODESDN, WHITELIST, ALLOWLIST, AUDIT] (index=.opendistro_security)
If I execute the securityadmin script the output its correct:
Clusterstate: GREEN
Number of nodes: 1
Number of data nodes: 1
.opendistro_security index does not exists, attempt to create it ... done (0-all replicas)
Populate config from /usr/share/opensearch/plugins/opensearch-security/securityconfig/
Will update '/config' with /usr/share/opensearch/plugins/opensearch-security/securityconfig/config.yml
SUCC: Configuration for 'config' created or updated
Will update '/roles' with /usr/share/opensearch/plugins/opensearch-security/securityconfig/roles.yml
SUCC: Configuration for 'roles' created or updated
Will update '/rolesmapping' with /usr/share/opensearch/plugins/opensearch-security/securityconfig/roles_mapping.yml
SUCC: Configuration for 'rolesmapping' created or updated
Will update '/internalusers' with /usr/share/opensearch/plugins/opensearch-security/securityconfig/internal_users.yml
SUCC: Configuration for 'internalusers' created or updated
Will update '/actiongroups' with /usr/share/opensearch/plugins/opensearch-security/securityconfig/action_groups.yml
SUCC: Configuration for 'actiongroups' created or updated
Will update '/tenants' with /usr/share/opensearch/plugins/opensearch-security/securityconfig/tenants.yml
SUCC: Configuration for 'tenants' created or updated
Will update '/nodesdn' with /usr/share/opensearch/plugins/opensearch-security/securityconfig/nodes_dn.yml
SUCC: Configuration for 'nodesdn' created or updated
Will update '/whitelist' with /usr/share/opensearch/plugins/opensearch-security/securityconfig/whitelist.yml
SUCC: Configuration for 'whitelist' created or updated
SUCC: Expected 10 config types for node {"updated_config_types":["allowlist","tenants","rolesmapping","nodesdn","audit","roles","whitelist","internalusers","actiongroups","config"],"updated_config_size":10,"message":null} is 10 (["allowlist","tenants","rolesmapping","nodesdn","audit","roles","whitelist","internalusers","actiongroups","config"]) due to: null
Done with success
And afterwardsm, If y restart the container of opensearch the same error (The first one) is printed again… What I am missing? Does securityadmin script execute by itself when starting opensearch container? Or may it be a parametrization error in the configuration?
Thanks in advance!!