Hello Kyle, > GC3Pie cannot find the host and I get an error that looks like: > > gc3.gc3libs: ERROR: Ignoring error updating resource 'lenovo': Failed > while connecting to remote host 'lenovo': [Errno 8] nodename nor servname > provided, or not known. >
Indeed this looks like a bug. I have set up an alias `bastion` in my ~/.ssh/config, created a GC3Pie "shellcmd" resource with `frontend=bastion` and `transport=ssh` and then I get this error+traceback from `gservers`: gservers: [2017-03-29 20:46:49] DEBUG : Creating resource 'test' defined by: architecture=set(['x86_64']), auth='ssh_user_rmurri', enabled=True, frontend='bastion', max_cores=42, max_cores_per_job=42, max_memory_per_core=Memory(42, unit=GiB), max_walltime=Duration(42, unit=hour), name='test', override='no', transport='ssh', type='shellcmd'. gservers: [2017-03-29 20:46:49] DEBUG : Using class <class 'gc3libs.backends.shellcmd.ShellcmdLrms'> from module <module 'gc3libs.backends.shellcmd' from '/home/rmurri/gc3/gc3pie/gc3libs/backends/shellcmd.pyc'> to instanciate resources of type shellcmd gservers: [2017-03-29 20:46:49] INFO : Computational resource 'test' initialized successfully. gservers: [2017-03-29 20:46:49] DEBUG : Opening SshTransport... gservers: [2017-03-29 20:46:49] DEBUG : Using no ProxyCommand for SSH connections. gservers: [2017-03-29 20:46:49] DEBUG : Connecting to host 'bastion' (port 22) as user 'rmurri' via SSH (timeout 30s)... gservers: [2017-03-29 20:46:49] ERROR : Could not create ssh connection to bastion: gaierror: [Errno -2] Name or service not known gservers: [2017-03-29 20:46:49] ERROR : Ignoring error updating resource 'test': Failed connecting to remote host 'bastion': [Errno -2] Name or service not known. gservers: [2017-03-29 20:46:49] DEBUG : Got error 'TransportError' in updating resource 'test'; printing full traceback. Traceback (most recent call last): File "/home/rmurri/gc3/gc3pie/gc3libs/core.py", line 831, in update_resources lrms.get_resource_status() File "/home/rmurri/gc3/gc3pie/gc3libs/backends/shellcmd.py", line 700, in get_resource_status self._gather_machine_specs() File "/home/rmurri/gc3/gc3pie/gc3libs/backends/shellcmd.py", line 499, in _gather_machine_specs self.transport.connect() File "/home/rmurri/gc3/gc3pie/gc3libs/backends/transport.py", line 621, in connect .format(hostname=self.remote_frontend, msg=ex)) TransportError: Failed connecting to remote host 'bastion': [Errno -2] Name or service not known It looks as though the front-end name is used literally, without alias expansion. I will check whether this is a bug in GC3Pie's code or Paramiko's. Ciao, R -- You received this message because you are subscribed to the Google Groups "gc3pie" group. To unsubscribe from this group and stop receiving emails from it, send an email to gc3pie+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.