Skip to content

Add generic devices to WorkloadStatus - #32

Merged
clupuishere merged 1 commit into
mainfrom
costin/fs
Aug 14, 2026
Merged

Add generic devices to WorkloadStatus#32
clupuishere merged 1 commit into
mainfrom
costin/fs

Conversation

@clupuishere

@clupuishere clupuishere commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

The current changes are needed to add support for mounts per workload. Since we are introducing a new type of devices, filesystem devices, we need a more generic way of handling devices. With filesystem devices we can share host directories either as unified mounts per zone or as one mount per workload.

@github-actions

github-actions Bot commented Jun 10, 2026

Copy link
Copy Markdown

The latest Buf updates on your PR. Results from workflow Buf CI / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedAug 12, 2026, 1:55 PM

Comment thread protect/control/v1/common.proto
azenla
azenla previously approved these changes Jun 23, 2026
Comment thread protect/control/v1/common.proto Outdated
bleggett
bleggett previously approved these changes Jul 1, 2026

@bleggett bleggett 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.

WORKLOAD_MOUNT_SCOPE_TYPE_UNKNOWN = 0;
WORKLOAD_MOUNT_SCOPE_TYPE_ZONE = WORKLOAD_MOUNT_SCOPE_TYPE_WORKLOAD = 2;

Ok, originally I thought that this was meant to be

  • xen == WORKLOAD_MOUNT_SCOPE_TYPE_ZONE
  • kvm == WORKLOAD_MOUNT_SCOPE_TYPE_WORKLOAD

and wasn't sure why we couldn't just derive this at runtime without exposing this policy field in the control API.

but @clupuishere mentioned that in fact kvm can support either policy and there might be perf/runtime reasons why you might want to use both policies interchangeably for the same virt backend at the same time.

That was the bit of info I didn't have/didn't register with me, so lgtm.

We are introducing WorkloadDeviceStatus and WorkloadDeviceInfo to define
handlers for managing devices in an uniform and generic way. We have
been rolling so far with standalone message types for block
(WorkloadBlockDeviceInfo message type) and PCI (WorkloadPciDeviceInfo
message type) devices and adding support for a new device type
(WorkloadFsDeviceInfo message type) raises an immediate need to have a
more scalable and generic way of handling devices.

Signed-off-by: Costin Lupu <costin@edera.dev>
@clupuishere

Copy link
Copy Markdown
Contributor Author

Confirming @bleggett's comment. However, for the latest revision of this PR I decided to drop the WORKLOAD_MOUNT_SCOPE_* changes to keep things simple for now. If we decide to use both modes for KVM, then we can return to these changes and merge them then.

@clupuishere
clupuishere merged commit 857a913 into main Aug 14, 2026
2 checks passed
@clupuishere
clupuishere deleted the costin/fs branch August 14, 2026 14:56
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.

4 participants