Hide Forgot
Description of problem: Now ansible playbook didn't restart docker after setting docker options, installation will fail when pulling image from specified registry since the docker options were not applied. Version-Release number of selected component (if applicable): openshift-ansible-3.0.57-1.git.0.c633ce7.el7.noarch How reproducible: Always Steps to Reproduce: 1.Set the following parameters in inventory to make a containerized install ... openshift_docker_additional_registries=$INTERNAL_DOCKER_REGISTRY openshift_docker_insecure_registries="0.0.0.0/0" openshift_image_tag=v3.2.0.3 2.Run ansible-playbook Actual results: failed: [openshift-x.com] => {"changed": true, "cmd": ["docker", "pull", "openshift3/ose:v3.2.0.3"], "delta": "0:00:10.785660", "end": "2016-03-16 06:10:01.772526", "rc": 1, "start": "2016-03-16 06:09:50.986866", "warnings": []} stderr: Error: image openshift3/ose:v3.2.0.3 not found stdout: Trying to pull repository registry.access.redhat.com/openshift3/ose ... not found Trying to pull repository docker.io/openshift3/ose ... not found Expected results: Should restart docker once change the docker configuration Additional info:
It seems this issue has been fixed in openshift-ansible-3.0.61-1.git.0.8150c45.el7.noarch When testing with the new openshift-ansible, docker would restart after changing the docker config: TASK: [docker | enable and start the docker service] ************************** ok: [openshift-x.x.com] => {"changed": false, "enabled": true, "name": "docker", "state": "started"} TASK: [docker | set_fact ] **************************************************** ok: [openshift-x.x.com] => {"ansible_facts": {"docker_service_status_changed": "start_result | changed"}} ... TASK: [docker | Set various docker options] *********************************** changed: [openshift-x.x.com] => {"backup": "", "changed": true, "msg": "line replaced"} NOTIFIED: [docker | restart docker] ******************************************* changed: [openshift-x.x.com] => {"changed": true, "name": "docker", "state": "started"}
Yeah this was probably fixed by https://github.com/openshift/openshift-ansible/pull/1614 marking ON_QA
Works well with latest openshift-ansible, move this to verified.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2016:1065