Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
cluster: Allow installer to finish with no failures
Browse files Browse the repository at this point in the history
Currently running the installer in cluster setup will trigger 2 errors
becauee it tries to run the db migration more than one time.

The following commit ensures that db migration are just run once from
the pool of node selected.

fixes #6973
  • Loading branch information
Spredzy committed Jun 15, 2020
1 parent 1bec740 commit 01cb5c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES/6973.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Do not run db migration several time if deploying a cluster scenario.
1 change: 1 addition & 0 deletions roles/pulp_database/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
no_log: true
when: pulp_default_admin_password is defined and migrate_auth.changed

run_once: true
become: true
become_user: '{{ pulp_user }}'
environment:
Expand Down

0 comments on commit 01cb5c1

Please sign in to comment.