Bug 2026861

Summary: [Automation]: cephadm-adopt playbook fails include redhat_community_repository.yml task
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Ameena Suhani S H <amsyedha>
Component: Ceph-AnsibleAssignee: Guillaume Abrioux <gabrioux>
Status: CLOSED ERRATA QA Contact: Ameena Suhani S H <amsyedha>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 5.0CC: aschoen, ceph-eng-bugs, gabrioux, gmeno, nthomas, pnataraj, sewagner, vereddy, ykaul
Target Milestone: ---Keywords: Automation, TestBlocker, UpgradeBlocker
Target Release: 5.0z2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-ansible-6.0.20-1.el8cp Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-12-08 13:57:04 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: 2027411    
Bug Blocks: 2000412, 2026639    

Description Ameena Suhani S H 2021-11-26 09:49:06 UTC
Description of problem:
cephadm-adopt playbook fails  at below task

TASK [ceph-common : include redhat_community_repository.yml] *******************
task path: /usr/share/ceph-ansible/roles/ceph-common/tasks/installs/configure_redhat_repository_installation.yml:2
Thursday 25 November 2021  13:12:39 -0500 (0:00:00.302)       0:00:37.304 ***** 

2021-11-25 18:12:36,853 - ceph.ceph - INFO - fatal: [ceph-ci-jvvei-hj4frp-node1-installer]: FAILED! => 
  reason: Could not find or access '/usr/share/ceph-ansible/infrastructure-playbooks/redhat_community_repository.yml' on the Ansible Controller.

2021-11-25 18:12:36,855 - ceph.ceph - INFO - fatal: [ceph-ci-jvvei-hj4frp-node2]: FAILED! => 
  reason: Could not find or access '/usr/share/ceph-ansible/infrastructure-playbooks/redhat_community_repository.yml' on the Ansible Controller.
fatal: [ceph-ci-jvvei-hj4frp-node3]: FAILED! => 
  reason: Could not find or access '/usr/share/ceph-ansible/infrastructure-playbooks/redhat_community_repository.yml' on the Ansible Controller.

2021-11-25 18:12:36,855 - ceph.ceph - INFO - fatal: [ceph-ci-jvvei-hj4frp-node5]: FAILED! => 
  reason: Could not find or access '/usr/share/ceph-ansible/infrastructure-playbooks/redhat_community_repository.yml' on the Ansible Controller.

2021-11-25 18:12:36,856 - ceph.ceph - INFO - fatal: [ceph-ci-jvvei-hj4frp-node4]: FAILED! => 
  reason: Could not find or access '/usr/share/ceph-ansible/infrastructure-playbooks/redhat_community_repository.yml' on the Ansible Controller.

2021-11-25 18:12:36,859 - ceph.ceph - INFO - fatal: [ceph-ci-jvvei-hj4frp-node6]: FAILED! => 
  reason: Could not find or access '/usr/share/ceph-ansible/infrastructure-playbooks/redhat_community_repository.yml' on the Ansible Controller.
fatal: [ceph-ci-jvvei-hj4frp-node7]: FAILED! => 
  reason: Could not find or access '/usr/share/ceph-ansible/infrastructure-playbooks/redhat_community_repository.yml' on the Ansible Controller.
fatal: [ceph-ci-jvvei-hj4frp-node9]: FAILED! => 
  reason: Could not find or access '/usr/share/ceph-ansible/infrastructure-playbooks/redhat_community_repository.yml' on the Ansible Controller

Logs: http://magna002.ceph.redhat.com/cephci-jenkins/cephci-run-HJ4FRP/Upgrade_containerized_ceph_to_5.x_latest_0.log


Version-Release number of selected component (if applicable):
ceph-ansible-6.0.19-1.el8cp.noarch

How reproducible:


Steps to Reproduce:
1.deploy 4.x bare-metal cluster on rhel8
2.use switch rpm to container
3.upgrade to rhcs5 using ceph-ansible
4.run cephadm-adopt playbook

Logs: http://magna002.ceph.redhat.com/cephci-jenkins/cephci-run-HJ4FRP/Upgrade_containerized_ceph_to_5.x_latest_0.log

Actual results:

cephadm-adopt fails at above task 

Expected results:
cephadm-adopt should be successful.

Comment 4 Ameena Suhani S H 2021-11-30 07:14:26 UTC
Any updates, the bug status is still on NEW?

Comment 5 Sebastian Wagner 2021-11-30 09:12:35 UTC
https://github.com/ceph/ceph-ansible/pull/7002 was already merged upstream yesterday

Comment 6 Guillaume Abrioux 2021-11-30 09:28:24 UTC
(In reply to Sebastian Wagner from comment #5)
> https://github.com/ceph/ceph-ansible/pull/7002 was already merged upstream
> yesterday

the PR upstream was only merged in master.
upstream backport are still opened (waiting for the CI to pass)

Comment 7 Guillaume Abrioux 2021-11-30 20:15:52 UTC
v6.0.20 released upstream
https://github.com/ceph/ceph-ansible/releases/tag/v6.0.20

Comment 12 Guillaume Abrioux 2021-12-01 07:29:50 UTC
*** Bug 2026738 has been marked as a duplicate of this bug. ***

Comment 13 Ameena Suhani S H 2021-12-02 18:33:30 UTC
Verified using 
# rpm -qa|grep cephadm
cephadm-16.2.0-146.el8cp.noarch
# rpm -qa|grep ceph-ansible
ceph-ansible-6.0.20-1.el8cp.noarch

steps 
1. installed 4.x in containers
2. upgraded to 5.x (ceph-ansible)
3. ran cephadm-adopt

Result:Cluster got successfully adopted to cephadm

Comment 15 errata-xmlrpc 2021-12-08 13:57:04 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 (Red Hat Ceph Storage 5.0 Bug Fix update), 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-2021:5020