utah_is_done.py failed during psutil import with OSError: [Errno 2] No such file or directory: '/dev/pts/1'

Bug #1207093 reported by Chris Gagnon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
UTAH
New
Undecided
Unassigned

Bug Description

reproducible: no

Description:
utah_is_done.py failed during psutil import with OSError: [Errno 2] No such file or directory: '/dev/pts/1'

The test run finished successfully at the end, but utah returned too soon.

steps:
run job repeated at http://10.97.2.10:8080/job/openarena-benchmark-ps-radeon-hd6870-he-xmir

expected results:
utah returns when test case passed

actual results:
utah_is_done.py failed during psutil import with OSError: [Errno 2] No such file or directory: '/dev/pts/1'

additional info:
this job failed 1 time out of the last 7 test runs. other 4 other systems have also run this same job 8 times without failure today.

Revision history for this message
Chris Gagnon (chris.gagnon) wrote :
Revision history for this message
Chris Gagnon (chris.gagnon) wrote :
Revision history for this message
Chris Gagnon (chris.gagnon) wrote :
Download full text (169.4 KiB)

console log from http://10.97.2.10:8080/job/openarena-benchmark-ps-radeon-hd6870-he-xmir/55/consoleFull

the failure is at 2013-07-31 18:04:20,130 ssh WARNING: SSH command (utah -f yaml -r /tmp/master.run -o /var/lib/utah/utah.out) failed with return code: 3

Building remotely on ps-radeon-hd6870-he
[openarena-benchmark-ps-radeon-hd6870-he-xmir] $ /bin/bash /tmp/hudson8243364441976251472.sh
+ rm -rf ps-qa-tools
+ bzr branch 'lp:~chris.gagnon/ps-qa-tools/gfx-preseed' ps-qa-tools
Branched 144 revisions.
+ ISO=/home/chrisgagnon/saucy-desktop-amd64.iso
+ PRESEED_FILE=ps-qa-tools/preseeds/private-preseed.cfg
+ UTAH_CONFIG='lp:~private-ps-quality-team/ps-qa-tools/phoronix-for-xmir'
+ RETCODE=0
+ cat
+ cat ps-qa-tools/preseeds/private-preseed.cfg
# This is based on the default Utah preseed file
# Additions are specific to get a desktop working and autopilot etc.
# This is the minimal preseed that worked on 8 precise ISOs
# Further version-specific tweaks may be necessary or desirable in the future

d-i debian-installer/locale string en_US.UTF-8
#d-i netcfg/get_hostname string unity-ap
d-i partman-auto/method string regular
#need this for desktop
d-i partman/choose_partition select Finish partitioning and write changes to disk
#need this for cobbler
d-i partman/confirm boolean true
#need this for non-desktop
d-i partman/confirm_nooverwrite boolean true
d-i time/zone string Etc/UTC
d-i passwd/user-fullname string Jenkins
d-i passwd/username string jenkins
d-i passwd/user-password password ubuntu
d-i passwd/user-password-again password ubuntu

# -- Packages etc.
# us.archive.ubuntu.com seems to give us issues sometimes, lets try with just
# archive.ubuntu.com
d-i mirror/country string manual
d-i mirror/http/hostname string archive.ubuntu.com
d-i mirror/http/directory string /ubuntu
# d-i apt-setup/restricted boolean true
d-i apt-setup/universe boolean true

# I hope that this will enable the 'restricted drivers'
#d-i hw-detect/load_firmware boolean true

#need this for non-desktop
d-i finish-install/reboot_in_progress note
# Late commands, auto-login etc.

# For now dist-upgrade to try and ensure staging is in place.
d-i preseed/late_command string \
  echo "[SeatDefaults]" >> /target/etc/lightdm/lightdm.conf.d/utah-autologin.conf;\
  echo "autologin-user=jenkins" >> /target/etc/lightdm/lightdm.conf.d/utah-autologin.conf;\
  echo "jenkins ALL=(ALL) NOPASSWD: ALL" >> /target/etc/sudoers;\
  echo "Defaults always_set_home" >> /target/etc/sudoers;\
  in-target apt-get install -y curl;\
  in-target apt-get install -y openssh-server bzr;\
  in-target curl 10.97.0.1/ps_bzr_setup/setup_bzr.sh -o /tmp/setup_bzr.sh;\
  in-target bash -x /tmp/setup_bzr.sh;\
  sed -i 's/eject -p -m.*/&; [ "$prompt" ] || return 0/' /etc/init.d/casper;
+ run_utah_tests.py -l /var/lib/jenkins/ps-slaves/ps-radeon-hd6870-he/workspace/openarena-benchmark-ps-radeon-hd6870-he-xmir -m physical --name ps-radeon-hd6870-he -i /home/chrisgagnon/saucy-desktop-amd64.iso -p ps-qa-tools/preseeds/private-preseed.cfg master.run
WARNING: xml was already set by /etc/utah/config
WARNING: outputpreseed was already set by /etc/utah/config
WARNING: installtype was already set by /etc/utah/config
<6>J...

Revision history for this message
Andy Doan (doanac) wrote :

The key things to note:

1) this is a test with reboots, so we repeatedly call utah_is_done.py via ssh.
2) debugging this requires looking at the ssh log which isn't included in the build artifacts, but I was able to grab from the jenkins workspace:

013-07-31 18:07:59,449 ssh DEBUG: SSH command (/usr/share/utah/client/utah-done.py) failed with return code: 1
2013-07-31 18:07:59,449 ssh DEBUG: Standard output follows:
2013-07-31 18:07:59,450 ssh DEBUG: Standard error follows:
2013-07-31 18:07:59,450 ssh DEBUG: Traceback (most recent call last):
2013-07-31 18:07:59,450 ssh DEBUG: File "/usr/share/utah/client/utah-done.py", line 20, in <module>
2013-07-31 18:07:59,450 ssh DEBUG: from utah.client.common import (
2013-07-31 18:07:59,450 ssh DEBUG: File "/usr/lib/python2.7/dist-packages/utah/client/common.py", line 38, in <module>
2013-07-31 18:07:59,450 ssh DEBUG: from utah.process import run
2013-07-31 18:07:59,450 ssh DEBUG: File "/usr/lib/python2.7/dist-packages/utah/process.py", line 30, in <module>
2013-07-31 18:07:59,450 ssh DEBUG: import psutil
2013-07-31 18:07:59,450 ssh DEBUG: File "/usr/lib/python2.7/dist-packages/psutil/__init__.py", line 65, in <module>
2013-07-31 18:07:59,450 ssh DEBUG: import psutil._pslinux as _psplatform
2013-07-31 18:07:59,450 ssh DEBUG: File "/usr/lib/python2.7/dist-packages/psutil/_pslinux.py", line 87, in <module>
2013-07-31 18:07:59,451 ssh DEBUG: _TERMINAL_MAP = _psposix._get_terminal_map()
2013-07-31 18:07:59,451 ssh DEBUG: File "/usr/lib/python2.7/dist-packages/psutil/_psposix.py", line 117, in _get_terminal_map
2013-07-31 18:07:59,451 ssh DEBUG: ret[os.stat(name).st_rdev] = name
2013-07-31 18:07:59,451 ssh DEBUG: OSError: [Errno 2] No such file or directory: '/dev/pts/1'

We called utah_is_done.py about 50 times and then for some reason on this one attempt we have a line of code that's simply:

 import psutil

and that fails due to the no /dev/pts/1 error

summary: - UTAH returned with SSH command (utah -f yaml -r /tmp/master.run -o
- /var/lib/utah/utah.out) failed with return code: 3 in the middle of
- running a test case.
+ utah_is_done.py failed during psutil import with OSError: [Errno 2] No
+ such file or directory: '/dev/pts/1'
description: updated
description: updated
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.