UnboundLocalError: local variable 'sftp_client' referenced before assignment

Bug #1178686 reported by Chris Gagnon
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
UTAH
Fix Released
High
Javier Collado

Bug Description

The following error occurs after switching from raring to saucy
http://10.97.2.10:8080/job/openarena-benchmark-ps-intel-4000-he/38/console

2013-05-10 10:02:38,282 rsyslog WARNING: Expected pattern missed, matched future pattern: <_sre.SRE_Match object at 0x2462780>
2013-05-10 10:03:25,886 ssh WARNING: SSH command (utah -f yaml --install-type desktop -r /tmp/master.run -o /var/lib/utah/utah.out) failed with return code: 3
2013-05-10 10:03:25,889 root ERROR: Failed to run test: [Errno 111] Connection refused
Unhandled error in UTAH:
Traceback (most recent call last):
  File "/usr/bin/run_utah_tests.py", line 237, in <module>
    exitstatus = timeout(config.jobtimeout, run_utah_tests)
  File "/usr/lib/python2.7/dist-packages/utah/timeout.py", line 65, in timeout
    return command(*args, **kw)
  File "/usr/bin/run_utah_tests.py", line 226, in run_utah_tests
    exitstatus, locallogs = run_tests(args, _get_machine(args))
  File "/usr/lib/python2.7/dist-packages/utah/run.py", line 271, in run_tests
    _write(machine, args, locallogs, remote_path)
  File "/usr/lib/python2.7/dist-packages/utah/run.py", line 206, in _write
    machine.downloadfiles(report_remote_path, report_local_path)
  File "/usr/lib/python2.7/dist-packages/utah/provisioning/ssh.py", line 261, in downloadfiles
    sftp_client.close()
UnboundLocalError: local variable 'sftp_client' referenced before assignment

Related branches

Revision history for this message
Chris Gagnon (chris.gagnon) wrote :
Andy Doan (doanac)
Changed in utah:
assignee: nobody → Javier Collado (javier.collado)
importance: Undecided → High
Revision history for this message
Paul Larson (pwlars) wrote :

I'm also getting this on the smem job at UnboundLocalError: local variable 'sftp_client' referenced before assignment

Revision history for this message
Paul Larson (pwlars) wrote :
Changed in utah:
status: New → Confirmed
Changed in utah:
status: Confirmed → Triaged
milestone: none → 0.13
Changed in utah:
status: Triaged → In Progress
Andy Doan (doanac)
Changed in utah:
milestone: 0.13 → 0.12.3
Revision history for this message
Andy Doan (doanac) wrote :

I believe this is fixed now:

 http://10.98.0.1:8080/view/Saucy/view/All/job/smem-saucy-desktop-amd64-install-idle-vm/6/console

note - the run fails, but its because of the VM bug with the kernel and not UTAH. I've deployed the update to aldebaran and magners-orchestra.

Changed in utah:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.