-
Notifications
You must be signed in to change notification settings - Fork 23
Rocky Linux 9.7 packages #2025
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
Merged
+209
−44
Merged
Rocky Linux 9.7 packages #2025
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
061925b
Switch to Rocky Linux 9.7 and DOCA 3.2.1
elelaysh 073bb17
Add DOCA 3.2.1 modules
priteau 4756275
[skip ci] Fix DOCA url for local pulp servers
elelaysh 107fea1
Bump all package version for RockyLinux
elelaysh 037a75e
stackhpc-cloud-tests: bump docker minmax versions
elelaysh a0b7f10
Add playbook to automate Rocky 9.7 with OFED upgrade
elelaysh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
104 changes: 104 additions & 0 deletions
104
etc/kayobe/ansible/maintenance/rocky-97-ofed-upgrade.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,104 @@ | ||
| --- | ||
| # This playbook performs the system upgrade from RockyLinux 9.6 to 9.7 on hosts | ||
| # using doca ofed kernel modules and utilities. | ||
| # It prevents the install of the dkms toolchain and dkms modules that would be | ||
| # used instead or our precompiled modules if a direct `dnf upgrade` was run. | ||
| # | ||
| # It must be run after new package snapshots have been merged and | ||
| # `pulp-repo-sync.yml` and `pulp-repo-publish.yml` have been run. | ||
| # Also `kayobe overcloud host configure -t dnf` must have been run for the new | ||
| # `doca.repo` to be present (the doca version is in the url) on the mlnx hosts. | ||
|
|
||
| - name: Prepare upgrade from Rocky Linux 9.6 to 9.7 | ||
| hosts: mlnx | ||
| serial: "{{ lookup('env', 'ANSIBLE_SERIAL') | default(1, true) }}" | ||
| gather_facts: true | ||
| tags: pre | ||
| vars: | ||
| # we don't build kernel modules for each version, eg 5.14.0-611.13.1 has been built, | ||
| # but not 5.14.0-611.20.1. | ||
| doca_kernel_version: "{{ stackhpc_doca_kernel_version_matrix[stackhpc_pulp_repo_rocky_9_minor_version] }}" | ||
| tasks: | ||
| - name: Assert that hosts are running Rocky Linux 9.6 | ||
| ansible.builtin.assert: | ||
| that: | ||
| - ansible_facts.distribution == 'Rocky' | ||
| - ansible_facts.distribution_version == '9.6' | ||
| - os_distribution == 'rocky' | ||
| fail_msg: >- | ||
| This playbook is only designed for Rocky Linux 9.6 hosts. Ensure | ||
| that you are limiting it to only run on Rocky Linux 9.6 hosts and | ||
| os_distribution is set to rocky. | ||
|
|
||
| - name: Ensure doca kernel repo is up to date | ||
| ansible.builtin.dnf: | ||
| name: doca-kernel-repo | ||
| state: latest | ||
| update_cache: true | ||
| become: true | ||
|
|
||
| # This is required by mlnx-ofa_kernel, and comes from the doca repository. | ||
| # It is already present when doca-ofed is installed, but will be upgraded. | ||
| - name: Ensure mlnx-tools is installed | ||
| ansible.builtin.dnf: | ||
| name: mlnx-tools | ||
| state: latest | ||
| update_cache: true | ||
| become: true | ||
|
|
||
| - name: Ensure appropriate doca-kernel is installed | ||
| ansible.builtin.dnf: | ||
| name: "doca-kernel-{{ doca_kernel_version }}" | ||
| state: latest | ||
| disablerepo: doca | ||
| become: true | ||
|
|
||
| # doca-ofed 3.2 starts to depend on the dkms modules. It was not the case | ||
| # in doca-ofed 2.9.3. | ||
| - name: Ensure doca-ofed is not present (upgrading it brings dkms) | ||
| ansible.builtin.dnf: | ||
| name: doca-ofed | ||
| state: absent | ||
| autoremove: false | ||
| become: true | ||
|
|
||
| - name: Ensure latest doca-ofed-userspace instead of doca-ofed | ||
| ansible.builtin.dnf: | ||
| name: doca-ofed-userspace | ||
| state: latest | ||
| become: true | ||
|
|
||
| - name: Upgrade all | ||
| ansible.builtin.dnf: | ||
| name: "*" | ||
| state: latest | ||
| become: true | ||
|
|
||
elelaysh marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - name: Fix potential grub config preventing new kernel from being used | ||
| ansible.builtin.import_playbook: reset-bls-entries.yml | ||
| vars: | ||
| reset_bls_hosts: mlnx | ||
|
|
||
| - name: Reboot to apply updates | ||
| ansible.builtin.import_playbook: reboot.yml | ||
| vars: | ||
| reboot_hosts: mlnx | ||
|
|
||
| - name: Confirm the host is upgraded to Rocky Linux 9.7 | ||
| hosts: mlnx | ||
| tags: post | ||
| tasks: | ||
| - name: Update distribution facts | ||
| ansible.builtin.setup: | ||
| filter: "{{ kayobe_ansible_setup_filter }}" | ||
| gather_subset: "{{ kayobe_ansible_setup_gather_subset }}" | ||
|
|
||
| # Can fail (eg in multinode) when there are bad entries in grub config | ||
| # Fixed by `kayobe playbook run ansible/maintenance/reset-bls-entries.yml` | ||
| # and manual reboot | ||
| - name: Assert that hosts are now using Rocky Linux 9.7 | ||
| ansible.builtin.assert: | ||
| that: | ||
| - ansible_facts.distribution == 'Rocky' | ||
| - ansible_facts.distribution_version == '9.7' | ||
| - os_distribution == 'rocky' | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
elelaysh marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| --- | ||
| features: | ||
elelaysh marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - | | ||
| Added support for Rocky Linux 9.7. | ||
| - | | ||
| 9.7 is now the default release for Rocky Linux. | ||
|
|
||
| upgrade: | ||
| - | | ||
| The upgrade to DOCA 3.2.1 is required for Rocky Linux 9.7. | ||
Alex-Welsh marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.