checkbox-cli remote can't execute test plan

Bug #1966045 reported by Andy Chi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Hardware Collection
Fix Released
Critical
Maciej Kisielewski

Bug Description

After installing checkbox-ng(1.16.0+git202203211652+pkg182~ubuntu20.04.1), checkbox-cli remote will execute fail by the following error.

[traceback]

15:51:15 Traceback (most recent call last):
15:51:15 File "/home/****/nas/workspace/sanity-3-testflinger-dummy-202203-30054-staging/env/bin/checkbox-cli", line 36, in <module>
15:51:15 sys.exit(load_entry_point('checkbox-ng==1.10.0.dev0', 'console_scripts', 'checkbox-cli')())
15:51:15 File "/home/****/nas/workspace/sanity-3-testflinger-dummy-202203-30054-staging/env/lib/python3.6/site-packages/checkbox_ng-1.10.0.dev0-py3.6.egg/checkbox_ng/launcher/checkbox_cli.py", line 123, in main
15:51:15 subcmd.invoked(ctx)
15:51:15 File "/home/****/nas/workspace/sanity-3-testflinger-dummy-202203-30054-staging/env/lib/python3.6/site-packages/checkbox_ng-1.10.0.dev0-py3.6.egg/checkbox_ng/launcher/master.py", line 155, in invoked
15:51:15 self.connect_and_run(ctx.args.host, port)
15:51:15 File "/home/****/nas/workspace/sanity-3-testflinger-dummy-202203-30054-staging/env/lib/python3.6/site-packages/checkbox_ng-1.10.0.dev0-py3.6.egg/checkbox_ng/launcher/master.py", line 231, in connect_and_run
15:51:15 }[state]()
15:51:15 File "/home/****/nas/workspace/sanity-3-testflinger-dummy-202203-30054-staging/env/lib/python3.6/site-packages/checkbox_ng-1.10.0.dev0-py3.6.egg/checkbox_ng/launcher/master.py", line 269, in new_session
15:51:15 tps = self.sa.start_session(configuration)
15:51:15 File "/home/****/nas/workspace/sanity-3-testflinger-dummy-202203-30054-staging/env/lib/python3.6/site-packages/checkbox_ng-1.10.0.dev0-py3.6.egg/plainbox/vendor/rpyc/core/netref.py", line 253, in __call__
15:51:15 return syncreq(_self, consts.HANDLE_CALL, args, kwargs)
15:51:15 File "/home/****/nas/workspace/sanity-3-testflinger-dummy-202203-30054-staging/env/lib/python3.6/site-packages/checkbox_ng-1.10.0.dev0-py3.6.egg/plainbox/vendor/rpyc/core/netref.py", line 76, in syncreq
15:51:15 return conn.sync_request(handler, proxy, *args)
15:51:15 File "/home/****/nas/workspace/sanity-3-testflinger-dummy-202203-30054-staging/env/lib/python3.6/site-packages/checkbox_ng-1.10.0.dev0-py3.6.egg/plainbox/vendor/rpyc/core/protocol.py", line 469, in sync_request
15:51:15 return self.async_request(handler, *args, timeout=timeout).value
15:51:15 File "/home/****/nas/workspace/sanity-3-testflinger-dummy-202203-30054-staging/env/lib/python3.6/site-packages/checkbox_ng-1.10.0.dev0-py3.6.egg/plainbox/vendor/rpyc/core/async_.py", line 102, in value
15:51:15 raise self._obj
15:51:15 UnboundLocalError: local variable 'session_type' referenced before assignment
15:51:15
15:51:15 ========= Remote Traceback (1) =========
15:51:15 Traceback (most recent call last):
15:51:15 File "/usr/lib/python3/dist-packages/plainbox/vendor/rpyc/core/protocol.py", line 320, in _dispatch_request
15:51:15 res = self._HANDLERS[handler](self, *args)
15:51:15 File "/usr/lib/python3/dist-packages/plainbox/vendor/rpyc/core/protocol.py", line 593, in _handle_call
15:51:15 return obj(*args, **dict(kwargs))
15:51:15 File "/usr/lib/python3/dist-packages/plainbox/impl/session/remote_assistant.py", line 193, in fun
15:51:15 return f(self, *args)
15:51:15 File "/usr/lib/python3/dist-packages/plainbox/impl/session/remote_assistant.py", line 303, in start_session
15:51:15 self._sa.configure_application_restart(self._cmd_callback)
15:51:15 File "/usr/lib/python3/dist-packages/plainbox/impl/decorators.py", line 142, in wrapper
15:51:15 raise exc
15:51:15 File "/usr/lib/python3/dist-packages/plainbox/impl/decorators.py", line 136, in wrapper
15:51:15 return func(*args, **kwargs)
15:51:15 File "/usr/lib/python3/dist-packages/plainbox/impl/session/assistant.py", line 248, in configure_application_restart
15:51:15 self._restart_strategy = detect_restart_strategy(self)
15:51:15 File "/usr/lib/python3/dist-packages/plainbox/impl/session/restart.py", line 273, in detect_restart_strategy
15:51:15 if session_type == "checkbox-slave":
15:51:15 UnboundLocalError: local variable 'session_type' referenced before assignment

Related branches

Revision history for this message
Maciej Kisielewski (kissiel) wrote :

Not only remote. Whole checkbox is broken. I know where it's broken, but finding the best way to fix it will take a few hours.

Changed in canonical-hw-collection:
status: New → In Progress
importance: Undecided → Critical
assignee: nobody → Maciej Kisielewski (kissiel)
Changed in canonical-hw-collection:
status: In Progress → Fix Committed
Changed in canonical-hw-collection:
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.