Bug 1334187 - Fail to downgrade docker from docker-1.9.1-40 to docker-1.8.2
Summary: Fail to downgrade docker from docker-1.9.1-40 to docker-1.8.2
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Scott Dodson
QA Contact: Ma xiaoqiang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-09 06:52 UTC by Gaoyun Pei
Modified: 2016-07-04 00:46 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Due to docker-1.9.1-40 packaging changes it's no longer possible to use `yum downgrade` to downgrade from docker-1.9.1 to docker-1.8.2 as required for OSE 3.1 and 3.0 installations. The installer has been updated to use `yum swap` to perform this downgrade when necessary.
Clone Of:
Environment:
Last Closed: 2016-06-07 10:56:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1208 0 normal SHIPPED_LIVE Red Hat OpenShift Enterprise atomic-openshift-utils bug fix update 2016-06-07 14:55:01 UTC

Description Gaoyun Pei 2016-05-09 06:52:30 UTC
Description of problem:
Fail to downgrade docker from docker-1.9.1-40 to docker-1.8.2 when installing ose-3.1


Version-Release number of selected component (if applicable):
openshift-ansible-3.0.88-1.git.0.31c3daf.el7.noarch.rpm    

How reproducible:
Always

Steps to Reproduce:
1. Install ose-3.1 env on RHEL-72 hosts with docker-1.9.1-40 pre-installed 


Actual results:
TASK: [docker | Downgrade docker if necessary] ******************************** 
failed: [openshift-x.com] => {"changed": true, "cmd": ["yum", "downgrade", "-y", "docker-1.8.2"], "delta": "0:00:02.177351", "end": "2016-05-08 15:44:15.269851", "rc": 1, "start": "2016-05-08 15:44:13.092500", "warnings": ["Consider using yum module rather than running yum"]}
stderr: 

Transaction check error:
  file /etc/sysconfig/docker from install of docker-1.8.2-10.el7.x86_64 conflicts with file from package docker-common-1.9.1-40.el7.x86_64
  file /usr/bin/docker from install of docker-1.8.2-10.el7.x86_64 conflicts with file from package docker-common-1.9.1-40.el7.x86_64


Expected results:
Downgrade docker successfully


Additional info:

Comment 1 Scott Dodson 2016-05-09 13:01:40 UTC
Proposed fix https://github.com/openshift/openshift-ansible/pull/1866

Comment 2 Gaoyun Pei 2016-05-10 06:23:37 UTC
Verify this with latest master branch. Will move this to verified once openshift-ansible 3.0.89-1 package was included in Errata puddle.

During installation of ose-3.1, docker-1.9.1-40 could be downgraded to docker-1.8.2 successfully. 

TASK: [docker | Downgrade docker if necessary] ******************************** 
changed: [openshift-x.com] => {"changed": true, "cmd": ["yum", "swap", "-y", "docker-*", "docker-*1.8.2"], "delta": "0:00:21.954746", "end": "2016-05-09 22:27:07.736920", "rc": 0, "start": "2016-05-09 22:26:45.782174", "stderr": "", "stdout": "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-10.el7 will be installed\n---> Package docker.x86_64 0:1.9.1-40.el7 will be erased\n---> Package docker-common.x86_64 0:1.9.1-40.el7 will be erased\n---> Package docker-forward-journald.x86_64 0:1.9.1-40.el7 will be erased\n---> Package docker-logrotate.x86_64 0:1.8.2-10.el7 will be installed\n---> Package docker-selinux.x86_64 0:1.8.2-10.el7 will be installed\n---> Package docker-selinux.x86_64 0:1.9.1-40.el7 will be erased\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n================================================================================\n Package                     Arch       Version          Repository        Size\n================================================================================\nInstalling:\n docker                      x86_64     1.8.2-10.el7     rhel-7-extra      10 M\n docker-logrotate            x86_64     1.8.2-10.el7     rhel-7-extra      46 k\n docker-selinux              x86_64     1.8.2-10.el7     rhel-7-extra      63 k\nRemoving:\n docker                      x86_64     1.9.1-40.el7     @docker-19        37 M\n docker-common               x86_64     1.9.1-40.el7     @docker-19       2.4 k\n docker-forward-journald     x86_64     1.9.1-40.el7     @docker-19       3.2 M\n docker-selinux              x86_64     1.9.1-40.el7     @docker-19        27 k\n\nTransaction Summary\n================================================================================\nInstall  3 Packages\nRemove   4 Packages\n\nTotal download size: 10 M\nDownloading packages:\n--------------------------------------------------------------------------------\nTotal                                               28 MB/s |  10 MB  00:00     \nRunning transaction check\nRunning transaction test\nTransaction test succeeded\nRunning transaction\n  Installing : docker-selinux-1.8.2-10.el7.x86_64                           1/7 \n  Installing : docker-1.8.2-10.el7.x86_64                                   2/7 \n  Installing : docker-logrotate-1.8.2-10.el7.x86_64                         3/7 \n  Cleanup    : docker-1.9.1-40.el7.x86_64                                   4/7 \n  Erasing    : docker-common-1.9.1-40.el7.x86_64                            5/7 \n  Cleanup    : docker-selinux-1.9.1-40.el7.x86_64                           6/7 \n  Erasing    : docker-forward-journald-1.9.1-40.el7.x86_64                  7/7 \n  Verifying  : docker-1.8.2-10.el7.x86_64                                   1/7 \n  Verifying  : docker-selinux-1.8.2-10.el7.x86_64                           2/7 \n  Verifying  : docker-logrotate-1.8.2-10.el7.x86_64                         3/7 \n  Verifying  : docker-common-1.9.1-40.el7.x86_64                            4/7 \n  Verifying  : docker-1.9.1-40.el7.x86_64                                   5/7 \n  Verifying  : docker-selinux-1.9.1-40.el7.x86_64                           6/7 \n  Verifying  : docker-forward-journald-1.9.1-40.el7.x86_64                  7/7 \n\nRemoved:\n  docker.x86_64 0:1.9.1-40.el7                                                  \n  docker-common.x86_64 0:1.9.1-40.el7                                           \n  docker-forward-journald.x86_64 0:1.9.1-40.el7                                 \n  docker-selinux.x86_64 0:1.9.1-40.el7                                          \n\nInstalled:\n  docker.x86_64 0:1.8.2-10.el7          docker-logrotate.x86_64 0:1.8.2-10.el7 \n  docker-selinux.x86_64 0:1.8.2-10.el7 \n\nComplete!", "warnings": ["Consider using yum module rather than running yum"]}

Comment 4 Gaoyun Pei 2016-05-17 05:17:55 UTC
Test with openshift-ansible-3.0.90-1.git.0.a077b68.el7.noarch.rpm, docker-1.9.1-40 could be downgraded to docker-1.8.2 successfully

Comment 6 errata-xmlrpc 2016-06-07 10:56:01 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:1208


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