Repository navigation
OSAC-1270: PRD: Base OS Management for Bare Metal Instances #135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
openshift-merge-bot
merged 5 commits into
osac-project:main
from
adriengentil:prd/OSAC-2659
Jul 21, 2026
+59
−0
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
fd778f6
OSAC-1270: Add PRD for Base OS Management for Bare Metal Instances
adriengentil 326a20c
OSAC-1270: Block DiskImage deletion when referenced by BaremetalInsta…
adriengentil 0c03e44
OSAC-1270: Address automated review feedback
adriengentil bad5ea6
OSAC-1270: Add milestone, E2E scope, and cross-cutting dimension notes
adriengentil 99a7701
OSAC-1270: Trim In Scope to BMaaS-specific items only
adriengentil File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
| # Base OS Management for Bare-Metal Instances | ||
|
|
||
| | Field | Value | | ||
| |-----------|--------------------------------------------------------------| | ||
| | Author(s) | Adrien Gentil | | ||
| | Jira | https://redhat.atlassian.net/browse/OSAC-1270 | | ||
| | Milestone | 0.2-M2 | | ||
| | Date | 2026-07-21 | | ||
|
|
||
| ## Problem Statement | ||
|
|
||
| This PRD covers the integration of the DiskImage resource (defined in [OSAC-2540](https://redhat.atlassian.net/browse/OSAC-2540)) into BMaaS. It does not change DiskImage behavior — that is fully specified in OSAC-2540. | ||
|
|
||
| Bare metal instances can reference a custom OS image today, but only as a raw URL string with no discoverability, metadata, or governance. Tenants must know the exact image URL to use it; there is no curated catalog to browse, no lifecycle management to signal when an image is deprecated or unsupported, and no scoping to control which images are available per tenant. Cloud Provider Admins and Tenant Admins have no structured surface to publish and manage OS images independently. If unaddressed, bare metal provisioning remains opaque and error-prone, with tenants unable to discover what images are available and no guard against use of stale or unsupported images. | ||
|
|
||
| ## In Scope | ||
|
|
||
| - A BaremetalInstance must have an effective DiskImage reference at creation time — either explicitly selected by the user or defaulted from the BaremetalInstanceCatalogItem. Creation is rejected when neither provides a reference. The instance is provisioned with the OS from that image. | ||
| - DiskImage deletion is blocked when any BaremetalInstance (in any non-deleted state) or any BaremetalInstanceCatalogItem references it — applied to both global and tenant-scoped DiskImages. | ||
| - UI/API support for selecting and resolving eligible DiskImages during bare-metal instance creation; DiskImage browsing, lifecycle management, and lifecycle UI are defined by OSAC-2540. | ||
| - E2E test coverage for DiskImage selection at bare-metal instance provision time, added to the existing bare-metal test suite. | ||
| - DiskImages for bare-metal instances reuse the same resource, metadata schema, image source format, and two-tier visibility model (global + tenant-scoped) as defined in OSAC-2540. | ||
|
|
||
| ## Out of Scope | ||
|
|
||
| - Custom OS image upload by tenants — images are curated and published by Cloud Provider Admins or Tenant Admins only. | ||
| - In-place OS upgrade (package-level) — OS image selection applies at provision time only. | ||
| - OS configuration management beyond initial boot (e.g., configuration drift detection). | ||
| - BaremetalInstanceTemplate — no DiskImage field on the template. | ||
| - BaremetalInstanceCatalogItem schema changes — the catalog item's existing parameter model is sufficient to accept a DiskImage reference without structural changes. | ||
|
|
||
| ## User Stories | ||
|
|
||
| ### Cloud Provider Admin | ||
|
|
||
| - As a Cloud Provider Admin, I want to create a BaremetalInstanceCatalogItem that references a global DiskImage as default so that all tenants provisioning bare-metal instances from it receive a platform-approved OS image without having to select one. | ||
| - As a Cloud Provider Admin, I want DiskImage deletion to be blocked when any BaremetalInstance or BaremetalInstanceCatalogItem references it, so that I do not inadvertently break running workloads or catalog offerings. | ||
|
|
||
| ### Tenant Admin | ||
|
|
||
| - As a Tenant Admin, I want to create a BaremetalInstanceCatalogItem that references one of my organization's DiskImages as default so that my users' bare-metal instances are provisioned with our approved OS image without requiring manual selection. | ||
| - As a Tenant Admin, I want DiskImage deletion to be blocked when any BaremetalInstance or BaremetalInstanceCatalogItem references it, so that I do not inadvertently break running workloads or catalog offerings. | ||
|
|
||
| ### Tenant User | ||
|
|
||
| - As a Tenant User, I want to select a DiskImage when creating a bare metal instance so that the instance is provisioned with my chosen OS. | ||
|
|
||
| ## Dependencies | ||
|
|
||
| - **OSAC-2540 — DiskImage resource:** Defines and implements the DiskImage API resource, metadata schema, two-tier visibility (global + tenant-scoped), image lifecycle (active → deprecated → obsolete, reactivation), and image source format. This feature extends DiskImage to BaremetalInstance and must land after OSAC-2540. | ||
| - **OSAC-1118 — Baremetal OSAC API:** Closed. Provides the BaremetalInstance lifecycle foundation (create → provisioning → ready → deprovision → deleted) that this feature extends with OS image selection. | ||
|
|
||
| --- | ||
|
|
||
| ## Provenance | ||
|
|
||
| Authored: draft @ prd 0.5.0 - 92734a2, workspace main @ aac0f8e | ||
|
|
||
| <!-- ai-workflow-provenance:{"schema_version":1,"provenance_kind":"session","workflow":"prd","workflow_version":"0.5.0","ai_workflows":"92734a2","source_repo":"aac0f8e","source_repo_branch":"main","commits_behind_main":0,"commits_ahead_main":0,"main_ref":"main","phases":["draft"],"authoring_modes":["skill"],"context_changed":false} --> | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🗄️ Data Integrity & Integration | 🟠 Major | 🏗️ Heavy lift
Define the raw-URL compatibility path.
Line 14 documents the existing raw URL behavior, while Line 18 makes a DiskImage reference mandatory. Specify whether raw URLs are rejected, migrated to DiskImages, or remain supported; otherwise the API and existing catalog/instance data contract is ambiguous.
🤖 Prompt for AI Agents