canonical-certification-server tracedumps when attempting to submit results

Bug #1274152 reported by Jeff Lane 
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Checkbox
Fix Released
Critical
Sylvain Pineau

Bug Description

After a test run, I ran into a minor issue and a major issue when trying to submit results.

First, the minor issue: I had to hit 'y' twice to get plainbox to prompt me for the SecureID

The major issue is that after I entered the SID, pain box crashed with a traceback. here's the output showing both:Saving submission file to /root/.local/share/plainbox/submission.xml
View results (HTML): file:///root/.local/share/plainbox/results.html

Submit results to certification.canonical.com? [y, n] y

Submit results to certification.canonical.com? [y, n] y
Secure ID: a00D000000LU9Jd
Executable 'checkbox' invoked with Namespace(c3_url='https://certification.canonical.com/submissions/submit/', check_config=False, checkbox=None, command=<checkbox_ng.commands.certification.CertificationCommand object at 0x7f5f04a339d0>, debug_console=False, debug_interrupt=False, exclude_pattern_list=[], include_pattern_list=[], log_level=None, not_interactive=False, pdb=False, secure_id=None, trace=[], whitelist=None) has crashed
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/plainbox/impl/clitools.py", line 301, in dispatch_and_catch_exceptions
    return self.dispatch_command(ns)
  File "/usr/lib/python3/dist-packages/plainbox/impl/clitools.py", line 297, in dispatch_command
    return ns.command.invoked(ns)
  File "/usr/lib/python3/dist-packages/checkbox_ng/commands/certification.py", line 132, in invoked
    self.settings, ns).run()
  File "/usr/lib/python3/dist-packages/checkbox_ng/commands/cli.py", line 219, in run
    return self._run_jobs(ns, job_list)
  File "/usr/lib/python3/dist-packages/checkbox_ng/commands/cli.py", line 299, in _run_jobs
    self.save_results(session)
  File "/usr/lib/python3/dist-packages/checkbox_ng/commands/certification.py", line 69, in save_results
    self._submit_results(session)
AttributeError: 'CertificationInvocation' object has no attribute '_submit_results'
Traceback (most recent call last):
  File "/usr/bin/canonical-certification-server", line 9, in <module>
    load_entry_point('checkbox-ng==0.1', 'console_scripts', 'canonical-certification-server')()
  File "/usr/lib/python3/dist-packages/checkbox_ng/main.py", line 192, in cert_server
    CertificationNGTool().main(['certification-server'] + args))
  File "/usr/lib/python3/dist-packages/plainbox/impl/clitools.py", line 134, in main
    return self.dispatch_and_catch_exceptions(ns)
  File "/usr/lib/python3/dist-packages/plainbox/impl/clitools.py", line 301, in dispatch_and_catch_exceptions
    return self.dispatch_command(ns)
  File "/usr/lib/python3/dist-packages/plainbox/impl/clitools.py", line 297, in dispatch_command
    return ns.command.invoked(ns)
  File "/usr/lib/python3/dist-packages/checkbox_ng/commands/certification.py", line 132, in invoked
    self.settings, ns).run()
  File "/usr/lib/python3/dist-packages/checkbox_ng/commands/cli.py", line 219, in run
    return self._run_jobs(ns, job_list)
  File "/usr/lib/python3/dist-packages/checkbox_ng/commands/cli.py", line 299, in _run_jobs
    self.save_results(session)
  File "/usr/lib/python3/dist-packages/checkbox_ng/commands/certification.py", line 69, in save_results
    self._submit_results(session)
AttributeError: 'CertificationInvocation' object has no attribute '_submit_results'
root@tester:~#

Related branches

Jeff Lane  (bladernr)
Changed in checkbox:
assignee: nobody → Sylvain Pineau (sylvain-pineau)
status: New → Confirmed
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

it's submit_results, not _submit_results, what a shame...

Changed in checkbox:
importance: Undecided → Critical
status: Confirmed → In Progress
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

regading the need to hit 'y' twice, not reproduced. it works perfectly for me.

Changed in checkbox:
status: In Progress → Fix Committed
Revision history for this message
Jeff Lane  (bladernr) wrote :

That was fast! and the y twice thing could be from me running in a very small VM on digital ocean, so perhaps it's something in me hitting a key in London on a vm in New York... thanks!

Changed in checkbox:
milestone: none → plainbox-0.5
Zygmunt Krynicki (zyga)
Changed in checkbox:
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.