Closed ripmars closed 2 years ago
@saravanan30erd any thoughts?
@ripmars did you try to remove the related ansible/opensearch folder in /tmp and rerun it? I think this is caused due existing cache in /tmp, which cause the tarball not redownload. I think @saravanan30erd has a cleanup after the initial run complete, but not if you cancel in the middle of the run and rerun.
Thanks.
@ripmars As @peterzhuamazon said, previous steps wouldn't have properly run. Please provide the complete logs of whole playbook run.
I run this before every reinstallation.
ansible es -i ites -u hcit -m shell -a 'systemctl stop opensearch;rm -f /tmp/opensearch.tar.gz; rm -rf /usr/share/opensearch ; userdel -fr opensearch;rm -f /etc/systemd/system/opensearch.service ; systemctl daemon-reload' -k -K -b --become-method=sudo
and delete the ansible master host's '/tmp/opensearch-nodecert' folder.
@saravanan30erd @peterzhuamazon Hey, my bad .my jvm settings are 4Gb,but I forget to upgrade the os ram to 8Gb. My lab is running now. Thanks for all.
Describe the bug Failed with this playbook when run cluster install.All the opensearch nodes running.
bash /usr/share/opensearch/plugins/opensearch-security/tools/securityadmin.sh -cacert /usr/share/opensearch/config/root-ca.pem -cert /usr/share/opensearch/config/admin.pem -key /usr/share/opensearch/config/admin.key -f /usr/share/opensearch/plugins/opensearch-security/securityconfig/internal_users.yml -nhnv -icl -h 192.168.20.231
To Reproduce Steps to reproduce the behavior:
inventories/opensearch/hosts
file:dashboards1 ansible_host=192.168.20.231 ansible_user=inception ip=192.168.20.231
List all the nodes in the os cluster
[os-cluster] gzites231 gzites232 gzites233 gzites225 gzites226 gzites227 gzites228 gzites229 gzites230
List all the Master eligible nodes under this group
[master] gzites231 gzites232 gzites233
[dashboards] dashboards1
Common opensearch configuration parameters
os_cluster_name: opensearch
opensearch download
os_download_url: http://192.168.20.23:8000/opensearch
opensearch version
os_version: "1.2.3"
opensearch dashboards version
os_dashboards_version: "1.2.0"
Configure hostnames for opensearch nodes
It is required to configure SSL
Example es1.example.com, es2.example.com
domain_name: gzhc.local
os_user: opensearch
Java memory heap values(GB) for opensearch
You can change it based on server specs
xms_value: 4 xmx_value: 4
Cluster type whether its single node or multi-node
cluster_type: multi-node
curl https://192.168.20.231:9200 -k
OpenSearch Security not initialized.