strange problem with a parsing error within command module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



So I can reproduce this pretty steadily now and running the shell script outside of func works.

Here is the shell script:

#!/bin/sh
crash /cores/processed/123/vmcore.zcarv033 /cores/processed/123/usr/lib/debug/lib/modules/2.6.9-55.ELsmp/vmlinux -i /cores/processed/123/crash.in -s

The bit of code that runs this shell script

if serverList.has_key(debugKernelArch):
                    # TODO: Randomize server selection
                    casProcessMachine = serverList[debugKernelArch][0]
                    cprint("Machine %s found, processing crash output" % (casProcessMachine,))
                    cmd = os.path.join(self.storagePath,"crash")
                    client = fc.Overlord(casProcessMachine)
                    client_dict = client.command.run(cmd)

Once this runs crash will process the input file which looks like:

[root@test-2 123]# cat crash.in 
bt -a >>/cores/processed/123/crash.out
sys >>/cores/processed/123/crash.out
sys -c >>/cores/processed/123/crash.out
log >>/cores/processed/123/crash.out
mod >>/cores/processed/123/crash.out
exit

Now the traceback that comes up when running all this through func is :

[.cas.] :: Starting job at /cores/processed/123 on file /cores/processed/123/vmcore.zcarv033
[.cas.] :: Corefile prepared, processing /cores/processed/123/vmcore.zcarv033
[.cas.] :: Running timestamp
[.cas.] :: Timestamp found #1 SMP Fri Apr 20 16:36:54 EDT 2007
[.cas.] :: Extracting debug kernel with filter */usr/lib/debug/lib/modules/2.6.9-55.ELsmp/vmlinux
[.cas.] :: Crash file built, locating suitable x86_64 system for processing
[.cas.] :: Machine megatron.gsslab.rdu.redhat.com found, processing crash output
Traceback (most recent call last):
  File "/usr/bin/cas", line 205, in ?
    sys.exit(app.run())
  File "/usr/bin/cas", line 168, in run
    print client.command.run(cmd)
  File "/usr/lib/python2.4/site-packages/func/overlord/client.py", line 71, in __call__
    return self.clientref.run(module,method,args,nforks=self.nforks)
  File "/usr/lib/python2.4/site-packages/func/overlord/client.py", line 303, in run
    return self.run_direct(module, method, args, nforks)
  File "/usr/lib/python2.4/site-packages/func/overlord/client.py", line 463, in run_direct
    (nkey,nvalue) = process_server(0, 0, x)
  File "/usr/lib/python2.4/site-packages/func/overlord/client.py", line 424, in process_server
    retval = utils.nice_exception(t,v,tb)
  File "/usr/lib/python2.4/site-packages/certmaster/utils.py", line 63, in nice_exception
    lefti = etype.index("'") + 1
ValueError: substring not found

any ideas on this?

thanks!

-- 
        __          __                
.-----.|  |_.-----.|  |--.-----.-----.
|__ --||   _|  _  ||    <|  -__|__ --|
|_____||____|_____||__|__|_____|_____|
 .----------------------------------.
(   ajs@xxxxxxxxxx || 919.754.4187   )
 `----------------------------------'

_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list

[Index of Archives]     [Fedora Users]     [Linux Networking]     [Fedora Legacy List]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux