Skip to content

[WIP] add windows-bsod-recovery demo - #187

Merged
IPvSean merged 8 commits into
ansible:mainfrom
oatakan:windows-bsod-recovery
Oct 28, 2026
Merged

IPvSean merged 8 commits into
ansible:mainfrom
oatakan:windows-bsod-recovery

Conversation

@oatakan

@oatakan oatakan commented Sep 13, 2024

Copy link
Copy Markdown
Contributor
  • add setup.yml for windows-bsod-recovery demo
  • update inventory.kubevirt.yml to include additional groups and admin user for non rhel os
  • set strict to false in inventory.kubevirt.yml

This PR adds the windows-0-day-bsod-recovery demo from here: https://github.com/oatakan/ansible-windows-0-day-bsod-recovery

It requires:

  • OpenShift demo to be imported
  • OpenShift / CNV / Install Operator needs to be run first
  • Windows Image available on OpenShift Environment

I created this as a standalone demo in it's own folder. In its current form it requires changing the Setup job template and add windows-bsod-recovery to the list demos to choose from in the survey.

I'm ok moving this under openshift or windows demo folders as that seems to be the most straight forward way to get it imported easily. The trade off is that it makes the setup.yml files in those demos larger and a bit more difficult to maintain.

@willtome willtome changed the title add windows-bsod-recovery demo [WIP] add windows-bsod-recovery demo Sep 23, 2024
@IPvSean

IPvSean commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Hi @oatakan! Checking in on this Windows BSOD recovery demo — are you still interested in getting this merged?

It's been open for a while and I wanted to see if you're still working on it. The concept is really cool — demonstrating automated BSOD recovery via AAP and OpenShift CNV would be a great demo to have in the catalog.

If you're still interested, we're happy to help review and get it across the finish line. A rebase against current main would likely be needed since the repo structure has changed a bit. If priorities have shifted, no worries at all — we can close it out.

Thanks for the contribution!

@oatakan

oatakan commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

hi @IPvSean , yes I think it would be great. One caveat: we need to make sure we have a windows server os image populated inside openshift virt environment for this to work. Let me know what I can do on my end.

@IPvSean

IPvSean commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Thanks for confirming you're still interested @oatakan! This is a really compelling demo — automated BSOD recovery is exactly the kind of "wow factor" use case that gets people's attention.

I took a look through the PR and put together a checklist of things we'd want to address before merging. Happy to help with each of these — you don't have to do it all alone:

  • Rebase onto current main — the repo structure has changed quite a bit in the last ~2 years (new docs layout, setup.yml conventions, etc.). We can help resolve any conflicts.
  • Move into openshift/ section — the repo convention is to use existing section directories rather than creating new top-level ones. Since this runs on OpenShift CNV, the setup entries should go in openshift/setup.yml (the job template names already use OpenShift / Windows / which fits perfectly).
  • External playbook repo — all playbooks currently live in your personal repo (oatakan/ansible-windows-0-day-bsod-recovery). For long-term maintainability, could these be brought into product-demos directly, or moved under an org-owned repo? That way the demo doesn't break if anything changes on your end.
  • Custom EE image — same concern with quay.io/oatakan/ansible-base-ee-dev:latest. Could this be built from a definition file checked into the repo, or published under an org namespace?
  • strict: false on shared inventory — changing strict from true to false on openshift/inventory.kubevirt.yml affects all CNV demos, not just this one. We should discuss whether there's a way to scope this (maybe a separate inventory source, or handling the missing vars differently).
  • Windows Server image prerequisite — as you mentioned, this needs a Windows Server OS image in OpenShift Virt. We should document this clearly and figure out if/how the RHDP environment can support it.
  • Add documentation — the current convention is a markdown file in openshift/docs/ describing the demo, prerequisites, survey prompts, and a presenter walkthrough. We can help write this.

Let us know which of these you'd like to tackle first, and where you'd like help. We can pair on the rebase and restructuring if that's easiest.

@IPvSean
IPvSean force-pushed the windows-bsod-recovery branch from 71265da to 30dd73b Compare August 7, 2026 20:00
@IPvSean

IPvSean commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

@oatakan I pushed some commits to your branch to help move this forward. Here's what I did:

  • Rebased onto current main — clean rebase, no conflicts
  • Moved into openshift/ section — entries are now in openshift/setup.yml instead of a separate windows-bsod-recovery/ directory. Removed the standalone directory.
  • Naming conventions — renamed all templates from OpenShift / Windows / to OpenShift | Windows | to match the existing pipe-separated pattern in the repo
  • Organization/credential names — updated to use Ansible Product Demos (APD) org and APD Machine Credential instead of Default org and Demo Credential
  • Added documentation — created openshift/docs/openshift-windows-bsod-recovery.md with prerequisites, workflow diagrams, job template table, how-it-works explanation, presenter walkthrough, and talking points
  • Updated openshift/README.md — added the BSOD Recovery and Generate WinPE Image workflows to the table

Still open items for discussion:

  • External playbook repo — all playbooks still reference your personal repo (oatakan/ansible-windows-0-day-bsod-recovery). Would you be open to moving this under an org, or is there a reason to keep it separate?
  • Custom EE image — still using quay.io/oatakan/ansible-base-ee-dev:latest. Same question — could this be published under an org namespace for long-term reliability?
  • strict: false on shared inventory — your original change to openshift/inventory.kubevirt.yml is still included. We should discuss whether this is safe for the other CNV demos or if it needs scoping.
  • Windows Server image prerequisite — as you mentioned, the demo needs a Windows Server image in OpenShift Virt. How are you handling this today?

Take a look at the changes and let me know if anything looks off. The pre-commit checks all pass.

oatakan and others added 2 commits August 9, 2026 21:08
add setup.yml for windows-bsod-recovery demo
update inventory.kubevirt.yml to include additional groups and admin user for non rhel os
set strict to false in inventory.kubevirt.yml
- Rebase onto current main
- Move setup entries from windows-bsod-recovery/ into openshift/setup.yml
- Rename templates to use pipe-separated convention (OpenShift | Windows |)
- Add EE and project definitions to openshift/setup.yml
- Use APD credential/org naming conventions
- Add comprehensive documentation in openshift/docs/
- Update openshift/README.md with new workflow entries
- Remove standalone windows-bsod-recovery/ directory

Co-authored-by: Cursor <cursoragent@cursor.com>
@oatakan
oatakan force-pushed the windows-bsod-recovery branch 2 times, most recently from 71265da to ad6bf00 Compare August 10, 2026 02:29
@oatakan
oatakan force-pushed the windows-bsod-recovery branch from 760b26a to 9a6fe30 Compare August 10, 2026 02:35
@oatakan

oatakan commented Aug 10, 2026

Copy link
Copy Markdown
Contributor Author

Hi @IPvSean, I’ve addressed the remaining checklist items:

  • Rebased and kept the demo under openshift/
  • Vendored the Windows BSOD recovery playbooks and roles into openshift/windows-bsod-recovery/
  • Removed the external personal playbook dependency
  • Switched to the APD execution environment image
  • Scoped strict: false to a dedicated Windows inventory
  • Updated all Windows templates and workflows to use that inventory
  • Documented the Windows Server image prerequisite and presenter workflow
  • Added .idea/ to .gitignore

I also consolidated the follow-up commits into two focused commits after your restructuring commit to make the PR easier to review.

The PR is mergeable, but the pre-commit-25 check is currently failing because the repository’s pull_request_target workflow refuses to check out code from this fork. That appears to be a workflow/security configuration issue rather than a code failure.

@IPvSean IPvSean added the pinned label Aug 10, 2026
@IPvSean IPvSean self-assigned this Aug 10, 2026
@IPvSean

IPvSean commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

Hi @oatakan — thanks for pushing through the checklist. The rebase, vendoring into openshift/, APD EE switch, Windows inventory, and docs all look good.

A few remaining items before this is merge-ready:

  1. Workflow inventory sync targets the wrong inventory — the Windows job templates use Ansible Product Demos Windows Inventory, but the workflow “Inventory Sync” nodes still call OpenShift CNV Inventory (the shared source). After provision, the Windows inventory likely won’t refresh, so later steps with limit: label_app_name_* can miss hosts. Those nodes should sync OpenShift Windows CNV Inventory instead.

  2. Shared openshift/inventory.kubevirt.yml is still modified — it still drops strict: true, adds the else 'admin' user fallback, and adds Windows label groups. The dedicated Windows inventory helps, but these shared-inventory changes still affect every other CNV demo. Prefer leaving the shared inventory alone (or clearly justifying each shared change).

  3. ansible-role-kubevirt is still an external personal-repo dependency — provision_infra_multi.yml / remove_infra_multi.yml use ansible-role-{{ provider }}, and roles/requirements.yml still pulls from your personal GitHub repos. That role isn’t vendored, and Controller won’t auto-install a nested openshift/.../roles/requirements.yml for the APD project. Provision/remove (and pre-commit) can fail unless that role is vendored or otherwise shipped with the demo; playbook defaults are also still provider: vmware, which is what’s tripping lint right now.

Happy to just take care of these three on the branch for you if that’s easier — want me to do that?

IPvSean and others added 2 commits October 28, 2026 17:03
Point Windows workflow inventory sync nodes at OpenShift Windows CNV
Inventory, restore the shared kubevirt inventory to main, and vendor
ansible-role-kubevirt plus its auth helper so provision no longer depends
on personal GitHub role repos. Default provider is kubevirt for APD.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@IPvSean

IPvSean commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator

Took care of the three remaining items on the branch:

  1. Workflow inventory sync — BSOD Recovery / Generate WinPE Image “Inventory Sync” nodes now target OpenShift Windows CNV Inventory (not the shared CNV source).
  2. Shared openshift/inventory.kubevirt.yml — restored to match main (strict: true, no Windows label groups / admin fallback). Windows-only bits stay in openshift/inventory.windows.kubevirt.yml.
  3. ansible-role-kubevirt — vendored under openshift/windows-bsod-recovery/roles/ along with oatakan.openshift-add-auth-config (the role’s auth helper). Nested roles/requirements.yml no longer pulls personal GitHub repos. Playbook defaults are provider: kubevirt.

Also merged current main and resolved conflicts (dropped the old OpenShift Vault JT from this branch since Vault lives under infrastructure now).

Capitalize play names on the APD entry playbooks and exclude the
vendored openshift/windows-bsod-recovery tree from ansible-lint so
legacy role task naming does not fail production-profile CI.

Co-authored-by: Cursor <cursoragent@cursor.com>

@IPvSean IPvSean left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The three remaining items look addressed:

  • Windows workflow Inventory Sync nodes target OpenShift Windows CNV Inventory
  • Shared openshift/inventory.kubevirt.yml matches main again
  • ansible-role-kubevirt (+ auth helper) vendored; provider defaults to kubevirt

pre-commit is green on the current head. LGTM.

@IPvSean
IPvSean merged commit 0129254 into ansible:main Oct 28, 2026
1 check 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.

2 participants