Bug 1327063

Summary: reset-failed docker.service failed if the docker 1.8.2 service is disabled
Product: OpenShift Container Platform Reporter: Anping Li <anli>
Component: InstallerAssignee: Scott Dodson <sdodson>
Status: CLOSED ERRATA QA Contact: Ma xiaoqiang <xiama>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.2.0CC: aos-bugs, dgoodwin, jokerman, mmccomas, tdawson, xtian
Target Milestone: ---   
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:40:36 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:

Description Anping Li 2016-04-14 08:12:14 UTC
Description of problem:

The installation failed due to "stderr: Failed to reset failed state of unit docker.service: Unit docker.service is not loaded." 
The root causes is that the docker service is disabled by default in 1.8.2.  so if we installed docker 1.8.2 and didn't enabled docker service, when we reset-failed docker service after install docker 1.9.1, it will failed. I think we should ignore this failure and continue our job.


Version-Release number of selected component (if applicable):
openshift-ansible/master

How reproducible:
always

Steps to Reproduce:
1. install docker 1.8.2 and don't enable docker service
2. install docker 1.9.1
3. systemctl reset-failed docker.service

Actual results:
TASK: [docker | Downgrade docker if necessary] ******************************** 
skipping: [osehost1-master1.example.com]

TASK: [docker | Install docker] *********************************************** 
<osehost1-master1.example.com> ESTABLISH CONNECTION FOR USER: root
<osehost1-master1.example.com> REMOTE_MODULE yum name=docker-1.9.1 state=present
<osehost1-master1.example.com> EXEC ssh -C -tt -v -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/root/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 osehost1-master1.example.com /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1460616582.06-213111130731292 && echo $HOME/.ansible/tmp/ansible-tmp-1460616582.06-213111130731292'
<osehost1-master1.example.com> PUT /tmp/tmpmwDSr9 TO /root/.ansible/tmp/ansible-tmp-1460616582.06-213111130731292/yum
<osehost1-master1.example.com> EXEC ssh -C -tt -v -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/root/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 osehost1-master1.example.com /bin/sh -c 'LANG=C LC_CTYPE=C /usr/bin/python -tt /root/.ansible/tmp/ansible-tmp-1460616582.06-213111130731292/yum; rm -rf /root/.ansible/tmp/ansible-tmp-1460616582.06-213111130731292/ >/dev/null 2>&1'
changed: [osehost1-master1.example.com] => {"changed": true, "msg": "", "rc": 0, "results": ["Loaded plugins: product-id, search-disabled-repos, subscription-manager\nThis system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.\nResolving Dependencies\n--> Running transaction check\n---> Package docker.x86_64 0:1.8.2-8.el7 will be updated\n---> Package docker.x86_64 0:1.9.1-25.el7 will be an update\n--> Processing Dependency: docker-forward-journald = 1.9.1-25.el7 for package: docker-1.9.1-25.el7.x86_64\n--> Processing Dependency: docker-selinux >= 1.9.1-25.el7 for package: docker-1.9.1-25.el7.x86_64\n--> Running transaction check\n---> Package docker-forward-journald.x86_64 0:1.9.1-25.el7 will be installed\n---> Package docker-selinux.x86_64 0:1.8.2-8.el7 will be updated\n---> Package docker-selinux.x86_64 0:1.9.1-25.el7 will be an update\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package                     Arch       Version             Repository     Size\n================================================================================\nUpdating:\n docker                      x86_64     1.9.1-25.el7        docker191      13 M\nInstalling for dependencies:\n docker-forward-journald     x86_64     1.9.1-25.el7        docker191     822 k\nUpdating for dependencies:\n docker-selinux              x86_64     1.9.1-25.el7        docker191      68 k\n\nTransaction Summary\n================================================================================\nInstall             ( 1 Dependent package)\nUpgrade  1 Package  (+1 Dependent package)\n\nTotal download size: 14 M\nDownloading packages:\nDelta RPMs disabled because /usr/bin/applydeltarpm not installed.\n--------------------------------------------------------------------------------\nTotal                                              329 kB/s |  14 MB  00:41     \n
Running transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n  Updating   : docker-selinux-1.9.1-25.el7.x86_64                           1/5 \n  Installing : docker-forward-journald-1.9.1-25.el7.x86_64                  2/5 \n  Updating   : docker-1.9.1-25.el7.x86_64                                   3/5 \nwarning: /etc/sysconfig/docker-storage created as /etc/sysconfig/docker-storage.rpmnew\n  Cleanup    : docker-1.8.2-8.el7.x86_64                                    4/5 \n  Cleanup    : docker-selinux-1.8.2-8.el7.x86_64                            5/5 \n  Verifying  : docker-forward-journald-1.9.1-25.el7.x86_64                  1/5 \n  Verifying  : docker-1.9.1-25.el7.x86_64                                   2/5 \n  Verifying  : docker-selinux-1.9.1-25.el7.x86_64                           3/5 \n  Verifying  : docker-1.8.2-8.el7.x86_64                                    4/5 \n  Verifying  : docker-selinux-1.8.2-8.el7.x86_64                            5/5 \n\nDependency Installed:\n  docker-forward-journald.x86_64 0:1.9.1-25.el7                                 \n\nUpdated:\n  docker.x86_64 0:1.9.1-25.el7                                                  \n\nDependency Updated:\n  docker-selinux.x86_64 0:1.9.1-25.el7                                          \n\nComplete!\n"]}

TASK: [docker | Reset docker service state] *********************************** 
<osehost1-master1.example.com> ESTABLISH CONNECTION FOR USER: root
<osehost1-master1.example.com> REMOTE_MODULE command systemctl reset-failed docker.service
<osehost1-master1.example.com> EXEC ssh -C -tt -v -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/root/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 osehost1-master1.example.com /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1460616654.83-48823024161449 && echo $HOME/.ansible/tmp/ansible-tmp-1460616654.83-48823024161449'
<osehost1-master1.example.com> PUT /tmp/tmpVgafFd TO /root/.ansible/tmp/ansible-tmp-1460616654.83-48823024161449/command
<osehost1-master1.example.com> EXEC ssh -C -tt -v -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/root/.ansible/cp/ansible-ssh-%h-%p-%r" -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 osehost1-master1.example.com /bin/sh -c 'LANG=C LC_CTYPE=C /usr/bin/python /root/.ansible/tmp/ansible-tmp-1460616654.83-48823024161449/command; rm -rf /root/.ansible/tmp/ansible-tmp-1460616654.83-48823024161449/ >/dev/null 2>&1'
failed: [osehost1-master1.example.com] => {"changed": true, "cmd": ["systemctl", "reset-failed", "docker.service"], "delta": "0:00:00.021722", "end": "2016-04-14 14:50:54.989365", "rc": 1, "start": "2016-04-14 14:50:54.967643", "warnings": []}
stderr: Failed to reset failed state of unit docker.service: Unit docker.service is not loaded.

FATAL: all hosts have already failed -- aborting

PLAY RECAP ******************************************************************** 
           to retry, use: --limit @/root/config.retry

localhost                  : ok=17   changed=0    unreachable=0    failed=0   
osehost1-master1.example.com : ok=82   changed=17   unreachable=0    failed=1   
osehost1-node1.example.com : ok=7    changed=2    unreachable=0    failed=0   

Expected results:


Additional info:

Comment 2 Troy Dawson 2016-04-18 16:05:06 UTC
Should be in openshift-ansible-3.0.80-1.git.0.2f46898.el7, which is built and ready for qe testing.

Comment 3 Anping Li 2016-04-19 01:19:35 UTC
It works with openshift-ansible-3.0.80

Comment 5 errata-xmlrpc 2016-05-12 16:40:36 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