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
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"]}
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.
Sorry for the regression.
Will be in v3.0.32 when that is tagged upstream.
https://github.com/ceph/ceph-ansible/releases/tag/v3.0.32
Verified.=
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