Skip to content

Commit

Permalink
Enable RHCS 7 in 17 TripleO deployment
Browse files Browse the repository at this point in the history
For adoption, we need to align ci-framework to deploy RHCS 7 with 17.1.
For this reason we need to both patch containers-prepare-parameters with
the Ceph 7 container images, and remove the --yes-i-know unrecognized
parameter.

Signed-off-by: Francesco Pantano <[email protected]>
  • Loading branch information
fmount authored and openshift-merge-bot[bot] committed Oct 23, 2024
1 parent faafdba commit a1d6c0c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
15 changes: 14 additions & 1 deletion hooks/playbooks/adoption_deploy_ceph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,19 @@
state: present
loop: "{{ _tripleo_nodes }}"

# NOTE: TripleO has the hardcoded --yes-i-know option that is not valid anymore
# in RHCS 7. TripleO does not receive any new patch both upstream and downstream
# (it is a retired project), hence the only option we have is to patch the
# current code to not have that line.
- name: Patch Ceph bootstrap task
become: true
delegate_to: "osp-undercloud-0"
ansible.builtin.lineinfile:
path: "/usr/share/ansible/roles/tripleo_cephadm/tasks/bootstrap.yaml"
state: absent
regexp: '--yes-i-know'
backup: true

- name: Deploy ceph
delegate_to: "osp-undercloud-0"
vars:
Expand All @@ -152,7 +165,7 @@
--ntp-server {{ cifmw_adoption_osp_deploy_ntp_server }}
--ceph-spec ceph_spec.yaml
--network-data {{ _network_data_file_dest }}
--cephadm-default-container
--container-image-prepare {{ ansible_user_dir }}/containers-prepare-parameters.yaml
--output {{ ansible_user_dir }}/deployed_ceph.yaml
cifmw.general.ci_script:
chdir: "{{ ansible_user_dir }}"
Expand Down
2 changes: 1 addition & 1 deletion roles/adoption_osp_deploy/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ cifmw_adoption_osp_deploy_repos:
- rhel-9-for-x86_64-highavailability-eus-rpms
- openstack-17.1-for-rhel-9-x86_64-rpms
- fast-datapath-for-rhel-9-x86_64-rpms
- rhceph-6-tools-for-rhel-9-x86_64-rpms
- rhceph-7-tools-for-rhel-9-x86_64-rpms
10 changes: 10 additions & 0 deletions roles/adoption_osp_deploy/tasks/prepare_undercloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@
dest: "{{ ansible_user_dir }}/containers-prepare-parameters.yaml"
when: cifmw_adoption_osp_deploy_scenario.container_prepare_params is defined

# Adoption requires Ceph 7 (Reef) as a requirement. Instead of performing a Ceph
# upgrade from 6 (the default) to 7, let's try to deploy 7 in greenfield
- name: Patch containers-prepare-parameters Ceph container images
ansible.builtin.lineinfile:
path: "{{ ansible_user_dir }}/containers-prepare-parameters.yaml"
regexp: '^(\s.*)+: rhceph-6-rhel9'
line: '\1: rhceph-7-rhel9'
backup: true
backrefs: true

- name: Ensure os-net-config folder exists
become: true
ansible.builtin.file:
Expand Down

0 comments on commit a1d6c0c

Please sign in to comment.