mbligh | 73c0c8e | 2008-11-23 17:29:14 +0000 | [diff] [blame] | 1 | import traceback |
| 2 | |
| 3 | |
mbligh | ed5a410 | 2007-11-20 00:46:41 +0000 | [diff] [blame] | 4 | def verify(machine): |
mbligh | 5493129 | 2008-11-23 14:35:51 +0000 | [diff] [blame] | 5 | print 'Initializing host ' + machine |
| 6 | host = hosts.create_host(machine, initialize=False, auto_monitor=False) |
mbligh | 73c0c8e | 2008-11-23 17:29:14 +0000 | [diff] [blame] | 7 | try: |
| 8 | host.verify() |
| 9 | job.record('GOOD', None, 'verify', '%s verified successfully' % machine) |
| 10 | except Exception, e: |
mbligh | 73c0c8e | 2008-11-23 17:29:14 +0000 | [diff] [blame] | 11 | msg = 'verify failed on %s: %s\n' % (machine, str(e)) |
mbligh | c8153ee | 2008-11-27 13:31:43 +0000 | [diff] [blame] | 12 | job.record('FAIL', None, 'verify', msg) |
mbligh | 6b0ab08 | 2008-09-30 20:33:29 +0000 | [diff] [blame] | 13 | |
mbligh | ed5a410 | 2007-11-20 00:46:41 +0000 | [diff] [blame] | 14 | |
mbligh | 73c0c8e | 2008-11-23 17:29:14 +0000 | [diff] [blame] | 15 | job.parallel_simple(verify, machines) |