Skip to content

USHIFT-6950: Ansible: Update host defaults for MicroShift 4.22#6627

Open
sjug wants to merge 1 commit intoopenshift:mainfrom
sjug:ansible-microshift-422-defaults
Open

USHIFT-6950: Ansible: Update host defaults for MicroShift 4.22#6627
sjug wants to merge 1 commit intoopenshift:mainfrom
sjug:ansible-microshift-422-defaults

Conversation

@sjug
Copy link
Copy Markdown
Contributor

@sjug sjug commented May 5, 2026

Adds the 4.22 pod-readiness entry, bumps the bundled Go toolchain to 1.25 as required by MicroShift 4.22, and switches the default LVM volume group to rhel_microshift to match the VG created by standard RHEL installs.

Summary by CodeRabbit

  • Updates

    • Go toolchain upgraded to version 1.25.0.
    • LVM volume group naming convention updated.
  • New Features

    • Added support for MicroShift version 4.22.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label May 5, 2026
@openshift-ci-robot
Copy link
Copy Markdown

openshift-ci-robot commented May 5, 2026

@sjug: This pull request references USHIFT-6950 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "5.0.0" version, but no target version was set.

Details

In response to this:

Adds the 4.22 pod-readiness entry, bumps the bundled Go toolchain to 1.25 as required by MicroShift 4.22, and switches the default LVM volume group to rhel_microshift to match the VG created by standard RHEL installs.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 5, 2026

Walkthrough

Two independent configuration updates: Go toolchain version incremented from 1.24.4 to 1.25.0 with LVM volume group name changed from microshift to rhel_microshift; MicroShift version 4.22 support added to version mappings with expected pod counts.

Changes

Go Toolchain and LVM Configuration Update

Layer / File(s) Summary
Configuration Defaults
ansible/roles/setup-microshift-host/defaults/main.yml
go_version bumped to 1.25.0 (was 1.24.4); default_vg_name changed to rhel_microshift (was microshift), affecting go_install_dir path and LVM volume group naming.

MicroShift Version Support

Layer / File(s) Summary
Version Mapping
ansible/vars/microshift_versions.yml
Added MicroShift version 4.22 with expected_pods: 6 and all_pods: 9 configuration.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 12
✅ Passed checks (12 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately reflects the main changes: updating Ansible host defaults and adding support for MicroShift 4.22.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Stable And Deterministic Test Names ✅ Passed PR modifies only Ansible YAML files, not test code. Project uses standard Go testing, not Ginkgo. Custom check for Ginkgo test naming is not applicable.
Test Structure And Quality ✅ Passed No Ginkgo test code in PR. Changes are Ansible configuration files only (defaults/main.yml and microshift_versions.yml). Custom check not applicable.
Microshift Test Compatibility ✅ Passed This PR only contains Ansible config updates. No new Ginkgo e2e tests are added, so the test compatibility check does not apply.
Single Node Openshift (Sno) Test Compatibility ✅ Passed Custom check does not apply. PR modifies only Ansible configuration files (defaults and version definitions), not Ginkgo e2e tests. No test patterns detected.
Topology-Aware Scheduling Compatibility ✅ Passed PR modifies only Ansible configuration files. No Kubernetes manifests, operator code, or scheduling constraints are introduced or modified.
Ote Binary Stdout Contract ✅ Passed Check not applicable. PR modifies only Ansible YAML configuration files, not Go source code where OTE Binary Stdout Contract violations could occur.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed This PR contains only Ansible configuration changes (defaults and version mappings). No Ginkgo e2e tests are being added, so the IPv6/disconnected network test check does not apply.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@openshift-ci openshift-ci Bot requested review from ggiguash and pmtk May 5, 2026 16:18
@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented May 5, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: sjug
Once this PR has been reviewed and has the lgtm label, please assign kasturinarra for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (4)
ansible/roles/setup-microshift-host/defaults/main.yml (4)

12-13: ⚡ Quick win

Consider pinning to a more recent Go 1.25.x patch.

Go 1.25.0 is valid, but Go 1.25.9 (released 2026-04-07) includes security fixes to the go command, the compiler, and several standard library packages. Pinning to 1.25.0 skips these security patches.

🔧 Proposed update
-go_version: 1.25.0
+go_version: 1.25.9
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@ansible/roles/setup-microshift-host/defaults/main.yml` around lines 12 - 13,
Update the Go version pin by setting the go_version default from 1.25.0 to the
latest 1.25.x patch (e.g., 1.25.9) and update the dependent go_install_dir value
(go_install_dir: /usr/local/go{{ go_version }}) so the role installs the patched
Go release; adjust go_version in defaults/main.yml (the go_version and
go_install_dir variables) to the newer patch level.

32-33: ⚡ Quick win

default_vg_name rename may break existing environments.

Changing from microshift to rhel_microshift is intentional to align with standard RHEL installs, but users with an existing VG named microshift who don't override vg_name will silently target the wrong VG. Consider a note in the role's README or a comment here calling out the migration step.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@ansible/roles/setup-microshift-host/defaults/main.yml` around lines 32 - 33,
The rename of the variable default_vg_name from "microshift" to
"rhel_microshift" can break environments that rely on the old VG name; update
the role to warn and provide migration guidance by adding a clear comment next
to default_vg_name and vg_name explaining the rename and the expected override
behavior, and update the role README with a short migration note and example
override (reference variables default_vg_name and vg_name) so operators know to
rename or set vg_name explicitly to "microshift" if needed.

32-33: ⚡ Quick win

default_vg_name rename may silently break existing setups.

Users upgrading who still have a VG named microshift and don't override vg_name will silently target a nonexistent VG. A short comment here (or a note in the role README) calling out the migration step would help.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@ansible/roles/setup-microshift-host/defaults/main.yml` around lines 32 - 33,
Add a short inline comment above the default_vg_name and vg_name variables
explaining that default_vg_name was renamed from "microshift" to
"rhel_microshift" and that upgrades may need a migration: instruct users to set
vg_name to "microshift" if they still have the old VG or to rename their VG to
"rhel_microshift"; also add the same note to the role README so upgrader
guidance is surfaced. Reference the variables default_vg_name and vg_name when
adding the comment and README note.

12-13: ⚡ Quick win

Go 1.25.0 is released and available. No download/install risk.

However, Go 1.26.3 is the latest stable release as of May 2026. Consider updating to the latest version for recent improvements and security updates.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@ansible/roles/setup-microshift-host/defaults/main.yml` around lines 12 - 13,
Update the go_version default from "1.25.0" to the current stable "1.26.3" and
adjust the go_install_dir value to match the new version (ensure go_install_dir
uses the updated go_version variable so it becomes "/usr/local/go1.26.3");
verify any other references to go_version in the role (e.g., tasks or templates)
are consistent with the new version string.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@ansible/roles/setup-microshift-host/defaults/main.yml`:
- Around line 12-13: Update the Go version pin by setting the go_version default
from 1.25.0 to the latest 1.25.x patch (e.g., 1.25.9) and update the dependent
go_install_dir value (go_install_dir: /usr/local/go{{ go_version }}) so the role
installs the patched Go release; adjust go_version in defaults/main.yml (the
go_version and go_install_dir variables) to the newer patch level.
- Around line 32-33: The rename of the variable default_vg_name from
"microshift" to "rhel_microshift" can break environments that rely on the old VG
name; update the role to warn and provide migration guidance by adding a clear
comment next to default_vg_name and vg_name explaining the rename and the
expected override behavior, and update the role README with a short migration
note and example override (reference variables default_vg_name and vg_name) so
operators know to rename or set vg_name explicitly to "microshift" if needed.
- Around line 32-33: Add a short inline comment above the default_vg_name and
vg_name variables explaining that default_vg_name was renamed from "microshift"
to "rhel_microshift" and that upgrades may need a migration: instruct users to
set vg_name to "microshift" if they still have the old VG or to rename their VG
to "rhel_microshift"; also add the same note to the role README so upgrader
guidance is surfaced. Reference the variables default_vg_name and vg_name when
adding the comment and README note.
- Around line 12-13: Update the go_version default from "1.25.0" to the current
stable "1.26.3" and adjust the go_install_dir value to match the new version
(ensure go_install_dir uses the updated go_version variable so it becomes
"/usr/local/go1.26.3"); verify any other references to go_version in the role
(e.g., tasks or templates) are consistent with the new version string.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: 0958c362-1ff7-42b4-a7a4-e55e6e74a7f9

📥 Commits

Reviewing files that changed from the base of the PR and between 9a9d010 and 6f7ec4f.

📒 Files selected for processing (2)
  • ansible/roles/setup-microshift-host/defaults/main.yml
  • ansible/vars/microshift_versions.yml

@openshift-ci
Copy link
Copy Markdown
Contributor

openshift-ci Bot commented May 5, 2026

@sjug: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants