Skip to content

[6.19.z] SAT-20386 Jira card is closed; removing it. - #20917

Merged
Satellite-QE merged 1 commit into
6.19.zfrom
cherry-pick-6.19.z-1e9d8e4b06935487d900f19070de6e3186d429a1
Mar 9, 2026
Merged

[6.19.z] SAT-20386 Jira card is closed; removing it.#20917
Satellite-QE merged 1 commit into
6.19.zfrom
cherry-pick-6.19.z-1e9d8e4b06935487d900f19070de6e3186d429a1

Conversation

@Satellite-QE

@Satellite-QE Satellite-QE commented Mar 2, 2026

Copy link
Copy Markdown
Collaborator

Cherrypick of PR: #20839

The host is enabled with FIPS mode, so card SAT-20386 is being removed as the condition is no longer required.

Summary by Sourcery

Enforce FIPS being enabled after RHEL PXE provisioning and introduce a conditional skip for the known-broken RHEL7 UEFI scenario.

Bug Fixes:

  • Always require FIPS to be enabled on provisioned hosts instead of conditionally allowing it to be disabled based on SAT-20386.
  • Skip the RHEL7 UEFI PXE provisioning test when affected by the known SAT-41340 issue to avoid unstable failures.

Tests:

  • Adjust the RHEL PXE provisioning FIPS test to assert FIPS is enabled unconditionally and to skip the RHEL7 UEFI case when a related known issue is open.

@Satellite-QE Satellite-QE added 6.19.z Auto_Cherry_Picked Automatically cherrypicked PR using GHA No-CherryPick PR doesnt need CherryPick to previous branches labels Mar 2, 2026
@Satellite-QE Satellite-QE added the AutoMerge_Cherry_Picked The cherrypicked PRs of master PR would be automerged if all checks passing label Mar 2, 2026
@sourcery-ai

sourcery-ai Bot commented Mar 2, 2026

Copy link
Copy Markdown
Contributor
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Adjusts the RHEL PXE FIPS provisioning test to always expect FIPS to be enabled and introduces a conditional skip for a known RHEL7 UEFI issue, removing the now-obsolete SAT-20386 condition.

File-Level Changes

Change Details Files
Strengthen FIPS expectation and add conditional skip for known RHEL7 UEFI issue in the RHEL PXE provisioning test.
  • Introduce a conditional pytest.skip when SAT-41340 is open, firmware is UEFI, and OS major version is 7 to avoid running the unsupported scenario.
  • Simplify the FIPS-enabled assertion to always require /proc/sys/crypto/fips_enabled to be 1, removing the SAT-20386-based conditional.
tests/foreman/api/test_provisioning.py

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hey - I've left some high level feedback:

  • The firmware check pxe_loader.vm_firmware in ['uefi'] can be simplified to a direct equality comparison (== 'uefi') for clarity and to avoid suggesting multiple supported values.
  • Consider extracting a small helper (e.g., skip_if_issue_open('SAT-41340', condition, reason)) to encapsulate the is_open(...) + pytest.skip(...) pattern if this is or will be reused across other tests.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- The firmware check `pxe_loader.vm_firmware in ['uefi']` can be simplified to a direct equality comparison (`== 'uefi'`) for clarity and to avoid suggesting multiple supported values.
- Consider extracting a small helper (e.g., `skip_if_issue_open('SAT-41340', condition, reason)`) to encapsulate the `is_open(...)` + `pytest.skip(...)` pattern if this is or will be reused across other tests.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@amolpati30
amolpati30 force-pushed the cherry-pick-6.19.z-1e9d8e4b06935487d900f19070de6e3186d429a1 branch from 072cc78 to f3c0e4d Compare March 3, 2026 15:26
@Satellite-QE

Copy link
Copy Markdown
Collaborator Author

PRT Result

Build Number: 14587
Build Status: UNSTABLE
PRT Comment: pytest tests/foreman/api/test_provisioning.py::test_rhel_pxe_provisioning_fips_enabled --external-logging --include-onprem-provisioning
Test Result : ====== 2 failed, 5 passed, 1 skipped, 541 warnings in 14682.36s (4:04:42) ======

@Satellite-QE Satellite-QE added the PRT-Failed Indicates that latest PRT run is failed for the PR label Mar 3, 2026
@SatelliteQE SatelliteQE deleted a comment from Satellite-QE Mar 4, 2026

@LadislavVasina1 LadislavVasina1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ack, waiting for PRT to pass

@Satellite-QE

Copy link
Copy Markdown
Collaborator Author

PRT Result

Build Number: 14595
Build Status: UNSTABLE
PRT Comment: pytest tests/foreman/api/test_provisioning.py::test_rhel_pxe_provisioning_fips_enabled --external-logging --include-onprem-provisioning
Test Result : ====== 2 failed, 5 passed, 1 skipped, 552 warnings in 14397.34s (3:59:57) ======

@amolpati30
amolpati30 force-pushed the cherry-pick-6.19.z-1e9d8e4b06935487d900f19070de6e3186d429a1 branch from f3c0e4d to 56da0ee Compare March 6, 2026 05:43
@Satellite-QE

Copy link
Copy Markdown
Collaborator Author

PRT Result

Build Number: 14631
Build Status: UNSTABLE
PRT Comment: pytest tests/foreman/api/test_provisioning.py::test_rhel_pxe_provisioning_fips_enabled --external-logging --include-onprem-provisioning
Test Result : = 1 failed, 4 passed, 1 skipped, 524 warnings, 3 errors in 11801.21s (3:16:41) =

@amolpati30
amolpati30 force-pushed the cherry-pick-6.19.z-1e9d8e4b06935487d900f19070de6e3186d429a1 branch from 56da0ee to d5a10c4 Compare March 6, 2026 09:28
@amolpati30
amolpati30 force-pushed the cherry-pick-6.19.z-1e9d8e4b06935487d900f19070de6e3186d429a1 branch from d5a10c4 to 7cae34c Compare March 6, 2026 09:29
@Satellite-QE

Copy link
Copy Markdown
Collaborator Author

PRT Result

Build Number: 14644
Build Status: UNSTABLE
PRT Comment: pytest tests/foreman/api/test_provisioning.py::test_rhel_pxe_provisioning_fips_enabled --external-logging --include-onprem-provisioning
Test Result : = 1 failed, 4 passed, 1 skipped, 528 warnings, 2 errors in 13569.71s (3:46:09) =

@amolpati30

Copy link
Copy Markdown
Contributor
trigger: test-robottelo
pytest: tests/foreman/api/test_provisioning.py::test_rhel_pxe_provisioning_fips_enabled
provisioning: true

@Satellite-QE

Copy link
Copy Markdown
Collaborator Author

PRT Result

Build Number: 14656
Build Status: SUCCESS
PRT Comment: pytest tests/foreman/api/test_provisioning.py::test_rhel_pxe_provisioning_fips_enabled --external-logging --include-onprem-provisioning
Test Result : =========== 7 passed, 1 skipped, 572 warnings in 15103.90s (4:11:43) ===========

@Satellite-QE Satellite-QE added PRT-Passed Indicates that latest PRT run is passed for the PR and removed PRT-Failed Indicates that latest PRT run is failed for the PR labels Mar 9, 2026
@Satellite-QE
Satellite-QE merged commit 963b82a into 6.19.z Mar 9, 2026
14 checks passed
@Satellite-QE
Satellite-QE deleted the cherry-pick-6.19.z-1e9d8e4b06935487d900f19070de6e3186d429a1 branch March 9, 2026 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.19.z Auto_Cherry_Picked Automatically cherrypicked PR using GHA AutoMerge_Cherry_Picked The cherrypicked PRs of master PR would be automerged if all checks passing No-CherryPick PR doesnt need CherryPick to previous branches PRT-Passed Indicates that latest PRT run is passed for the PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants