From d2edb9128dfd9b228040e0f04e66ff571a2a9e12 Mon Sep 17 00:00:00 2001 From: Satoe Imaishi Date: Thu, 19 Oct 2023 11:06:53 -0400 Subject: [PATCH] Do not create symlinks for collectstatic Fixes: #1488 --- CHANGES/1488.bugfix | 1 + roles/pulp_common/handlers/main.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 CHANGES/1488.bugfix diff --git a/CHANGES/1488.bugfix b/CHANGES/1488.bugfix new file mode 100644 index 000000000..1f037d1bc --- /dev/null +++ b/CHANGES/1488.bugfix @@ -0,0 +1 @@ +Copy static files instead of symlink to avoid pulp failing to start due to stale symlinks after upgrade diff --git a/roles/pulp_common/handlers/main.yml b/roles/pulp_common/handlers/main.yml index e1a68fb1d..9a8c0d2ca 100644 --- a/roles/pulp_common/handlers/main.yml +++ b/roles/pulp_common/handlers/main.yml @@ -30,7 +30,7 @@ - pulp_install_selinux_policies|bool or pulp_install_selinux_policies == "auto" - name: Collect static content - command: "{{ pulp_django_admin_path }} collectstatic --clear --noinput --link {{ pulp_collectstatic_ignore_list }}" + command: "{{ pulp_django_admin_path }} collectstatic --clear --noinput {{ 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