jfrog / JFrog-Cloud-Installers

Template to deploy Artifactory Enterprise cluster.
Apache License 2.0
78 stars 138 forks source link

Ansible - second node installation breaks first one in HA #169

Closed proseti closed 2 years ago

proseti commented 2 years ago

Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT

Which installer: Ansible

Which product and version (eg: ansible & collection version - 7.24.2): Latest

Which operating system and version(eg: ubuntu & version - 20.4): Centos 7.9

What happened: I'm installing two nodes in HA. Installing on 2 EC2's in AWS. Have external DB(RDS Postgres) and EFS shared file system mounted for filestore. Have two different trial licenses. Installation of first node finish with succes (all services are up and artifactory is working). When I install second node after that (with same configuration, only license is different) my first node is going down ('node' process is not living). After this installation to make first node work I need to stop artifactory services(kill tomcat and artifactory processes) waiit few seconds when all processes dies and start artifactory service again. After that everything (both nodes) working fine in HA.

What you expected to happen: That second node installation wont broke the first node installation

How to reproduce it (as minimally and precisely as possible): Commands: ansible-galaxy collection install jfrog.platform ansible-playbook -vv $ansible_jfrog_collection_dir/playbook-rt.yaml -i $ansible_jfrog_collection_dir/hosts.ini -e "ansible_python_interpreter=$ansible_python_interpreter xray_enabled=false distribution_enabled=false mc_enabled=false postgres_enabled=false artifactory_db_url=$artifactory_db_url artifactory_ha_enabled=true artifactory_single_license=$artifactory_single_license Replace variables accordingly.

Anything else we need to know:

alexeyd-itsoft commented 2 years ago

Hello,

In ha mode you have to use artifactory_licenses instead of artifactory_single_license