system-config/playbooks/zuul
Clark Boylan 76baae4e3f Replace testing group vars with host vars for review02
Previously we had a test specific group vars file for the review Ansible
group. This provided junk secrets to our test installations of Gerrit
then we relied on the review02.opendev.org production host vars file to
set values that are public.

Unfortunately, this meant we were using the production heapLimit value
which is far too large for our test instances leading to the occasionaly
failure:

  There is insufficient memory for the Java Runtime Environment to continue.
  Native memory allocation (mmap) failed to map 9596567552 bytes for committing reserved memory.

We cannot set the heapLimit in the group var file because the hostvar
file overrides those values. To fix this we need to replace the test
specific group var contents with a test specific host var file instead.
To avoid repeating ourselves we also create a new review.yaml group_vars
file to capture common settings between testing and prod. Note we should
look at combining this new file with the gerrit.yaml group_vars.

On the testing side of things we set the heapLimit to 6GB, we change the
serverid value to prevent any unexpected notedb confusion, and we remove
replication config.

Change-Id: Id8ec5cae967cc38acf79ecf18d3a0faac3a9c4b3
2021-10-12 09:48:45 -07:00
..
gerrit Update ICLA to reference OpenInfra 2021-10-07 13:17:12 -07:00
infra-puppet-apply Use ensure-virtualenv in legacy puppet jobs 2020-06-15 13:22:02 -05:00
infra-puppet-beaker-rspec Convert ssh keys for ruby net-ssh if necessary 2020-08-19 16:28:08 -07:00
templates Replace testing group vars with host vars for review02 2021-10-12 09:48:45 -07:00
run-base-post.yaml Add ARA artifact 2021-06-02 05:58:11 +10:00
run-base-pre.yaml Stop using backend hostname in zuul testinfra tests 2020-06-10 14:48:40 -07:00
run-base.yaml Replace testing group vars with host vars for review02 2021-10-12 09:48:45 -07:00
run-production-playbook.yaml Continue to add_host here even though we do it in base-jobs 2020-07-24 15:15:52 -07:00
test_gerrit_renames.yaml Improve repo rename functional testing 2021-08-02 14:12:57 -07:00
test_gitea_renames.yaml Improve repo rename functional testing 2021-08-02 14:12:57 -07:00
upgrade-review.yaml gerrit: diff config files on upgrade 2021-10-11 18:29:06 +11:00