- Fixes custom attribute removal when updating VM templates.
- Tracks added, edited, and deleted custom variables in the form's modified-fields state.
- Applies custom-variable changes to the original root-level template data so deleted attributes are not restored when building the final template.
* Extract shared step ID to separate file to prevent loading loop
Signed-off-by: Victor Hansson <vhansson@opennebula.io>
(cherry picked from commit fad9be9dbba63863802f1eb7bd4a92fa1c3cb722)
(cherry picked from commit 11f7b93cf094464f33111a0c6ab2d2f02cd8f531)
(cherry picked from commit 108d8922c2)
- Updates VNC console connections to honor the address configured in `GRAPHICS.LISTEN`.
- Uses loopback addresses for wildcard listeners (`0.0.0.0` and `::`) while supporting explicit IP addresses and DNS names.
- Passes the resolved graphics address through the Guacamole session and uses it as the remote destination of the SSH tunnel..
- The Guacamole WebSocket route currently logs the complete connection settings object. Since this object may contain VNC credentials, the debug log should be removed before merging.
- The new tunnel destination is inserted into a command executed through `bash -c`; it should be validated or safely escaped to prevent command injection through `GRAPHICS.LISTEN`.
Live datastore migration uses QEMU blockcopy, which copies the current disk contents but
does not preserve qcow2 internal snapshots. Copying the original disk files afterwards
to restore those snapshots overwrites disks already in use by QEMU, risking disk
corruption and data loss.
Reject live datastore migration in oned when the VM has system snapshots. Also check the
actual qcow2 files in the KVM migration script as a safe guard.
Host-only live migration and migration with external disk snapshots remain supported.
Use cold datastore migration to preserve internal snapshots.
Include OneForm, OneKS and FireEdge configuration files in onezone
serversync, restarting the corresponding services when files change.
Skip these optional files when missing locally or remotely, while
preserving failures for required files and connection or transfer errors.
Fix the SCP failure message to reference the source file.
Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
CLUSTER_IDS are controlled by RESTRICTED ATTRIBUTES, regular users will not be able to overwrite the ids. This update operation is only for oneadmin account/groups.
- Improves VNC console reliability for LXC virtual machines.
- Extends the Guacamole tunnel receive timeout to tolerate longer periods without WebSocket messages.
- Reworks `svncterm` inactivity tracking to use monotonic time and account for both terminal input and output, preventing premature disconnections.
(cherry picked from commit 40644b80dbd0321f11ca65dc708361d8370377d9)
- Registers a dedicated SPICE console route without displaying it in the sidebar.
- Enables the SPICE VM console action for the admin, cloud, group administrator, and user Sunstone views.
- Adds end-to-end SPICE console support for running KVM/QEMU virtual machines.
- Introduces short-lived SPICE sessions and a WebSocket-to-TCP proxy with authentication, validation, timeout handling, and cleanup.
- Adds SPICE as a graphics type in VM templates and VM configuration forms, including normalization and restart guidance when changing graphics protocols.
- Reuses shared loading components across Guacamole and SPICE consoles and provides SPICE connection status and reconnection controls.
ODS
- Adds reusable GenericController and DocumentController DSLs for REST APIs.
- Extends ODS::Document and document pools with typed attributes, safe partial updates, raw access, dependency resolution, and per-resource locking.
- Adds reusable document capabilities through StateMachine, Errorable, Historyable, and Jobable.
- Introduces a declarative workflow/job framework with lifecycle transitions, recovery, cancellation, failure handling, and ensure actions.
- Adds JobScheduler for concurrent execution, resource exclusion, persisted job recovery, stale-result protection, and cancellation coordination.
- Adds the common ODS::Command executor with structured logging, timeout, environment/workspace handling, and signal-based cancellation.
- Moves shared OpenNebula resource helpers and common validation/serialization logic into ODS.
- Adds common handling for sensitive document attributes and automatic secret redaction.
OneForm
- Migrates providers and provisions to ODS documents and reuses the new ODS controller infrastructure.
- Replaces the previous lifecycle manager with the declarative ProvisionLCM workflow.
- Persists active operations in provisions and supports automatic recovery after service restarts.
- Adds asynchronous operation cancellation and replaces retry with recover.
- Introduces ResourceManager for dependency-aware, idempotent management and reconciliation of OpenNebula resources.
- Updates the provision API with direct REST operations for recovery, cancellation, hosts, public IPs, and deletion.
- Improves sensitive provider data handling, including redacted credentials and permission-aware access.
- Adapts Terraform and Ansible execution to the ODS job system, including persistent Terraform state, isolated workspaces, improved progress/error logs, and cancellation.
- Updates host and public IP management, including batch host deletion and stable UUID-based host reconciliation.
- Adds common host template support for Terraform-discovered hosts, including IM_MAD and VMM_MAD.
- Adds support for common host templates in deployment definitions, including IM_MAD and VMM_MAD, automatically applied to hosts discovered by Terraform.
- Improves driver management, validation, deployment inputs, synchronization, and host templates.
- Updates the Ruby client and the oneform, oneprovider, and oneprovision CLIs to match the new API and lifecycle semantics.
- Adapt current Sunstone API calls. No new features included.
- Adds onedb and onecfg migrations for server and sunstone configuration.
- Updates bundled drivers and Ansible inventory handling to match the new implementation and remove obsolete warnings.
(cherry picked from commit 1eab0b458a16e0dfaedfd9cef923ee9c05b5d61c)
* Attaching a NIC in Sunstone now allows overriding/setting the security
groups, before the device has been attached. This applies to both the
VM template's creation and instantiation dialog.
Signed-off-by: Victor Hansson <vhansson@opennebula.io>