report and record the actual booted kernel with test results
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | autopkgtest (Ubuntu) |
High
|
Martin Pitt | ||
Bug Description
As we often have 2 or more kernels installed when testing the package list is not sufficient to tell us which kernel we intended to run. Nor indeed does having the intended kernel installed tell us we actually running it after the reboot. It would be nice to:
1) report the kernel version uname -rv style as the first action following a reboot, allowing us to confirm the actual version booted each time.
2) perhaps report the kernel version and other information in the results.tar, say in a sysinfo.yaml.
If we chose a .yaml for this info we could expand it later to include filesystem info for example.
Related branches
| Changed in autopkgtest (Ubuntu): | |
| status: | New → In Progress |
| importance: | Undecided → High |
| assignee: | nobody → Martin Pitt (pitti) |
| Martin Pitt (pitti) wrote : | #1 |
| Martin Pitt (pitti) wrote : | #2 |
test_kernel_
| Martin Pitt (pitti) wrote : | #3 |
Also add the test triggers into that json file.
| Changed in autopkgtest (Ubuntu): | |
| milestone: | none → ubuntu-15.09 |
| Martin Pitt (pitti) wrote : | #4 |
Kernel is logged with http://
| Martin Pitt (pitti) wrote : | #5 |
This is implemented in http://
This needs some additional changes in autopkgtest-cloud to put the new file into result.tar.
| Changed in autopkgtest (Ubuntu): | |
| status: | In Progress → Fix Committed |
| Martin Pitt (pitti) wrote : | #6 |
With https:/
| Martin Pitt (pitti) wrote : | #8 |
Fixed harder in http://
| Changed in autopkgtest (Ubuntu): | |
| status: | In Progress → Fix Committed |
| Martin Pitt (pitti) wrote : | #9 |
With http://
| Launchpad Janitor (janitor) wrote : | #10 |
This bug was fixed in the package autopkgtest - 3.17.1
---------------
autopkgtest (3.17.1) unstable; urgency=medium
* Add new private python modules to Makefile, to actually ship them.
* tests/adt-run: Fix test regression when $ADT_TEST* are not set.
-- Martin Pitt <email address hidden> Tue, 15 Sep 2015 08:38:54 +0200
| Changed in autopkgtest (Ubuntu): | |
| status: | Fix Committed → Fix Released |


As discussed on IRC, we want something like this for 2:
>>> print(json. dumps({ 'kernel_ version' : '1.2', 'test_kernel_ versions' : [('test2', 'reboot_ to_backport' , '1.3~utopic')]}, indent=2)) kernel_ versions" : [ reboot_ to_backport" ,
{
"kernel_version": "1.2",
"test_
[
"test2",
"
"1.3~utopic"
]
]
}
kernel_version is the version right after the initial testbed setup/dist- upgrade/ reboot. Any test which triggers a reboot which ends up in a kernel != kernel_version will get an entry in that test_kernel_ versions list. Any test/reboot which is not there can be assumed to use kernel_version. IOW, for pretty much all expected cases test_kernel_ versions should be completely absent.
We use json instead of yaml as the latter requires an external Python module.