summaryrefslogtreecommitdiffstats
path: root/roles/openshift_health_checker/openshift_checks/docker_image_availability.py
Commit message (Collapse)AuthorAgeFilesLines
* docker_image_availability: fix local image searchLuke Meyer2017-09-121-5/+9
| | | | | | An image in the docker index may be tagged by name or by registry plus name. In order to find the image correctly locally and prevent looking for it externally, make sure all possible variations are searched.
* docker_image_availability: probe registry connectivityLuke Meyer2017-09-121-23/+50
| | | | | | | | | | | | Probe whether the host has connectivity to the registry before trying to inspect it for images, and remember the result. Also if later inspection fails due to timeout, mark registry as unreachable. Note in failure output if any registries were unreachable. Registry order should match what is configured into docker now as well. Fixes bug 1480195 https://bugzilla.redhat.com/show_bug.cgi?id=1480195
* openshift_checks: add retries in pythonLuke Meyer2017-09-121-4/+2
|
* output skopeo image check commandKenjiro Nakayama2017-09-051-4/+6
|
* docker_image_availability: timeout skopeo inspectLuke Meyer2017-08-281-1/+4
| | | | | Set a 10 second timeout when using skopeo to inspect remote registries, so that it does not wait for a tcp timeout to fail if they are unreachable.
* openshift_checks: add property to track 'changed'Luke Meyer2017-08-021-6/+4
| | | | | | | | | | Introduced the 'changed' property for checks that can make changes to track whether they did or not. Rather than the check's own logic having to track this and include it in the result hash, just set the property and have the action plugin insert it in the result hash after running (even if there is an exception). Cleared out a lot of crufty "changed: false" hash entries.
* openshift_checks: refactor to internalize task_varsLuke Meyer2017-07-251-30/+27
| | | | | | | | | 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-9/+12
|
* docker_image_availability: fix containerized etcdLuke Meyer2017-06-301-1/+2
| | | | fixes bug 1466622 - docker_image_availability check on etcd host failed for 'openshift_image_tag' is undefined
* Disable TLS verification in skopeo inspectRodolfo Carvalho2017-06-191-1/+1
| | | | | | | Some registries are not configured with valid certificates and thus the check fails with 'http: server gave HTTP response to HTTPS client'. Since this is not fetching images, but only checking for existence, trade security for convenience.
* pre-install checks: add more during byo installLuke Meyer2017-06-141-69/+83
| | | | | | | | | | | | 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.
* docker checks: finish and refactorLuke Meyer2017-06-071-19/+3
| | | | | | | | | Incorporated docker_storage_driver into docker_storage as both need driver info. Corrected storage calculation to include VG free space, not just the current amount in the LV pool. Now makes no assumptions about pool name. Improved user messaging. Factored out some methods that can be shared with docker_image_availability.
* remove skopeo dependency on docker-pyjuanvallejo2017-05-191-78/+70
|
* improve error handling for missing varsjuanvallejo2017-05-191-48/+56
|
* Add test scaffold for docker_image_availability.pyRodolfo Carvalho2017-03-281-0/+11
| | | | | The intention is to set a starting point and let another team member work on the code to gain experience with tests.
* add docker_image_availability checkjuanvallejo2017-03-231-0/+168
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.