Skip to content

Commit d2c1177

Browse files
committed
Revert "Always retry mongo-on-update on failure (#320)"
This reverts commit 733b69d.
1 parent 0361535 commit d2c1177

File tree

3 files changed

+1
-13
lines changed

3 files changed

+1
-13
lines changed

CHANGELOG.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ In order to make the upgrade easier, there are a couple of steps that need to be
5151
- "Publish release" pipeline now correctly uses the "Branch to build from" value as the branch to be tagged. Previously it tried tagging "master". "Release tag" is also now used as the release version as is instead of it being read from `package.json`.
5252
- Backup process now doesn't require internet connection to download docker images thus working more reliably when internet connections are unreliable. Previously non-active images were cleaned nightly, now we only do it as part of deployment. [#7896](https://github.com/opencrvs/opencrvs-core/issues/7896)
5353
- We make sure that the automatic cleanup job only runs before deployment (instead of cron schedule cleanup).
54-
- Previously it was possible MongoDB replica set and users were left randomly uninitialised after a deployment. MongoDB initialisation container now retries on failure.
55-
- On some machines 'file' utility was not preinstalled causing provision to fail. We now install the utility if it doesn't exist.
5654

5755
### Infrastructure breaking changes
5856

infrastructure/docker-compose.deploy.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,8 @@ services:
226226
labels:
227227
- traefik.enable=false
228228
replicas: 1
229-
# If this doesn't get run successfully, both the replica set in mongo and
230-
# the user schema remains uninitialized.
231229
restart_policy:
232-
condition: on-failure
233-
delay: 10s
230+
condition: none
234231
environment:
235232
- REPLICAS=1
236233
- MONGODB_ADMIN_USER=${MONGODB_ADMIN_USER}

infrastructure/server-setup/tasks/swap.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@
1414
tags:
1515
- swap.file.permissions
1616

17-
- name: Ensure 'file' utility is installed
18-
ansible.builtin.package:
19-
name: file
20-
state: present
21-
tags:
22-
- swap.file.mkswap
23-
2417
- name: 'Check swap file type'
2518
command: file {{ swap_file_path }}
2619
register: swapfile

0 commit comments

Comments
 (0)