Skip to content

Switch Windows golden image from Win11 to Server 2022#84

Merged
openshift-merge-bot[bot] merged 1 commit into
openshift-cnv:mainfrom
Ahmad-Hafe:feat/win2022-golden-image
Jun 9, 2026
Merged

Switch Windows golden image from Win11 to Server 2022#84
openshift-merge-bot[bot] merged 1 commit into
openshift-cnv:mainfrom
Ahmad-Hafe:feat/win2022-golden-image

Conversation

@Ahmad-Hafe

@Ahmad-Hafe Ahmad-Hafe commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

Switching to Windows Server 2022 because it's more stable and predictable for testing - no consumer background noise, no forced updates, simpler OOBE.
The tier3 storage tests already target win2k22 and use the same credentials as the QE images, so this aligns the golden image with what we actually run against.

Also simplified from the two-phase pipeline+OOBE approach to a single-phase custom autounattend that handles everything in one go (OS install, OpenSSH, firewall, shutdown).

Tested on test-gcnv15 - boots to desktop, SSH works, guest agent reports, all good.

@openshift-ci openshift-ci Bot requested review from nunnatsa and rlobillo June 7, 2026 12:03
@openshift-ci

openshift-ci Bot commented Jun 7, 2026

Copy link
Copy Markdown

Hi @Ahmad-Hafe. Thanks for your PR.

I'm waiting for a openshift-cnv member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.

Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@Ahmad-Hafe Ahmad-Hafe force-pushed the feat/win2022-golden-image branch from f69366a to 85a20e6 Compare June 7, 2026 12:05
@Ahmad-Hafe Ahmad-Hafe changed the title feat: switch Windows golden image from Win11 to Server 2022 Switch Windows golden image from Win11 to Server 2022 Jun 7, 2026
@Ahmad-Hafe Ahmad-Hafe force-pushed the feat/win2022-golden-image branch 4 times, most recently from ed387ad to b9bbad7 Compare June 8, 2026 10:08
@orenc1

orenc1 commented Jun 8, 2026

Copy link
Copy Markdown
Member

/ok-to-test

@Ahmad-Hafe Ahmad-Hafe force-pushed the feat/win2022-golden-image branch 2 times, most recently from 5bbf89a to 8dda9c1 Compare June 8, 2026 12:58
@dominikholler

Copy link
Copy Markdown

/lgtm on a high level

@Ahmad-Hafe Ahmad-Hafe force-pushed the feat/win2022-golden-image branch from 8dda9c1 to a6874cd Compare June 8, 2026 13:46
Comment thread scripts/tier2/test-tier2.sh
Comment thread scripts/windows/setup-golden-image.sh Outdated
Comment thread scripts/windows/setup-golden-image.sh Outdated
@Ahmad-Hafe Ahmad-Hafe force-pushed the feat/win2022-golden-image branch from 14894d8 to 027c837 Compare June 9, 2026 09:17

@orenc1 orenc1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

looks good, but i have few comments below

Comment thread scripts/windows/setup-golden-image.sh
Comment thread scripts/windows/setup-golden-image.sh Outdated
Comment thread scripts/tier2/test-tier2.sh
@Ahmad-Hafe Ahmad-Hafe force-pushed the feat/win2022-golden-image branch from 027c837 to 860219c Compare June 9, 2026 09:47
… via --tc

- Replace Windows 11 golden image setup with Windows Server 2022
- Simplified to single-phase autounattend install (no OOBE phase)
- Pass os_login_param credentials via --tc flags instead of hardcoding
  in test fixtures; can be overridden via WIN_USERNAME/WIN_PASSWORD env vars
- Remove redundant firewall rule (firewall is disabled entirely)

Signed-off-by: Ahmad Hafe <ahafe@redhat.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@Ahmad-Hafe Ahmad-Hafe force-pushed the feat/win2022-golden-image branch from 860219c to 97d34fa Compare June 9, 2026 10:21
@Ahmad-Hafe Ahmad-Hafe requested a review from orenc1 June 9, 2026 10:33
@ksimon1

ksimon1 commented Jun 9, 2026

Copy link
Copy Markdown

/lgtm

@openshift-ci

openshift-ci Bot commented Jun 9, 2026

Copy link
Copy Markdown

@ksimon1: changing LGTM is restricted to collaborators

Details

In response to this:

/lgtm

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.

@Ahmad-Hafe Ahmad-Hafe requested a review from rlobillo June 9, 2026 12:26
@Ahmad-Hafe Ahmad-Hafe requested a review from ksimon1 June 9, 2026 12:26

@orenc1 orenc1 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Looks good to me label Jun 9, 2026
@openshift-ci

openshift-ci Bot commented Jun 9, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Ahmad-Hafe, orenc1

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

The pull request process is described 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

@openshift-ci openshift-ci Bot added the approved label Jun 9, 2026
@openshift-merge-bot openshift-merge-bot Bot merged commit d278e1b into openshift-cnv:main Jun 9, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants