Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated support for rhsm builds of rhosp17 on rhel9 #209

Closed
wants to merge 5 commits into from

Conversation

gprocunier
Copy link
Contributor

Updated support for doing rhsm_enabled builds against official RHEL9/RHOS with registry.redhat.io
Added fixes for using service accounts via the terms based registry on access.redhat.com
Misc fixes for deploying virtually in libvirt/kvm
Provided an example local-overrides for rhos17 on rhel9 with details on creating the required components.

@@ -113,7 +113,7 @@
stdin: "{{ network_state | to_nice_json }}"
vars:
network_state:
interfaces: "{{ nmstate_ifs }}"
interfaces: "{{ nmstate_ifs | from_yaml }}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tested RHEL 9.2 and OSP 17.1 and this wasn't needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without that, this fails when deploying on kvm/libvirt.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rhel 9.0 on OSP17.0

when:
- ansible_facts.distribution_major_version == "9"
ansible.builtin.set_fact:
checkpoint: "{{ (nmstateset.stderr_lines | last).split()[-1] }}"
checkpoint: "{{ (nmstateset.stdout_lines | select('search', 'Checkpoint: NetworkManager\\|') | last).split()[1] }}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tested RHEL 9.2 and OSP 17.1 and this wasn't needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

regarding the change to Set fact for nmstate checkpoint on RHEL9, this was required when i did a clean install of OSP 17.0 on RHEL9.0

it was not required on centos stream

it seems particular to 17.0 on RHEL9

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ack, will have to test it on RHEL 8.4 and RHEL 9.2 too to make sure it's compatible.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added handlers for rhel 9.0 + osp 17.0 and rhel 9.2 (and onwards) and osp 17.1

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's only a RHEL 9.0 issue, I suggest that we don't add this code, to reduce complexity.

I think dev-install is going to support 16.2 and OSP 17.1 in the longterm, we can't add support for every version of OSP, especially the unsupported ones (17.0).

@EmilienM
Copy link
Contributor

EmilienM commented Jun 7, 2023

rhel 9.0 on OSP17.0 is not something we'll support, we'll wait for 17.1 GA and see how things go.
The nmstate stuff will have to be tested again against 9.2 and 17.1, which is what I tested already and it worked fine. Although not in a VM.

@gprocunier gprocunier requested a review from EmilienM June 29, 2023 22:05

For OSP 16.2, the recommended OS is RHEL 8.4. For OSP 17, the recommended RHEL will be 9.
For OSP 16.2, the recommended OS is RHEL 8.4. For OSP 17.0, the required RHEL will be 9.0.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

17.1 being out soon, I would prefer that we document this one since it's the one that will be supported in long term.

Please change it to 17.1 and 9.2.

# when the rhcs5 portion of the build is started.
#
# Therefore it is easier to use the config.json method for podman.
- name: Setup Docker registry authentication
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm currently investigating this too. Not saying I reject your solution here but I'm looking if we can do easier.

@@ -41,10 +41,12 @@
ansible.builtin.shell: |
dnf module disable -y container-tools:rhel8
dnf module enable -y container-tools:"{{ rhsm_container_tools_version }}"
when: ansible_distribution_major_version | int < 9
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes we need this change for sure.

- name: Install virt module # noqa no-changed-when
ansible.builtin.shell: |
dnf module disable -y virt:rhel
dnf module enable -y virt:"{{ virt_release }}"
when: ansible_distribution_major_version | int < 9
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here too we need this change.

@EmilienM
Copy link
Contributor

@gprocunier finally back to it (17.1 is now GA 🥳), I've proposed #216

Let me know what you think, testing will follow soon when time permits.

@EmilienM
Copy link
Contributor

@gprocunier I'll close that PR if you don't mind, since we have PR#216 which address the OSP 17.1 use case.

@EmilienM EmilienM closed this Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants