summaryrefslogtreecommitdiffstats
path: root/roles/openshift_health_checker/test/docker_image_availability_test.py
Commit message (Collapse)AuthorAgeFilesLines
* docker_image_availability: containerized overridesLuke Meyer2018-01-251-5/+34
| | | | Respect container image name override variables.
* Remove openshift.common.{is_atomic|is_containerized}Michael Gugino2017-12-201-27/+14
| | | | | 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-1/+1
| | | | | | | | 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.
* registry-console: align image and checkLuke Meyer2017-11-151-2/+2
| | | | | enable option to configure basename in image docker_image_availability check: follow registry-console image options
* reconcile registry-console and docker_image_availabilityLuke Meyer2017-11-061-5/+41
| | | | | | | | | | | | Fixes bug 1497310 https://bugzilla.redhat.com/show_bug.cgi?id=1497310 The registry console is a special case in more than one way. This adds logic to incorporate the openshift_cockpit_deployer_* variables into determining what its image will be in docker_image_availability. Along the way I noticed the origin and enterprise templates for this were not consistent. Now they are, and the example hosts file is updated.
* docker_image_availability: credentials to skopeoMichael Gugino2017-10-061-40/+9
| | | | | | | | | | | | | | | | | | Currently, docker_image_availability health_check does not support authenticated registries. This commit adds the '--creds=' option to skopeo if needed to support authentication credentials. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1316341 Some other fixes to handle docker config better: Should now account properly for blocked registries, insecure registries, multiple additional registries, and oreg_url registry with or without credentials. Output on failure should be clearer about what was tried. Fixed a bug in the action_plugin_test exposed by these changes.
* openshift_checks: lb and nfs do not need dockerLuke Meyer2017-10-041-2/+2
| | | | | fixes bug 1496760 https://bugzilla.redhat.com/show_bug.cgi?id=1496760
* openshift_checks: use oo group names everywhereLuke Meyer2017-10-041-10/+10
|
* Migrate enterprise registry logic to docker roleMichael Gugino2017-09-271-5/+5
| | | | | | | | | | | | | Currently, the enterprise registry to forcefully added in openshift_facts. Recently, the docker role has been modified to consume registry variables directly, bypassing openshift_facts. This commit cleans up unused code in openshift_facts, and migrates enterprise registry logic to the docker role. Fixes: https://github.com/openshift/openshift-ansible/issues/5557
* Cleanup old deployment typesMichael Gugino2017-09-201-2/+33
| | | | | | | | | | | Previously, openshift-ansible supported various types of deployments using the variable "openshift_deployment_type" Currently, openshift-ansible only supports two deployment types, "origin" and "openshift-enterprise". This commit removes all logic and references to deprecated deployment types.
* docker_image_availability: probe registry connectivityLuke Meyer2017-09-121-99/+82
| | | | | | | | | | | | 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-6/+12
|
* openshift_checks: refactor to internalize task_varsLuke Meyer2017-07-251-19/+18
| | | | | | | | | 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.
* docker_image_availability: fix containerized etcdLuke Meyer2017-06-301-0/+14
| | | | fixes bug 1466622 - docker_image_availability check on etcd host failed for 'openshift_image_tag' is undefined
* pre-install checks: add more during byo installLuke Meyer2017-06-141-11/+88
| | | | | | | | | | | | 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-9/+15
| | | | | | | | | 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-74/+73
|
* improve error handling for missing varsjuanvallejo2017-05-191-18/+169
|
* Add test scaffold for docker_image_availability.pyRodolfo Carvalho2017-03-281-0/+28
The intention is to set a starting point and let another team member work on the code to gain experience with tests.