results refer to non-existent temp files and there seems to be no cache of results

Asked by Jeff Lane 

Plainbox versions:
ii canonical-certification-server 0.17.9+bzr2823~ubuntu14.04.1 all Canonical Certification Server.
ii plainbox-insecure-policy 0.17.9+bzr2823~ubuntu14.04.1 all Insecure PolicyKit action file for PlainBox
ii plainbox-provider-certification-server 0.17.9+bzr2823~ubuntu14.04.1 all Server Certification
ii plainbox-provider-checkbox 0.17.9+bzr2823~ubuntu14.04.1 amd64 CheckBox jobs
ii plainbox-provider-resource-generic 0.17.9+bzr2823~ubuntu14.04.1 amd64 CheckBox generic resource jobs provider
ii python3-plainbox 0.17.9+bzr2823~ubuntu14.04.1 all Simple replacement for CheckBox

I ran the latest dev version of canonical-certification-server and at the end, I noticed that the results file had tracebacks in it.

These tracebacks referred to output in /tmp that no longer exist.

 <comment>Traceback (most recent call last):
  File "/tmp/nest-ryoz4v59.11eb509ebecd40680a2c542695af56491bf9cb92530d47ab123e5e2f308b943e/network", line 648, in &lt;module&gt;
    sys.exit(main())
  File "/tmp/nest-ryoz4v59.11eb509ebecd40680a2c542695af56491bf9cb92530d47ab123e5e2f308b943e/network", line 644, in main
    return args.func(args)
  File "/tmp/nest-ryoz4v59.11eb509ebecd40680a2c542695af56491bf9cb92530d47ab123e5e2f308b943e/network", line 450, in interface_test
    if "example.com" in test_target:
TypeError: argument of type 'NoneType' is not iterable
</comment>

However, now that the test run is complete, those files no longer exist in /tmp

I next looked in .local/share/plainbox but there is only results files there:

root@CCS-SUT:~# ls .local/share/plainbox/ -a
. .. results.html submission.xml

I then checked the cache dir:

root@CCS-SUT:~# ls -la .cache/plainbox/*
total 8
drwxr-xr-x 2 root root 4096 Mar 25 10:45 .
drwxr-xr-x 3 root root 4096 Mar 25 10:30 ..
lrwxrwxrwx 1 root root 52 Mar 25 10:44 last-session -> /root/.cache/plainbox/sessions/pbox-bkd5fdar.session

And the only thing there is a symlink to a non-existent session file.

So there is no way for me to go back and actually look at the full output from the network tests.

Question information

Language:
English Edit question
Status:
Expired
For:
PlainBox (Toolkit) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Zygmunt Krynicki (zyga) said :
#1

This is a support question.

Revision history for this message
Zygmunt Krynicki (zyga) said :
#2

The temporary directory is a container for symlinks to executables from
various providers. In this case the network script from of of the provider
crashed.

The symlink in ~/cache/plainbox/sessions is broken because some other
session had removed the previous one. PlainBox has the capacity to store
all the sessions but we're not using that in checkbox-ng at this time.

Thanks
ZK

Revision history for this message
Jeff Lane  (bladernr) said :
#3

Not so... this is on the current bits for checkbox-ng and canonical-certification-server, on a brand new 14.04 install and the first time c-c-s has been run:

ubuntu@supermicro:~$ ll .cache/plainbox/sessions/
total 8
drwxrwxr-x 2 ubuntu ubuntu 4096 Apr 23 14:31 ./
drwxrwxr-x 3 ubuntu ubuntu 4096 Apr 23 14:29 ../
lrwxrwxrwx 1 ubuntu ubuntu 59 Apr 23 14:29 last-session -> /home/ubuntu/.cache/plainbox/sessions/pbox-wuvyk69_.session
ubuntu@supermicro:~$ ll .local/share/plainbox/
total 868
drwxrwxr-x 2 ubuntu ubuntu 4096 Apr 23 14:31 ./
drwxrwxr-x 3 ubuntu ubuntu 4096 Apr 23 14:31 ../
-rw-rw-r-- 1 ubuntu ubuntu 399181 Apr 23 14:31 results.html
-rw-rw-r-- 1 ubuntu ubuntu 476919 Apr 23 14:31 submission.xml

I ran c-c-s and after the run checked the cache dir, and found that there is no session data saved. So no test output or stderr, none of the files that were generally written to $CHECKBOX_DATA by various info or other tests, nada. This is my original bug. When testing fails, no session data is being saved at all, so it is impossible for me to debug testing issues in the field.

Note that last-session is a broken symlink to a non-existant session directory in .cache/plainbox.

Additionally, there is no logging at all as there used to be with checkbox, so no canonical-certification-server.log (like checkbox-certification.log that had all the runtime output from checkbox itself.

Revision history for this message
Jeff Lane  (bladernr) said :
#4

ubuntu@supermicro:~$ COLUMNS=125 dpkg -l |grep plainbox
ii plainbox-insecure-policy 0.6~dev+bzr2937+p all policykit policy required to use plainbox (insecure ver
ii plainbox-provider-certifi 0.1~dev+bzr2937+p all Server Certification
ii plainbox-provider-checkbo 0.5~dev+bzr2937+p amd64 CheckBox provider for PlainBox
ii plainbox-provider-resourc 0.4~dev+bzr2937+p amd64 CheckBox generic resource jobs provider
ii python3-plainbox 0.6~dev+bzr2937+p all toolkit for software and hardware testing (python3 modu
ubuntu@supermicro:~$ COLUMNS=125 dpkg -l |grep checkbox
ii checkbox-ng 0.4~dev+bzr2937+p all PlainBox based test runner
ii python3-checkbox-ng 0.4~dev+bzr2937+p all PlainBox based test runner (Python 3 library)
ii python3-checkbox-support 0.3~dev+bzr2937+p all collection of Python modules used by PlainBox providers

Revision history for this message
Sylvain Pineau (sylvain-pineau) said :
#5

expired