Bug 1318200 - Docker didn't get restart after changing docker options
Summary: Docker didn't get restart after changing docker options
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.2.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Jason DeTiberus
QA Contact: Ma xiaoqiang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-16 09:24 UTC by Gaoyun Pei
Modified: 2016-07-04 00:46 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-12 16:38:48 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1065 0 normal SHIPPED_LIVE Red Hat OpenShift Enterprise atomic-openshift-utils bug fix update 2016-05-12 20:32:56 UTC

Description Gaoyun Pei 2016-03-16 09:24:35 UTC
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:

Comment 1 Gaoyun Pei 2016-03-18 08:43:06 UTC
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"}

Comment 2 Scott Dodson 2016-03-18 15:25:38 UTC
Yeah this was probably fixed by https://github.com/openshift/openshift-ansible/pull/1614 marking ON_QA

Comment 3 Gaoyun Pei 2016-03-21 04:05:55 UTC
Works well with latest openshift-ansible, move this to verified.

Comment 5 errata-xmlrpc 2016-05-12 16:38:48 UTC
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


Note You need to log in before you can comment on or make changes to this bug.