lasarchiv1 role fails sometimes
Calling host: obelix.las.kit.edu (Fedora 31)
Failing nodes: pepe, faulus
Summary
Running the newly merged code !43 it first failed for some hosts, but not for all.
After having a look at https://github.com/ansible/ansible/issues/29814 and changing remounted
to mounted
again succeeded.
But mounted
initially failed, so maybe it is the bug and we cannot do much about it in our role. From the github-issue, I understand the documentation like it should work with mounted
which is more consistent with the idea of stateless-ness though I read the documentation of the mount
module differently the last time.
Steps to reproduce
Run ansible-playbook --vault-password-file password nfs.yml --skip-tags fonts
.
What is the current bug behavior?
SOMETIMES: Hosts with unmounted /mnt/las-archiv1 and not installed fail. Broken, and correctly mounted /mnt/las-archiv1 machines do not fail.
What is the expected correct behaviour?
ALWAYS: None of the machines fail and all have a mounted /mnt/las-archiv1
Relevant logs and/or screenshots
TASK [lasarchiv : remount lasarchiv1] ********************************************************************************
fatal: [homoeopatix.las.kit.edu]: FAILED! => {"changed": false, "msg": "Error remounting /mnt/las-archiv1: umount: /mnt/las-archiv1: not mounted.\n"}
changed: [methusalix.las.kit.edu]
changed: [majestix.las.kit.edu]
changed: [troubadix.las.kit.edu]
fatal: [faulus.las.kit.edu]: FAILED! => {"changed": false, "msg": "Error remounting /mnt/las-archiv1: umount: /mnt/las-archiv1: no mount point specified.\n"}
fatal: [pepe.las.kit.edu]: FAILED! => {"changed": false, "msg": "Error remounting /mnt/las-archiv1: umount: /mnt/las-archiv1: not mounted.\n"}
changed: [idefix.las.kit.edu]
https://github.com/ansible/ansible/issues/29814
Possible fixes
(If you can, link to the line of code that might be responsible for the problem)
/cc @vn4918