Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 2032790

Summary: [cee/sd][ceph-ansible] cephadm-adopt.yml looks for rhcs 5 repositories while "containerized_deployment: True"
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Tomas Petr <tpetr>
Component: Ceph-AnsibleAssignee: Guillaume Abrioux <gabrioux>
Status: CLOSED ERRATA QA Contact: Sunil Kumar Nagaraju <sunnagar>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 5.0CC: amsyedha, aschoen, ceph-eng-bugs, gabrioux, gmeno, kdreyer, nthomas, sunnagar, tserlin, vereddy, ykaul
Target Milestone: ---   
Target Release: 5.0z3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-ansible-6.0.20.1-1.el8cp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-12-16 18:52: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:

Description Tomas Petr 2021-12-15 08:45:06 UTC
Description of problem:
I am hitting issue when upgrading RHCS 4 to RHCS 5 with "ceph-ansible-6.0.20-1.el8cp.noarch"

1. Deployed RHCS 4 containerized version
2. upgrade to RHCS 5 with "ansible-playbook -v infrastructure-playbooks/rolling_update.yml"
3. run "ceph-ansible-6.0.20-1" of infrastructure-playbooks/cephadm-adopt.yml

First when run "infrastructure-playbooks/cephadm-adopt.yml" I run into issue:
---
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
Wednesday 15 December 2021  02:54:58 -0500 (0:00:00.487)       0:00:33.771 **** 
fatal: [mons-0]: FAILED! => 
  reason: Could not find or access '/usr/share/ceph-ansible/infrastructure-playbooks/redhat_community_repository.yml' on the Ansible Controller.
fatal: [osds-1]: FAILED! => 
  reason: Could not find or access '/usr/share/ceph-ansible/infrastructure-playbooks/redhat_community_repository.yml' on the Ansible Controller.
fatal: [osds-0]: FAILED! => 
  reason: Could not find or access '/usr/share/ceph-ansible/infrastructure-playbooks/redhat_community_repository.yml' on the Ansible Controller.
fatal: [mgmt-0]: FAILED! => 
  reason: Could not find or access '/usr/share/ceph-ansible/infrastructure-playbooks/redhat_community_repository.yml' on the Ansible Controller.
----

With all.yml:
---
ceph_docker_image_tag: "5-14"
ceph_docker_registry: "registry.redhat.io"
ceph_docker_image: rhceph/rhceph-5-rhel8
containerized_deployment: true

ceph_docker_registry_username: 7088399|quicklab
ceph_docker_registry_password:<redacted>
ceph_docker_registry: registry.redhat.io
ceph_docker_registry_auth: true
grafana_container_image: registry.redhat.io/rhceph/rhceph-5-dashboard-rhel8:5
node_exporter_container_image: registry.redhat.io/openshift4/ose-prometheus-node-exporter:v4.7
prometheus_container_image: registry.redhat.io/openshift4/ose-prometheus:v4.7
alertmanager_container_image: registry.redhat.io/openshift4/ose-prometheus-alertmanager:v4.7

fetch_directory: ~/ceph-ansible-keys
grafana_admin_password: admin
dashboard_admin_password: p@ssw0rd
upgrade_ceph_packages: True

monitor_interface: eth0

public_network: "10.74.176.0/20"
cluster_network: "192.168.1.0/28"
....
----


Looking into this I found BZ "https://bugzilla.redhat.com/show_bug.cgi?id=2026861"
so I added to above all.yml:
---
ceph_repository: rhcs
---

But then the playbook fails on looking for repositories, which is wrong, as this is containerized environment:
----
TASK [ceph-common : enable red hat storage monitor repository] *******************************************************************************************************************************************************************************
task path: /usr/share/ceph-ansible/roles/ceph-common/tasks/installs/prerequisite_rhcs_cdn_install.yml:2
Wednesday 15 December 2021  03:14:52 -0500 (0:00:00.480)       0:00:39.204 **** 
skipping: [mgmt-0] => changed=false 
  skip_reason: Conditional result was False
fatal: [osds-1]: FAILED! => changed=false 
  msg: rhceph-5-mon-for-rhel-8-x86_64-rpms is not a valid repository ID
  results:
  - rhceph-5-mon-for-rhel-8-x86_64-rpms is not a valid repository ID
fatal: [mons-0]: FAILED! => changed=false 
  msg: rhceph-5-mon-for-rhel-8-x86_64-rpms is not a valid repository ID
  results:
  - rhceph-5-mon-for-rhel-8-x86_64-rpms is not a valid repository ID
fatal: [osds-0]: FAILED! => changed=false 
  msg: rhceph-5-mon-for-rhel-8-x86_64-rpms is not a valid repository ID
  results:
  - rhceph-5-mon-for-rhel-8-x86_64-rpms is not a valid repository ID
----

Removing "ceph_repository: rhcs" I hit the previous issue from BZ#2026861
This is not an issue with ceph-ansible-6.0.15-1.el8cp.noarch

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

How reproducible:
always

Steps to Reproduce:
1. Deployed RHCS 4 containerized version
2. upgrade to RHCS 5 with "ansible-playbook -v infrastructure-playbooks/rolling_update.yml"
3. run "ceph-ansible-6.0.20-1" of infrastructure-playbooks/cephadm-adopt.yml

Actual results:
Fail

Expected results:
success

Additional info:

Comment 12 Veera Raghava Reddy 2021-12-15 16:23:31 UTC
Hi Tomas,
In QE testing we use the internal build before GA for Bug verification and regression. In the internal repository, we have access to these RPMs.

rhceph-5-mon-for-rhel-8-x86_64-rpms
rhceph-5-osd-for-rhel-8-x86_64-rpms


We had testing for CDN build - New install - http://magna002.ceph.redhat.com/cephci-jenkins/cephci-run-L1W46E/

In CI the upgrade test suite was not run on 5.0z2 CDN build.

Comment 18 errata-xmlrpc 2021-12-16 18:52: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:5199