stackhpc / ansible-slurm-appliance

A Slurm-based HPC workload management environment, driven by Ansible.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dashboard upload broken if can't reach grafana from ansible control host

jovial opened this issue · comments

TASK [grafana-dashboards : import grafana dashboards] ***********************************************************************************************************************
failed: [wjsohpc2-login-0] (item=/tmp/ansible.z047rw_j/13427.json) => {
    "ansible_loop_var": "item",
    "changed": false,
    "item": "/tmp/ansible.z047rw_j/13427.json"
}

MSG:

error : Unable to switch to organization 1 : {'url': 'http://10.1.0.142:3000/api/user/using/1', 'status': -1, 'msg': 'Request failed: <urlopen error timed out>'}

This happens because we are using delegate_to: localhost. The requirement is that this should work when you need to use a jump host to access grafana.