Track active operations per transfer so reads can run concurrently and
normal finalization waits for them to complete.
Add force cancellation to reclaim finalizing transfers, kill managed
exporters, and reap children asynchronously.
Serialize export admission with shutdown, allow retries after completed
cancellations, and publish backup results atomically for the TM client.
The remote scripts directory (former SCRIPTS_REMOTE_DIR) is now fixed
to /var/lib/one-remotes and the configuration attribute is gone. The
old default /var/tmp/one was broken in several ways: /var/tmp content
is aged away by systemd-tmpfiles, the world-writable parent allows
squatting on the directory, and the configurable location was silently
not honored by many drivers, probes and static files (sudoers,
AppArmor, tmpfiles, cron).
- The remotes are synced to /var/lib/one-remotes on the hosts; the
directory is created by the node packages, as it cannot be created
by the unprivileged oneadmin
- The node monitoring DB moves along to /var/lib/one-remotes-db;
it cannot live inside the remotes directory as the sync
(rsync --delete) would remove it. The monitord client migrates
the DB from the legacy location on its first start
- Helpers executed through sudo are installed at a fixed path
(/usr/lib/one/sbin) by the node packages, so they are no longer
executed from an oneadmin-writable location
- Remote hooks (REMOTE = yes) run from /var/lib/one-remotes/hooks.
Hook commands given as an absolute path are executed as-is and
must be updated manually
- Fix remotes sync to run the mkdir on the host: the local shell
interpreted the unquoted ';' and ran it on the frontend instead
- onecfg migrator drops SCRIPTS_REMOTE_DIR from oned.conf and the
stock :remote_hook_base_path from onehem-server.conf
- 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.