abhilekhsingh / gc3pie

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

obscure error message when no SSH agent is available #353

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Have no SSH agent in the current environment (e.g., unset SSH_AGENT_SOCK)
2. Start any GC3Pie script, forcing it to use a SSH resource.

What is the expected output? What do you see instead?

I'd expect an error message to the extent that the SSH agent cannot be
contacted so GC3Pie cannot access the resource.

Instead, I get this traceback:

    gc3.gc3libs: DEBUG: Ignored error in submitting task 'GzodsApp.303': AttributeError: Agent instance has no attribute 'conn'
    Traceback (most recent call last):
      File "/opt/gc3pie-2.0/src/gc3libs/core.py", line 944, in progress
        self._core.submit(task)
      File "/opt/gc3pie-2.0/src/gc3libs/core.py", line 163, in submit
        return self.__submit_application(app, resubmit, **extra_args)
      File "/opt/gc3pie-2.0/src/gc3libs/core.py", line 260, in __submit_application
        raise ex
    AttributeError: Agent instance has no attribute 'conn'

Original issue reported on code.google.com by riccardo.murri@gmail.com on 18 Oct 2012 at 10:41

GoogleCodeExporter commented 9 years ago
I can't reproduce the bug, can you please past the relevant part of the config 
file, and check that you don't have any SSH_* variable set? (like SSH_AGENT_PID)

Original comment by arcimbo...@gmail.com on 19 Oct 2012 at 7:52