summaryrefslogtreecommitdiffstats
path: root/roles/openshift_health_checker/test/ovs_version_test.py
Commit message (Collapse)AuthorAgeFilesLines
* health checks: tolerate ovs 2.9Luke Meyer2018-02-061-1/+7
|
* health checks: factor out get_required_versionLuke Meyer2018-01-171-21/+2
|
* Remove openshift.common.{is_atomic|is_containerized}Michael Gugino2017-12-201-3/+3
| | | | | We set these variables using facts in init, no need to duplicate the logic all around the codebase.
* Remove openshift.common.service_typeMichael Gugino2017-12-071-3/+6
| | | | | | | | This commit removes openshift.common.service_type in favor of openshift_service_type. This commit also removes r_openshift_excluder_service_type from plays in favor of using the role's defaults.
* openshift_checks: Add OVS versions for OCP 3.7Miciah Masters2017-11-061-1/+2
| | | | | | | | | Update the ovs_version check with the allowed Open vSwitch versions for OCP 3.7. Add OVS 2.8 to the allowed versions for OCP 3.6 as well. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1509163
* openshift_checks: use oo group names everywhereLuke Meyer2017-10-041-6/+6
|
* openshift_checks: enable providing file outputsLuke Meyer2017-09-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Some refactoring of checks and the action plugin to enable writing files locally about the check operation and results, if the user wants them. This is aimed at enabling persistent and machine-readable results from recurring runs of health checks. Now, rather than trying to build a result hash to return from running each check, checks can just register what they need to as they're going along, and the action plugin processes state when the check is done. Checks can register failures, notes about what they saw, and arbitrary files to be saved into a directory structure where the user specifies. If no directory is specified, no files are written. At this time checks can still return a result hash, but that will likely be refactored away in the next iteration. Multiple failures can be registered without halting check execution. Throwing an exception or returning a hash with "failed" is registered as a failure. execute_module now does a little more with the results. Results are automatically included in notes and written individually as files. "changed" results are propagated. Some json results are decoded. A few of the checks were enhanced to use these features; all get some of the features for free.
* openshift_checks: allow OVS 2.7 on OCP 3.5 and 3.6Miciah Masters2017-08-111-2/+2
| | | | | | | | | rpm_version: Allow package_list items to specify a list value for version. If a list value is provided for a package, pass the check if any version in that list is found. ovs_version: Specify both 2.6 and 2.7 as allowed versions of OVS for OpenShift versions 3.5 and 3.6.
* openshift_checks: refactor to internalize task_varsLuke Meyer2017-07-251-10/+7
| | | | | | | | | Move task_vars into instance variable so we don't have to pass it around everywhere. Also store tmp. Make sure both are filled in on execute_module. In the process, is_active became an instance method, and task_vars is basically never used directly outside of test code.
* add existing_ovs_version checkjuanvallejo2017-05-191-0/+89