2-flp-setup *** The ALICE O²/FLP Suite Setup Tool
version: 0.6.0-7481916
system configuration revision: flp-suite-v0.8.0-2b802d2
ansible 2.9.3
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.5 (default, Aug 7 2019, 00:51:29) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]
I relaunched in debug mode, here is the output:
TASK [control-consul : Check if custom configuration exists in templates] ******
fatal: [myhost -> localhost]: FAILED! => {
"changed": false,
"rc": 127
}
MSG:
MODULE FAILURE
See stdout/stderr for the exact error
MODULE_STDERR:
/var/tmp/sclmm9jsu: line 8: -H: command not found
But I guess that the file is temporary because it does not exist…
By the way, when I launch the program I put the hostname in both --head and --flps.
Should I put localhost instead?
The hostname is fine for installing. The task failing is looking for custom configuration files for Readout or QC in your local machine(the one you triggered the deployment), that’s why it prints [myhost -> localhost].
Is it possible to retry after upgrading the Ansible like this:
No, the problem is with the sudo. You have enabled the devtoolset-7 and there is an issue with the sudo found there. You can verify it by executing
sudo -H -S -n -u root /bin/sh
It should produce the same error with ansible /var/tmp/sclKpdWFR: line 8: -H: command not found.
To fix that you can either disable devtoolset-7 or even better you can export export PATH=/usr/bin:$PATH. It would be better if you add it to your bash profile( otherwise you need to export it every time you open a new shell session).
I see…
Yes, you’re right: if I run sudo with -H option I get the same error.
I do load the devtoolset-7…but only as a user. The problem is that I became root with su instead of su -…and it turns out that it kept my user PATH (which had devtoolset7)
I connected directly as root and it seems to work fine.