| Summary: | Docker didn't get restart after changing docker options | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Gaoyun Pei <gpei> |
| Component: | Installer | Assignee: | Jason DeTiberus <jdetiber> |
| Status: | CLOSED ERRATA | QA Contact: | Ma xiaoqiang <xiama> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 3.2.0 | CC: | aos-bugs, bleanhar, jokerman, mmccomas, xtian |
| Target Milestone: | --- | Keywords: | TestBlocker |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-05-12 16:38:48 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
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 |
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: