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 12Veera 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.
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