-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 [BUG]: Ensure postgresql storage subdirectory exists
fails if volume
matches current setup
#24
Comments
Maybe using recurse would resolve the issue. - name: Ensure postgresql storage subdirectory exists ansible.builtin.file: path: "{{ postgresql_storage.storage_directory }}" owner: "{{ postgresql.owner }}" group: "{{ postgresql.group }}" state: directory mode: "0700" recurse: true |
With this in my docker-compose volumes:
- ./xnat-data:/storage/xnat error
If I change the volume to volumes:
- ./xnat-data:/storage/xnat then I get past that step |
I think this might be related to another issue you were having with postgres, which was fixed by adding: ${USERNAME} ALL=\(ALL\) NOPASSWD:ALL to your dockerfile. Since this change, I can't replicate the error you've reported here |
That is unrelated |
@p-j-smith spotted that my IP address was wrong for |
Bug Description
With
external_storage_drive: /storage/xnat
When I use this collection. This step fails:
ansible-collection-infra/roles/postgresql/tasks/main.yml
Lines 61 to 67 in 1621fb1
If, like you, I have https://github.com/UCL-MIRSG/ansible-collection-xnat/blob/4b3975734c4736ea9de2950a55037dc411643e30/tests/molecule/rocky9/molecule.yml#L23 of the form
./xnat-data:/storage/xnat
, but works if it is./xnat-data/xnat:/storage/xnat
.When the
mirsg.install_xnat
failed, I got onto thexnat_db
container and wasn't able to make ny file or folder in/storage/xnat
, however I could at the/storage
level. This is likely becausemkdir
isn't recursive, you have to have the-p
flag (@razekmh helped me debug this).Can you look into either fixing this task step or change your https://github.com/UCL-MIRSG/ansible-collection-xnat/blob/main/tests/molecule/rocky9/molecule.yml - not sure how it is working for you currently.
Steps to Reproduce
Acceptance Criteria
Related Work Items
The text was updated successfully, but these errors were encountered: