config is None when resuming session / AttributeError: 'NoneType' object has no attribute 'extcmd'

Bug #1456142 reported by Zygmunt Krynicki
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox Converged
Fix Released
High
Zygmunt Krynicki

Bug Description

NOTE: this happens when resuming a session. It seems that the config object is just stored in start_session()

ERROR:checkbox.touch:run_test_activity(...) raised AttributeError("'NoneType' object has no attribute 'extcmd'",)
Traceback (most recent call last):
  File "/home/zyga/checkbox/checkbox-touch/py/checkbox_touch.py", line 173, in wrapper
    result = func(*args, **kwargs)
  File "/home/zyga/checkbox/checkbox-touch/py/checkbox_touch.py", line 665, in run_test_activity
    result = self.runner.run_job(job, job_state, self.config)
  File "/home/zyga/checkbox/plainbox/plainbox/impl/runner.py", line 434, in run_job
    return runner(job, job_state, config)
  File "/home/zyga/checkbox/plainbox/plainbox/impl/runner.py", line 460, in run_shell_job
    return self._just_run_command(job, job_state, config).seal()
  File "/home/zyga/checkbox/plainbox/plainbox/impl/runner.py", line 801, in _just_run_command
    job, job_state, config, ctrl)
  File "/home/zyga/checkbox/plainbox/plainbox/impl/runner.py", line 878, in _run_command
    delegate_cls = self._get_delegate_cls(config)
  File "/home/zyga/checkbox/plainbox/plainbox/impl/runner.py", line 981, in _get_delegate_cls
    and config.extcmd == "glibc"):
AttributeError: 'NoneType' object has no attribute 'extcmd'

Related branches

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Setting to high as this breaks resume + rerun for all jobs that use commands.

description: updated
Changed in checkbox-touch:
importance: Undecided → High
summary: - config not supplied to job runner
+ config is None when resuming session / AttributeError: 'NoneType' object
+ has no attribute 'extcmd'
Zygmunt Krynicki (zyga)
Changed in checkbox-touch:
milestone: none → 1.2
assignee: nobody → Zygmunt Krynicki (zyga)
status: New → In Progress
Zygmunt Krynicki (zyga)
Changed in checkbox-touch:
status: In Progress → Fix Committed
Changed in checkbox-touch:
status: Fix Committed → Fix Released
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.