Dear Ana:
> I tried using new image, but now I end up with the problem below. I can ssh
> to frontend, though.
> [...]
> TASK [setup]
> *******************************************************************
>
> fatal: [frontend001]: FAILED! => {"changed": false, "failed": true,
> "module_stderr": "Warning: Permanently added '172.16.8.169' (ECDSA) to the
> list of known hosts.\r\n/bin/sh: 1: /usr/bin/python: not found\n",
> "module_stdout": "", "msg": "MODULE FAILURE"}
It looks like you're using Ubuntu 16.04 images, are you?
The official Ubuntu 16.04 do not ship `/usr/bin/python` and also run
some `unattended_upgrade` scripts by default, which does not play well
with Ansible. A little extra config is needed, see:
https://github.com/gc3-uzh-ch/elasticluster/issues/304#issuecomment-252698444
In short, you need to add this to your `[cluster/slurm]` section::
[cluster/slurm]
# ...everything else stays the same...
image_userdata=#!/bin/bash
systemctl stop apt-daily.service
systemctl kill --kill-who=all apt-daily.service
# wait until done before starting other APT tasks
while ! (systemctl list-units --all apt-daily.service | fgrep -q dead)
do
sleep 1;
done
# print state, mainly for debugging
systemctl list-units --all 'apt-daily.*'
# now ensure Ansible can find /usr/bin/python
apt-get install -y python
Warning: you need to keep the indentation!
(For the full story, read:
https://github.com/gc3-uzh-ch/elasticluster/issues/304 )
Ciao,
R
--
Riccardo Murri, Schwerzenbacherstrasse 2, CH-8606 Nänikon, Switzerland
--
You received this message because you are subscribed to the Google Groups
"elasticluster" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.