On Wed, Jul 18, 2012 at 1:46 PM, Prasad Joshi <prasadjoshi...@gmail.com> wrote:
> On Tue, Jul 17, 2012 at 7:36 PM, Cleber Rosa <cr...@redhat.com> wrote:
>> On 07/17/2012 10:52 AM, Prasad Joshi wrote:
>>>
>>> On Tue, Jul 17, 2012 at 7:14 PM, Cleber Rosa <cr...@redhat.com> wrote:
>>>>
>>>> On 07/16/2012 08:59 AM, Prasad Joshi wrote:
>>>>
>>>>
>>>> Prasad,
>>>>
>>>> I tried but could not reproduce your error. What autotest version
>>>> (commit?) are you using?
>>>
>>> Hello Cleber Rosa,
>>>
>>> The topmost commit on my repository is
>>>
>>> commit 1c25a2387f8a7e1844ce28f315cb04233469979f
>>> Author: Lucas Meneghel Rodrigues <l...@redhat.com>
>>> Date:   Tue Jul 10 22:52:27 2012 +0000
>>>
>>>      frontend.db.backends: Fix undefined name error in _valid_connection
>>>
>>>
>>>> Also, have you tried using key based authentication for SSH?I mention
>>>> this because it's one of the differences from my test environment
>>>> (haven't
>>>> used password based auth with autoserv for a while).
>>>>
>>> I tried key based authentication as well, it did not work for me.
>>
>>
>> Prasad,
>>
>> I've just re-run the test with the same commit you're using (the current
>> HEAD of master) and again, could not replicate it.
>>
>> Maybe it's something related to the system you're running the test on. Is is
>> a fresh system? If not, could you try on one? A simple (but fresh) virtual
>> machine will do for the sleep test.
>>
>
> Hello Cleber Rosa,
>
> As you suggested I experimented with the a freshly installed system.
> Please find the attached installation log.
>
> However, the sleeptest failed to run on my machine. Here is the log if
> you want to see it
>

Hello,

This is happening while pickleing the sysinfo information. Can anyone
please suggest me how to debug this problem? I tried adding few prints
in the code, however I see nothing on either console or log file.

15:45:31 ERROR| JOB ERROR: Unhandled TypeError: can't pickle file objects
Traceback (most recent call last):
  File "/tmp/sysinfo/autoserv-KCmM2V/job.py", line 1165, in step_engine
    execfile(self.control, global_control_vars, global_control_vars)
  File "/tmp/sysinfo/autoserv-KCmM2V/control.autoserv", line 13, in <module>
    pickle.dump(job.sysinfo, open(sysinfo_pickle, 'w'))
  File "/usr/lib64/python2.6/pickle.py", line 1362, in dump
    Pickler(file, protocol).dump(obj)
  File "/usr/lib64/python2.6/pickle.py", line 224, in dump
    self.save(obj)
  File "/usr/lib64/python2.6/pickle.py", line 331, in save
    self.save_reduce(obj=obj, *rv)
  File "/usr/lib64/python2.6/pickle.py", line 419, in save_reduce
    save(state)
  File "/usr/lib64/python2.6/pickle.py", line 286, in save
    f(self, obj) # Call unbound method with explicit self
  File "/usr/lib64/python2.6/pickle.py", line 649, in save_dict
    self._batch_setitems(obj.iteritems())
  File "/usr/lib64/python2.6/pickle.py", line 663, in _batch_setitems
    save(v)
  File "/usr/lib64/python2.6/pickle.py", line 331, in save
    self.save_reduce(obj=obj, *rv)
  File "/usr/lib64/python2.6/pickle.py", line 419, in save_reduce
    save(state)
  File "/usr/lib64/python2.6/pickle.py", line 286, in save
    f(self, obj) # Call unbound method with explicit self
  File "/usr/lib64/python2.6/pickle.py", line 649, in save_dict
    self._batch_setitems(obj.iteritems())
  File "/usr/lib64/python2.6/pickle.py", line 663, in _batch_setitems
    save(v)
  File "/usr/lib64/python2.6/pickle.py", line 331, in save
    self.save_reduce(obj=obj, *rv)
  File "/usr/lib64/python2.6/pickle.py", line 419, in save_reduce
    save(state)
  File "/usr/lib64/python2.6/pickle.py", line 286, in save
    f(self, obj) # Call unbound method with explicit self
  File "/usr/lib64/python2.6/pickle.py", line 649, in save_dict
    self._batch_setitems(obj.iteritems())
  File "/usr/lib64/python2.6/pickle.py", line 663, in _batch_setitems
    save(v)
  File "/usr/lib64/python2.6/pickle.py", line 331, in save
    self.save_reduce(obj=obj, *rv)
  File "/usr/lib64/python2.6/pickle.py", line 419, in save_reduce
    save(state)
  File "/usr/lib64/python2.6/pickle.py", line 286, in save
    f(self, obj) # Call unbound method with explicit self
  File "/usr/lib64/python2.6/pickle.py", line 649, in save_dict
    self._batch_setitems(obj.iteritems())
  File "/usr/lib64/python2.6/pickle.py", line 663, in _batch_setitems
    save(v)
  File "/usr/lib64/python2.6/pickle.py", line 286, in save
    f(self, obj) # Call unbound method with explicit self
  File "/usr/lib64/python2.6/pickle.py", line 725, in save_inst
    save(stuff)
  File "/usr/lib64/python2.6/pickle.py", line 286, in save
    f(self, obj) # Call unbound method with explicit self
  File "/usr/lib64/python2.6/pickle.py", line 649, in save_dict
    self._batch_setitems(obj.iteritems())
  File "/usr/lib64/python2.6/pickle.py", line 663, in _batch_setitems
    save(v)
  File "/usr/lib64/python2.6/pickle.py", line 286, in save
    f(self, obj) # Call unbound method with explicit self
  File "/usr/lib64/python2.6/pickle.py", line 725, in save_inst
    save(stuff)
  File "/usr/lib64/python2.6/pickle.py", line 286, in save
    f(self, obj) # Call unbound method with explicit self
  File "/usr/lib64/python2.6/pickle.py", line 649, in save_dict
    self._batch_setitems(obj.iteritems())
  File "/usr/lib64/python2.6/pickle.py", line 663, in _batch_setitems
    save(v)
  File "/usr/lib64/python2.6/pickle.py", line 286, in save
    f(self, obj) # Call unbound method with explicit self
  File "/usr/lib64/python2.6/pickle.py", line 600, in save_list
    self._batch_appends(iter(obj))
  File "/usr/lib64/python2.6/pickle.py", line 615, in _batch_appends
    save(x)
  File "/usr/lib64/python2.6/pickle.py", line 286, in save
    f(self, obj) # Call unbound method with explicit self
  File "/usr/lib64/python2.6/pickle.py", line 725, in save_inst
    save(stuff)
  File "/usr/lib64/python2.6/pickle.py", line 286, in save
    f(self, obj) # Call unbound method with explicit self
  File "/usr/lib64/python2.6/pickle.py", line 649, in save_dict
    self._batch_setitems(obj.iteritems())
  File "/usr/lib64/python2.6/pickle.py", line 663, in _batch_setitems
    save(v)
  File "/usr/lib64/python2.6/pickle.py", line 306, in save
    rv = reduce(self.proto)
  File "/usr/lib64/python2.6/copy_reg.py", line 70, in _reduce_ex
    raise TypeError, "can't pickle %s objects" % base.__name__
TypeError: can't pickle file objects

Thanks and Regards,
Prasad
_______________________________________________
Autotest mailing list
Autotest@test.kernel.org
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to