Red Hat Bugzilla – Bug 488145
FEAT: HTS should provide a run-time dependency option for installation
Last modified: 2014-03-25 20:56:27 EDT
Description of problem:
The HTS package currently defines a full set of required packages for the whole test suite. This approach means that it requires packages that are not allways needed to test a particular system. For example, mt is required by the tape test, and the HTS package requires the mt package even if there's no tape drive in the system under test.
HTS should provide an alternative package with minimal required packages, and validate any required packages at run time according to scheduled tests. This minimal rpm could be a separate package from the "full requires" version.
Created attachment 382964 [details]
hardwaretest.py patch adding test-specified package installation
This patch adds test-specified package installation to the planning phase of the harness. When a new test plan is created, the list of tests are checked for additional required packages. If any are found that are not installed, the harness asks the user if they would like to isntall them.
If the user agrees, the hardness calls yum with the package list, then re-checks the required packages. If the user does not agree, the harness prints a warning message.
Test-required packages are only checked when a new plan is created, not when the plan is changed via hardware detection, or user edits.
Created attachment 382965 [details]
test.py patch defining a default getRequiredRPMs that returns an empy list.
Created attachment 382966 [details]
fvtest.py patch with getRequiredRPMs implementation
+ def getRequiredRPMs(self):
+ rpms = ["qemu", "libvirt", "libvirt-python", "python-virtinst"]
+ return rpms
Note that other tests may implement this function to do specific tests on hardware or RHEL configuration.
Actually, there's no need to the qemu package under xen, so the function should be:
rpms = ["libvirt", "libvirt-python", "python-virtinst"]
if self.hypervisor == Constants.kvm:
Created attachment 383385 [details]
hardwaretest.py patch on R22 adding --mode auto support
In --mode auto, the required rpms are added automatically.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.