Skip to content

CP-314075: restore VDI.resize_online for online VDI resize - #7211

Open
MarkSymsCtx wants to merge 1 commit into
xapi-project:masterfrom
MarkSymsCtx:CP-314075
Open

CP-314075: restore VDI.resize_online for online VDI resize#7211
MarkSymsCtx wants to merge 1 commit into
xapi-project:masterfrom
MarkSymsCtx:CP-314075

Conversation

@MarkSymsCtx

Copy link
Copy Markdown
Contributor

Reinstate the VDI.resize_online API that was removed in 31b22cc (CA-262059), so that "xe vdi-resize online=true" can resize a VDI attached to a running VM. resize_online shares the offline resize storage path (SM vdi_resize); the online/offline distinction lives in xapi's allowed-operations checks, which permit resize_online on an attached VDI only when the SM backend advertises the VDI_RESIZE_ONLINE capability. It is then up to the backend to decide whether it can satisfy the request and to fail with an appropriate error if it cannot.

  • datamodel: mark resize_online as published again
  • message_forwarding: restore resize_online forwarding
  • xapi_vdi: resize_online implementation; revert resize live-permission change
  • tests: cover resize_online allowed/blocked by VDI_RESIZE_ONLINE feature and offline resize still blocked while attached

@MarkSymsCtx

Copy link
Copy Markdown
Contributor Author

Blocking this functionality at the toolstack level terminates options for storage innovation. Whether this functionality is present is already controlled by the features published by the SM layer.

Reinstate the VDI.resize_online API that was removed in
31b22cc (CA-262059), so that
"xe vdi-resize online=true" can resize a VDI attached to a running VM.
resize_online shares the offline resize storage path (SM vdi_resize); the
online/offline distinction lives in xapi's allowed-operations checks, which
permit resize_online on an attached VDI only when the SM backend advertises
the VDI_RESIZE_ONLINE capability. It is then up to the backend to decide
whether it can satisfy the request and to fail with an appropriate error if
it cannot.

- datamodel: mark resize_online as published again
- message_forwarding: restore resize_online forwarding
- xapi_vdi: resize_online implementation; revert resize live-permission change
- tests: cover resize_online allowed/blocked by VDI_RESIZE_ONLINE feature and
  offline resize still blocked while attached

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Mark Syms <mark.syms@citrix.com>
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.

1 participant