summaryrefslogtreecommitdiffstats
path: root/roles/openshift_health_checker/library
Commit message (Collapse)AuthorAgeFilesLines
* health checks: add diagnostics checkLuke Meyer2017-09-211-6/+5
| | | | | | Also, moved is_first_master method into superclass for reuse. And look at oo_first_master and ansible_host instead of masters and ansible_ssh_host.
* openshift_checks aos_version: also check installed under yumLuke Meyer2017-09-061-17/+18
| | | | | | | | | 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.
* Import dnf only if importing yum failsJakub Hadvig2017-09-051-6/+12
|
* remove out of scope variable from exception messageAdam Miller2017-08-181-1/+0
| | | | Signed-off-by: Adam Miller <maxamillion@fedoraproject.org>
* raise AosVersionException if no expected packages found by dnf queryAdam Miller2017-08-181-0/+8
| | | | Signed-off-by: Adam Miller <maxamillion@fedoraproject.org>
* add dnf support to roles/openshift_health_checker/library/aos_version.pyAdam Miller2017-08-161-17/+42
| | | | Signed-off-by: Adam Miller <maxamillion@fedoraproject.org>
* openshift_checks: allow OVS 2.7 on OCP 3.5 and 3.6Miciah Masters2017-08-111-4/+10
| | | | | | | | | 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: improve comments/namesLuke Meyer2017-07-253-4/+4
|
* Merge pull request #4316 from ↵Rodolfo Carvalho2017-07-201-0/+150
|\ | | | | | | | | juanvallejo/jvallejo/add-increased-etcd-traffic-check add check to detect increased etcd traffic
| * add etcd increased-traffic checkjuanvallejo2017-07-191-0/+150
| |
* | Make aos_version module handle multiple versionsRodolfo Carvalho2017-07-171-8/+20
|/ | | | | | | | Some packages are supported at more than one major.minor version at the same time. Support is added keeping backward compatibility: the 'version' key can be either a string (single version) or a list of versions.
* Merge pull request #3643 from juanvallejo/jvallejo/elastic-search-checkOpenShift Bot2017-06-061-0/+74
|\ | | | | Merged by openshift-bot
| * add elasticseatch, fluentd, kibana checkjuanvallejo2017-06-021-0/+74
| |
* | Merge pull request #4064 from juanvallejo/jvallejo/add-ovs-version-checkOpenShift Bot2017-06-051-50/+55
|\ \ | | | | | | Merged by openshift-bot
| * | Remove unnecessary comment.Rodolfo Carvalho2017-05-241-1/+1
| | | | | | | | | | | | | | | Capturing the ImportError is a common idiom in Ansible modules, and it is not specific to tox.
| * | update aos_version module to support generic pkgs and versionsjuanvallejo2017-05-241-49/+54
| |/
* | add existing_ovs_version checkjuanvallejo2017-05-191-0/+127
|/
* Merge pull request #3660 from juanvallejo/jvallejo/add-etcd-clustersize-checkOpenShift Bot2017-05-181-0/+122
|\ | | | | Merged by openshift-bot
| * add etcd cluster size checkjuanvallejo2017-05-171-0/+122
| |
* | Remove vim configuration from Python filesRodolfo Carvalho2017-05-092-2/+0
|/ | | | | | | In a project where contributors are free to use whatever editor they want and we have linting tools that verify the proper formatting of Python files, it should not be required to have a vim-specific line in Python files.
* preflight checks: refactor and fix aos_versionLuke Meyer2017-04-081-53/+161
| | | | | | | | | | | 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.
* vendor patched upstream docker_container module.juanvallejo2017-03-231-0/+2036
| | | | | | | | | | | | | | | | Due to the use of a restricted name in the core `docker_container` module's result, any standard output of a docker container captured in the module's response was stripped out by ansible. Because of this, we are forced to vendor a patched version of this module, until a new version of ansible is released containing the patched module. This file should be removed once we begin requiring a release of ansible containing the patched `docker_container` module. This patch was taken directly from upstream, with no further changes: 20bf02f6b96356ab5fe68578a3af9462b4ca42a5
* add docker_image_availability checkjuanvallejo2017-03-231-0/+24
| | | | | | | | This patch adds a check to ensure that required docker images are available in at least one of the registries supplied in an installation host. Images are available if they are either already present locally, or able to be inspected using Skopeo on one of the configured registries.
* preflight checks: bypass RPM excludesLuke Meyer2017-03-202-0/+2
|
* Do not hard code package namesRodolfo Carvalho2017-02-101-6/+12
|
* Replace multi-role checks with action pluginRodolfo Carvalho2017-02-102-0/+190
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.