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>
* Cache VNC reservation BitMap
* Optimize xpath - no need to create vector<string> as we always use the
first value
* Optimize VectorAttribute::replace
* Use string_view in Attribute and Template
* Avoid temporary stream in escape_xml
Pass the freeze mode explicitly instead of coupling fsfreeze to different
VM XML implementations. Also propagate freeze and thaw failures when
errexit is disabled while preserving snapshot abort cleanup.
Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
* support manually imported appliances in air-gapped environments
* OneKS appliance discovery for accessible resources
- Use INFO_ALL when looking up appliance images and VM templates so resources available through permissions or ACLs can also be discovered.
- Find appliance templates using image names
- Improve appliance resolution with stale images. Try all matching appliance images in priority order and use the first
one with an available VM template.
(cherry picked from commit b310ae5016)