canonical-certification-server points to wrong config file for network and virtualization tests

Bug #1296980 reported by Kent Baxley
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Provider for Plainbox - Canonical Certification (Legacy)
Fix Released
Undecided
Unassigned

Bug Description

With the new canonical-certification-server testing suite, we've been told that the /etc/xdg/certification.conf file is where we now need to enter values for things like netperf target as well as any locally-stored images for the virtualization test.

canonical-certification-server, however, seems to ignore that file and will continue to do things like download the kvm images from the internet instead of looking locally.

In looking at the code, it appears that the following files still point to the old locations for the network and virtualization configurations:

plainbox-provider-checkbox/provider_bin/network: DEFAULT_CFG = "/etc/checkbox.d/network.cfg"

plainbox-provider-checkbox/provider_bin/virtualization: DEFAULT_CFG = "/etc/checkbox.d/virtualization.cfg"

If it is a simple matter of changing those two parameters to the new location of /etc/xdg/certification.conf in the respective places, I'll be glad to do that and submit a merge request.

Thanks!

Revision history for this message
Daniel Manrique (roadmr) wrote :

Hi Kent,

Unfortunately it's not that simple :/

the settings under [environment] in the config file are converted to environment variables by plainbox. What you're seeing here is probably that c-c-s is not reading the config file it should, and thus not setting the environment correctly. Just pointing the scripts to that config file won't work, as the syntax is different.

The scripts are still able to use the old configuration files, if present (for compatibility for people still using checkbox), but the new toolset no longer ships those files.

I'll look at what happened with these settings and let you know as soon as I have something.

Revision history for this message
Daniel Manrique (roadmr) wrote :

OK, work is in progress for this one, a few merge requests are in place, but there's an actual bug preventing environment settings from working:

https://bugs.launchpad.net/checkbox/+bug/1298166

Once all this is solved, and some changes to packaging are in place, you'll need to install plainbox-provider-certification-server *instead* of canonical-certification-server. Then the config file should be in /etc/xdg/canonical-certification.conf (note this is different from what you initially quoted).

You can check the active configuration by running canonical-certification-server --check-config. Note however that due to the above bug, even if you do everything else correctly and the config shows, it will still not be picked up.

We'll have this fixed asap :)

Changed in checkbox:
status: New → In Progress
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

I would say this is now fixed (as soon as the other merge requests lands) and will be a part of the plainbox-provider-canonical-certification source package whenever it is released next. We actually fixed the layout of the configuration file now.

Changed in checkbox:
status: In Progress → Fix Committed
Zygmunt Krynicki (zyga)
affects: checkbox → plainbox-provider-canonical-certification
Daniel Manrique (roadmr)
Changed in plainbox-provider-canonical-certification:
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.