Skip to content

tests: add new test to verify RHCOS system detection on s390x#175

Open
nikita-dubrovskii wants to merge 1 commit intocoreos:mainfrom
nikita-dubrovskii:cpilevel_test
Open

tests: add new test to verify RHCOS system detection on s390x#175
nikita-dubrovskii wants to merge 1 commit intocoreos:mainfrom
nikita-dubrovskii:cpilevel_test

Conversation

@nikita-dubrovskii
Copy link
Contributor

RHCOS was incorrectly showing in HMC as RHEL because system_level value was wrong. This test verifies the fix introduced in s390-tools PR ibm-s390-linux/s390-tools#199, ensuring that /sys/firmware/cpi/system_level correctly identifies the OS as RHCOS.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Feb 6, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: nikita-dubrovskii
Once this PR has been reviewed and has the lgtm label, please assign mike-nguyen 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

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new test to verify the RHCOS system level identification on s390x architectures. The test logic itself appears sound and correctly checks for the RHCOS identifier based on the linked s390-tools fix. However, there is a critical issue in how a shared utility script, commonlib.sh, is included. It's currently added as a text file containing a path instead of a symbolic link, which will cause the test script to fail at runtime. I've also pointed out a minor typo in a code comment.

@nikita-dubrovskii
Copy link
Contributor Author

Until we get new RPMs, this shouldn't be merged

RHCOS was incorrectly showing in HMC as RHEL because `system_level`
value was wrong. This test verifies the fix introduced in s390-tools
PR ibm-s390-linux/s390-tools#199,
ensuring that `/sys/firmware/cpi/system_level` correctly identifies
the OS as RHCOS.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant