Bug 1302276 - Failed to install rpm packages with specified version
Summary: Failed to install rpm packages with specified version
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Jason DeTiberus
QA Contact: Ma xiaoqiang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-27 10:57 UTC by Anping Li
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:37:40 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 Anping Li 2016-01-27 10:57:28 UTC
Description of problem:
Ansible failed to install atomic-openshift-master 3.1.0.4. Because ansible already installed the latest atomic-openshift rpm as dependency of oc client before install atomic-openshift-master, that would cause version conflict. Seem like when installing oc client, installer did not apply the specified version, is using "latest" version.

Version-Release number of selected component (if applicable):
atomic-openshift-utils-3.0.35

How reproducible:
always

Steps to Reproduce:
1. register to RHSM channel and enable ose-3.1 channel
2. set openshift_pkg_version=-3.1.0.4 in ansible inventory file
3. ansible-playbook -i  /root/config/ose3104 /usr/share/ansible/openshift-ansible/playbooks/byo/config.yml


Actual results:
TASK: [openshift_master | Install Master package] ***************************** 
failed: [10.14.6.133] => {"changed": true, "rc": 1, "results": ["Loaded plugins: product-id, search-disabled-repos, subscription-manager\nResolving Dependencies\n--> Running transaction check\n---> Package atomic-openshift-master.x86_64 0:3.1.0.4-1.git.15.5e061c3.el7aos will be installed\n--> Processing Dependency: atomic-openshift = 3.1.0.4-1.git.15.5e061c3.el7aos for package: atomic-openshift-master-3.1.0.4-1.git.15.5e061c3.el7aos.x86_64\n--> Finished Dependency Resolution\nError: Package: atomic-openshift-master-3.1.0.4-1.git.15.5e061c3.el7aos.x86_64 (rhel-7-server-ose-3.1-rpms)\n           Requires: atomic-openshift = 3.1.0.4-1.git.15.5e061c3.el7aos\n           Installed: atomic-openshift-3.1.1.6-1.git.0.b57e8bd.el7aos.x86_64 (@rhel-7-server-ose-3.1-rpms)\n               atomic-openshift = 3.1.1.6-1.git.0.b57e8bd.el7aos\n           Available: atomic-openshift-3.1.0.4-1.git.4.b6c7cd2.el7aos.x86_64 (rhel-7-server-ose-3.1-rpms)\n               atomic-openshift = 3.1.0.4-1.git.4.b6c7cd2.el7aos\n           Available: atomic-openshift-3.1.0.4-1.git.10.ec10652.el7aos.x86_64 (rhel-7-server-ose-3.1-rpms)\n               atomic-openshift = 3.1.0.4-1.git.10.ec10652.el7aos\n           Available: atomic-openshift-3.1.0.4-1.git.15.5e061c3.el7aos.x86_64 (rhel-7-server-ose-3.1-rpms)\n               atomic-openshift = 3.1.0.4-1.git.15.5e061c3.el7aos\n**********************************************************************\nyum can be configured to try to resolve such errors by temporarily enabling\ndisabled repos and searching for missing dependencies.\nTo enable this functionality please set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf\n**********************************************************************\n\n You could try using --skip-broken to work around the problem\n You could try running: rpm -Va --nofiles --nodigest\n"]}
msg: Error: Package: atomic-openshift-master-3.1.0.4-1.git.15.5e061c3.el7aos.x86_64 (rhel-7-server-ose-3.1-rpms)
           Requires: atomic-openshift = 3.1.0.4-1.git.15.5e061c3.el7aos
           Installed: atomic-openshift-3.1.1.6-1.git.0.b57e8bd.el7aos.x86_64 (@rhel-7-server-ose-3.1-rpms)
               atomic-openshift = 3.1.1.6-1.git.0.b57e8bd.el7aos
           Available: atomic-openshift-3.1.0.4-1.git.4.b6c7cd2.el7aos.x86_64 (rhel-7-server-ose-3.1-rpms)
               atomic-openshift = 3.1.0.4-1.git.4.b6c7cd2.el7aos
           Available: atomic-openshift-3.1.0.4-1.git.10.ec10652.el7aos.x86_64 (rhel-7-server-ose-3.1-rpms)
               atomic-openshift = 3.1.0.4-1.git.10.ec10652.el7aos
           Available: atomic-openshift-3.1.0.4-1.git.15.5e061c3.el7aos.x86_64 (rhel-7-server-ose-3.1-rpms)
               atomic-openshift = 3.1.0.4-1.git.15.5e061c3.el7aos


FATAL: all hosts have already failed -- aborting

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

10.14.6.133                : ok=165  changed=19   unreachable=0    failed=1   
localhost                  : ok=10   changed=0    unreachable=0    failed=0

Expected results:
The old packages can be installed.

Additional info:

Comment 1 Brenton Leanhardt 2016-02-01 20:21:12 UTC
https://github.com/openshift/openshift-ansible/pull/1276 was merged in to openshift-ansible/master recently.  Would you mind re-testing with a clone from github?

Comment 2 Anping Li 2016-02-02 05:01:07 UTC
The specified version of packages can be installed. so move bug to verified.

Comment 4 errata-xmlrpc 2016-05-12 16:37:40 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.