Bug 1565850

Summary: [ubuntu] rhcs packages do not override ubuntu.com packages
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vasu Kulkarni <vakulkar>
Component: Ceph-AnsibleAssignee: Sébastien Han <shan>
Status: CLOSED ERRATA QA Contact: Vasu Kulkarni <vakulkar>
Severity: medium Docs Contact: Aron Gunn <agunn>
Priority: unspecified    
Version: 3.0CC: adeza, agunn, aschoen, ceph-eng-bugs, ceph-qe-bugs, gmeno, kdreyer, nthomas, sankarshan, tchandra, vereddy
Target Milestone: z3   
Target Release: 3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-ansible-3.0.32-1.el7cp Ubuntu: ceph-ansible_3.0.32-2redhat1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-05-15 18:20:31 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:
Embargoed:
Bug Depends On:    
Bug Blocks: 1600697    

Description Vasu Kulkarni 2018-04-10 22:50:14 UTC
Description of problem:

when installing with rhcs variables on ubuntu distro, ceph-ansible should uninstall any upstream packages that come default with ubuntu so that the installation can continue without any conflicts

eg:

cephuser@ceph-clacroix-run125-node3-mon:~$ dpkg -l | grep rbd
ii  librbd1                              10.2.9-0ubuntu0.16.04.1                    amd64        RADOS block device client library
ii  python-rbd                           10.2.9-0ubuntu0.16.04.1                    amd64        Python libraries for the Ceph librbd library
cephuser@ceph-clacroix-run125-node3-mon:~$ dpkg -l | grep rados
ii  librados2                            10.2.9-0ubuntu0.16.04.1                    amd64        RADOS distributed object store client library
ii  libradosstriper1                     10.2.9-0ubuntu0.16.04.1                    amd64        RADOS striping interface
ii  python-rados                         10.2.9-0ubuntu0.16.04.1                    amd64        Python libraries for the Ceph librados library
cephuser@ceph-clacroix-run125-node3-mon:~$ dpkg -l | grep ceph
ii  ceph-common                          10.2.9-0ubuntu0.16.04.1                    amd64        common utilities to mount and interact with a ceph storage cluster
ii  libcephfs1                           10.2.9-0ubuntu0.16.04.1                    amd64        Ceph distributed file system client library
ii  python-cephfs                        10.2.9-0ubuntu0.16.04.1                    amd64        Python libraries for the Ceph libcephfs library

Comment 3 Vasu Kulkarni 2018-04-10 22:51:38 UTC
TASK [ceph-common : install red hat storage ceph mon for debian] ***************
task path: /usr/share/ceph-ansible/roles/ceph-common/tasks/installs/install_debian_rhcs_packages.yml:7

2018-04-10 15:16:34,553 - ceph.ceph - INFO - fatal: [ceph-clacroix-run125-node1-mon]: FAILED! => {"cache_update_time": 1523398548, "cache_updated": false, "changed": false, "failed": true, "msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\"     install 'ceph-mon'' failed: E: Unable to correct problems, you have held broken packages.\n", "rc": 100, "stderr": "E: Unable to correct problems, you have held broken packages.\n", "stderr_lines": ["E: Unable to correct problems, you have held broken packages."], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nSome packages could not be installed. This may mean that you have\nrequested an impossible situation or if you are using the unstable\ndistribution that some required packages have not yet been created\nor been moved out of Incoming.\nThe following information may help to resolve the situation:\n\nThe following packages have unmet dependencies:\n ceph-mon : Depends: ceph-base (= 10.2.2-29redhat1xenial) bu
2018-04-10 15:16:34,553 - ceph.ceph - INFO - t it is not going to be installed\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "Some packages could not be installed. This may mean that you have", "requested an impossible situation or if you are using the unstable", "distribution that some required packages have not yet been created", "or been moved out of Incoming.", "The following information may help to resolve the situation:", "", "The following packages have unmet dependencies:", " ceph-mon : Depends: ceph-base (= 10.2.2-29redhat1xenial) but it is not going to be installed"]}

2018-04-10 15:16:34,594 - ceph.ceph - INFO - fatal: [ceph-clacroix-run125-node3-mon]: FAILED! => {"cache_update_time": 1523398548, "cache_updated": false, "changed": false, "failed": true, "msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\"     install 'ceph-mon'' failed: E: Unable to correct problems, you have held broken packages.\n", "rc": 100, "stderr": "E: Unable to correct problems, you have held broken packages.\n", "stderr_lines": ["E: Unable to correct problems, you have held broken packages."], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nSome packages could not be installed. This may mean that you have\nrequested an impossible situation or if you are using the unstable\ndistribution that some required packages have not yet been created\nor been moved out of Incoming.\nThe following information may help to resolve the situation:\n\nThe following packages have unmet dependencies:\n ceph-mon : Depends: ceph-base (= 10.2.2-29redhat1xenial) bu
2018-04-10 15:16:34,595 - ceph.ceph - INFO - t it is not going to be installed\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "Some packages could not be installed. This may mean that you have", "requested an impossible situation or if you are using the unstable", "distribution that some required packages have not yet been created", "or been moved out of Incoming.", "The following information may help to resolve the situation:", "", "The following packages have unmet dependencies:", " ceph-mon : Depends: ceph-base (= 10.2.2-29redhat1xenial) but it is not going to be installed"]}

2018-04-10 15:16:34,743 - ceph.ceph - INFO - fatal: [ceph-clacroix-run125-node2-mon]: FAILED! => {"cache_update_time": 1523398549, "cache_updated": false, "changed": false, "failed": true, "msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\"     install 'ceph-mon'' failed: E: Unable to correct problems, you have held broken packages.\n", "rc": 100, "stderr": "E: Unable to correct problems, you have held broken packages.\n", "stderr_lines": ["E: Unable to correct problems, you have held broken packages."], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nSome packages could not be installed. This may mean that you have\nrequested an impossible situation or if you are using the unstable\ndistribution that some required packages have not yet been created\nor been moved out of Incoming.\nThe following information may help to resolve the situation:\n\nThe following packages have unmet dependencies:\n ceph-mon : Depends: ceph-base (= 10.2.2-29redhat1xenial) bu
2018-04-10 15:16:34,743 - ceph.ceph - INFO - t it is not going to be installed\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "Some packages could not be installed. This may mean that you have", "requested an impossible situation or if you are using the unstable", "distribution that some required packages have not yet been created", "or been moved out of Incoming.", "The following information may help to resolve the situation:", "", "The following packages have unmet dependencies:", " ceph-mon : Depends: ceph-base (= 10.2.2-29redhat1xenial) but it is not going to be installed"]}

Comment 4 Ken Dreyer (Red Hat) 2018-04-16 22:43:24 UTC
ceph-ansible should configure Apt repositories with pinning, so that the RHCS packages always override whatever is installed.

This was added to ceph-ansible in https://github.com/ceph/ceph-ansible/issues/1182 , and accidentally removed in https://github.com/ceph/ceph-ansible/pull/1734 . rhcs.pref.j2 is still in the tree, so we should reuse it.

Comment 5 Sébastien Han 2018-04-17 14:01:45 UTC
Sorry for the regression.

Comment 6 Ken Dreyer (Red Hat) 2018-04-27 22:52:05 UTC
Will be in v3.0.32 when that is tagged upstream.

Comment 12 Vasu Kulkarni 2018-05-11 02:55:39 UTC
Verified.=

Comment 15 errata-xmlrpc 2018-05-15 18:20:31 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-2018:1563