stackhpc / ansible-role-openhpc

Ansible role for OpenHPC
Apache License 2.0
45 stars 15 forks source link

sacct_cluster.py needs to be more careful about the location of Python #104

Open verdurin opened 3 years ago

verdurin commented 3 years ago

I found that the task Ensure the cluster exists in the accounting database was hanging.

After I changed the top of the script sacct_cluster.py to be: #!/usr/bin/python3 the task completed.

sjpb commented 2 years ago

Sorry just seen this! Interesting. That file is an ansible module and the current shebang of #!/usr/bin/python is what the documentation specifically calls for:

This does not apply to Ansible modules, which should not be executable and must always use #!/usr/bin/python.

I guess you might need to adjust INTERPRETER_PYTHON possibly?

I have never hit this though so I am puzzled what might have caused it.