abhilekhsingh / gc3pie

Automatically exported from code.google.com/p/gc3pie
0 stars 0 forks source link

OpenStack backend attempts connection to invalid host name when VM address is not yet known #457

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Apparently the first connection to a new VM uses the wrong name/IP
(empty string), which should not happen.  Look at the last two lines
of this log file snippet::

    gc3.gc3libs: DEBUG: Creating resource '890b5907-f7c0-4b2d-9d9a-f510b34917e2@hobbes-openstack' defined by: architecture=set(['x86_64']), auth='ssh_gc3user', debug='0', enabled=True, frontend='', ignore_ssh_host_keys=True, keyfile='/home/rmurri/.ssh/id_dsa', max_cores=32, max_cores_per_job=8, max_memory_per_core=Memory(14, unit=GiB), max_walltime=Duration(90, unit=day), name=u'890b5907-f7c0-4b2d-9d9a-f510b34917e2@hobbes-openstack', override='True', security_group_name='gc3pie_ssh', security_group_rules='tcp:22:22:0.0.0.0/0, icmp:-1:-1:0.0.0.0/0', ssh_timeout=7, transport='ssh', type='shellcmd', vm_auth='ssh_gc3user'.
    gc3.gc3libs: INFO: Computational resource '890b5907-f7c0-4b2d-9d9a-f510b34917e2@hobbes-openstack' initialized successfully.
    gc3.gc3libs: DEBUG: Checking auth: SshAuth
    gc3.gc3libs: DEBUG: Opening SshTransport... 
    gc3.gc3libs: INFO: Ignoring ssh host key file.
    gc3.gc3libs: DEBUG: Connecting to host '' as user 'gc3-user' via SSH (timeout 7s)...
    gc3.gc3libs: ERROR: Could not create ssh connection to : gaierror: [Errno -2] Name or service not known

I guess this is an artifact of looking for the private/public IP
address, but the empty string should never be tried.

Original issue reported on code.google.com by riccardo.murri@gmail.com on 13 Aug 2014 at 12:31