Question about host connection.yml


I have a simple app which allows submit a job to Slurm. After job starts running I see that I can ssh to the host where it’s running. However if I have infiniband connection on that host the hostname is created with ib in the hostname. For example instead of hpc-sky-01 it’s hpc-sky-01-ib. Of course I cannot ssh to this bogus hostname.

My question is how this hostname is being picked up in connection.yml and how I can fix it to be an actual hostname:

host: hpc-sky-01-ib

Thank you

The hostname is set through this configuration set_host. Seems you need to modify the hostname command to get the FQDN.

Perfect, thank you

This command worked for me: hostname -A | awk ‘{print $2}’