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

Commit

Permalink
Fix pulp_common : Collect static content sporadically failing
Browse files Browse the repository at this point in the history
when using a shared filesystem (.e.g, NFS) for `/var/lib/pulp` by running
it sequentially across multiple Pulp nodes.

fixes: #790
  • Loading branch information
mikedep333 committed Oct 27, 2021
1 parent 6301609 commit 6d8f73e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES/790.bugfix
@@ -0,0 +1 @@
Fix `pulp_common : Collect static content` sporadically failing when using a shared filesystem (.e.g, NFS) for `/var/lib/pulp` by running it sequentially across multiple Pulp nodes.
3 changes: 3 additions & 0 deletions roles/pulp_common/handlers/main.yml
Expand Up @@ -33,6 +33,9 @@

- name: Collect static content
command: "{{ pulp_django_admin_path }} collectstatic --clear --noinput --link {{ pulp_collectstatic_ignore_list }}"
# When run against the same FS, we do not want the multiple nodes'
# commands to conflict with eachother. It sometimes happens.
throttle: 1
register: staticresult
changed_when: "staticresult.stdout is not search('\n0 static files')"
become: true
Expand Down

0 comments on commit 6d8f73e

Please sign in to comment.