summaryrefslogtreecommitdiffstats
path: root/roles/openshift_health_checker/openshift_checks/package_update.py
diff options
context:
space:
mode:
Diffstat (limited to 'roles/openshift_health_checker/openshift_checks/package_update.py')
-rw-r--r--roles/openshift_health_checker/openshift_checks/package_update.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/roles/openshift_health_checker/openshift_checks/package_update.py b/roles/openshift_health_checker/openshift_checks/package_update.py
new file mode 100644
index 000000000..8464e8a5e
--- /dev/null
+++ b/roles/openshift_health_checker/openshift_checks/package_update.py
@@ -0,0 +1,14 @@
+"""Check that a yum update would not run into conflicts with available packages."""
+from openshift_checks import OpenShiftCheck
+from openshift_checks.mixins import NotContainerizedMixin
+
+
+class PackageUpdate(NotContainerizedMixin, OpenShiftCheck):
+ """Check that a yum update would not run into conflicts with available packages."""
+
+ name = "package_update"
+ tags = ["preflight"]
+
+ def run(self):
+ args = {"packages": []}
+ return self.execute_module_with_retries("check_yum_update", args)