summaryrefslogtreecommitdiffstats
path: root/roles/openshift_health_checker/openshift_checks/package_version.py
Commit message (Collapse)AuthorAgeFilesLines
* Allow OVS 2.7 in OCP 3.10Scott Dodson2018-02-071-1/+1
|
* health checks: tolerate ovs 2.9Luke Meyer2018-02-061-4/+5
|
* health checks: update required pkg versionsLuke Meyer2018-01-171-0/+5
|
* health checks: factor out get_required_versionLuke Meyer2018-01-171-31/+3
|
* package_version check: reuse get_major_minor_versionLuke Meyer2018-01-171-21/+2
|
* Remove openshift.common.service_typeMichael Gugino2017-12-071-1/+3
| | | | | | | | 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-1/+1
|
* openshift_checks: add retries in pythonLuke Meyer2017-09-121-1/+1
|
* openshift_checks aos_version: also check installed under yumLuke Meyer2017-09-061-0/+1
| | | | | | | | | Tweaks to the logic around using yum vs dnf; now uses ansible_pkg_mgr to determine which is in effect for a host. Also, extended the yum logic to check installed packages in addition to available packages in the aos_version module so that disconnected installs and others with weird repo configs need not disable the package_version check.
* package_version check: tolerate release version 3.7Luke Meyer2017-08-021-54/+54
| | | | | | | | | | | Addresses issue https://github.com/openshift/openshift-ansible/issues/4967 For now, any version >= 3.6 is handled as if it were 3.6. We may want to keep that or fine-tune it later. Also, the ovs_version check is not updated. This is a post-install health check (does not block install/upgrade) with an update already in progress so will be addressed there.
* openshift_checks: refactor to internalize task_varsLuke Meyer2017-07-251-18/+17
| | | | | | | | | 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.
* openshift_checks: improve comments/namesLuke Meyer2017-07-251-1/+3
|
* Allow OVS 2.7 in latest OpenShift releasesRodolfo Carvalho2017-07-171-2/+2
| | | | | | | | | | | Change the package_version check to tolerate either Open vSwitch 2.6 or 2.7. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1465882 This commit removes a unit test that adds no coverage and tests data instead of logic. This coupling makes every change to supported versions require the same changes to the tests.
* pre-install checks: add more during byo installLuke Meyer2017-06-141-1/+1
| | | | | | | | | | | | Add the docker and RPM checks to the list that run at install time. They can be disabled the same as the existing ones. Removed cockpit-kubernetes RPM requirement as it no longer is. Fixed up docker_image_availability to handle oreg_url and other nuances. Switched to using the openshift_image_tag that's set by openshift_version for both component and infrastructure images. Fixed a bug where execute_module was being called with incorrect positional arg "tmp" as a dict which caused errors down the call stack.
* update aos_version module to support generic pkgs and versionsjuanvallejo2017-05-241-4/+104
|
* Merge pull request #3887 from rhcarvalho/pkg-version-only-master-or-nodeOpenShift Bot2017-04-131-0/+7
|\ | | | | Merged by openshift-bot
| * Do not check package version on non-master/nodeRodolfo Carvalho2017-04-101-0/+7
| |
* | preflight checks: refactor and fix aos_versionLuke Meyer2017-04-081-5/+3
|/ | | | | | | | | | | Bring in openshift_repos to provide Origin repo before checks on Origin. For OCP we want the check to fail if both version 3.3 and version 3.4 are available - they shouldn't have both channels enabled. For Origin everything is in one repo so it's not surprising to find 1.4 and 1.5 versions available. Added unit tests as well.
* Rename module_executor -> execute_moduleRodolfo Carvalho2017-03-281-1/+1
| | | | | | | | It is a function/callable, the name should imply action, should be a verb and not a noun. Keep supporting the old name while we have PRs in-flight that use the old name.
* Renamed NotContainerized to NotContainerizedMixin and dropped no-memberSteve Milner2017-02-221-2/+2
|
* Do not hard code package namesRodolfo Carvalho2017-02-101-8/+5
|
* Refactor code to access values from task_varsRodolfo Carvalho2017-02-101-5/+2
|
* Introduce tag notation for checksRodolfo Carvalho2017-02-101-0/+1
| | | | This allows us to refer to a group of checks using a single handle.
* Replace multi-role checks with action pluginRodolfo Carvalho2017-02-101-0/+25
This approach should make it easier to add new checks without having to write lots of YAML and doing things against Ansible (e.g. ignore_errors). A single action plugin determines what checks to run per each host, including arguments to the check. A check is implemented as a class with a run method, with the same signature as an action plugin and module, and is normally backed by a regular Ansible module. Each check is implemented as a separate Python file. This allows whoever adds a new check to focus solely in a single Python module, and potentially an Ansible module within library/ too. All checks are automatically loaded, and only active checks that are requested by the playbook get executed.