I'm not sure how to submit this.  How do I get this reviewed adn submitted?

There is a problem we observe with chromeos that a logfile.monitor error
occurs in our jobs.  The problem is illustrated below.  When
list_remote_pythons() is invoked in logfile_monitor.py, it mistakenly grabs
/usr/bin/python-config-2.6 as it's interpreter.  This patch seems a tiny bit
more careful in identifying the proper interpreter.

03/02 14:31:33 INFO |logfile_mo:0061| Launching followfiles on target:
172.31.24.224, /var/tmp/autoserv-krl481, ['/var/log/kern.log']
03/02 14:31:33 DEBUG|  ssh_host:0114| Running (ssh) 'ls /usr/bin/python*'
03/02 14:31:33 DEBUG|     utils:0105| [stdout] /usr/bin/python
03/02 14:31:33 DEBUG|     utils:0105| [stdout] /usr/bin/python-config
03/02 14:31:33 DEBUG|     utils:0105| [stdout] /usr/bin/python-config-2.6
03/02 14:31:33 DEBUG|     utils:0105| [stdout] /usr/bin/python-wrapper
03/02 14:31:33 DEBUG|     utils:0105| [stdout] /usr/bin/python2
03/02 14:31:33 DEBUG|     utils:0105| [stdout] /usr/bin/python2.6
03/02 14:31:33 DEBUG|  ssh_host:0114| Running (ssh) 'mkdir -p /tmp'
03/02 14:31:33 DEBUG|  ssh_host:0114| Running (ssh) 'mktemp -d
/tmp/autoserv-XXXXXX'
03/02 14:31:33 DEBUG|     utils:0105| [stdout] /tmp/autoserv-qAl6yY
03/02 14:31:33 DEBUG|  ssh_host:0114| Running (ssh) 'rsync --version'
03/02 14:31:34 WARNI|abstract_s:0071| rsync not available on remote
host 172.31.24.224 -- disabled
03/02 14:31:34 DEBUG|     utils:0073| Running 'scp -rq -o
ControlPath=/tmp/_autotmp_s5ykjDssh-master/socket -o
StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/fd/17 -P 22
/usr/local/autotest/server/hosts/monitors
'[email protected]:"/tmp/autoserv-qAl6yY"''
03/02 14:31:40 CRITI|logfile_mo:0242| Failed to launch followfiles on
target, aborting logfile monitoring: 172.31.24.224
03/02 14:31:40 INFO |server_job:1053|
WARN    ----    logfile.monitor timestamp=1267569100    localtime=Mar 02
14:31:40        followfiles launch failed
03/


--- ./logfile_monitor.py        2010-01-25 23:45:37.000000000 -0600
+++ /usr/local/autotest/server/hosts/logfile_monitor.py 2010-03-02
16:34:09.000000000 -0600
@@ -37,7 +37,7 @@

 def list_remote_pythons(host):
     """List out installed pythons on host."""
-    result = host.run('ls /usr/bin/python*')
+    result = host.run('ls /usr/bin/python[0-9]*')
     return result.stdout.splitlines()


-- 
Thanks,
Mike
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to