This commit introduces a new backup driver based on an "interactive" server. The purpose is to ease the integration of third-party backup systems so they are able to pull backups/increments from the hypervisors:
- New backup driver
- New OpenNebula Backup Exporter (OneBEX). The REST API supports: status,
export, exporters, blocks, data and finish.
- Initial support for file based virtual disks (incrementals only support CBT)
- Refactor backup_qcow2 to accomodate the new logic
- New restore logic to directly write images to the datastore from the backup service.
Co-authored-by: Ruben S. Montero <rsmontero@opennebula.org>
Adds shared ODS support required for streaming operations and VM guest command execution.
- Adds Server-Sent Events (SSE) support to ODS responses through `stream_events` and `EventStream`.
- Implements incremental SSE response parsing and exposes each event payload to callers, enabling progress tracking.
- Adds ODS client support for streaming POST requests with `post_stream`.
- Adds `EventProgressPrinter` for CLI commands consuming streamed progress events, including spinner support for interactive terminals and plain output for non-TTY environments.
- Extracts a reusable `OneHelper::VirtualMachine.exec` helper from K8sHelper to execute commands through VM exec, making it accessible from other components such as the Cluster Readiness Service.
OpenNebula Document Server (ODS) is a lightweight Sinatra-based server that
provides a foundation for building API servers within the OpenNebula ecosystem
which work with Documents. It can be used as a base class for custom services,
making it easier to maintain consistency across different OpenNebula
servers.
Features
========
- Provides a configurable base server class that can be inherited.
- Centralized logging setup with `LogConfig`.
- Supports modular route registration via `AppRoutes`.
- Easy configuration through `ConfigLoader`.
- Preconfigured error handling and exception management.
Add support for per-VM migration flags (--auto-converge and --compressed)
controlled by VM template attributes:
- MIGRATE_AUTO_CONVERGE: Initial CPU throttling rate/increment (ranges: 0-100).
Format: <initial>[,<increment>]
- MIGRATE_COMPRESSED: Enable migration compression (YES/NO). Default: NO
This commit also adds a FEATURES parser and use it during VM creation and updateconf.
The parser normalizes boolean FEATURES values, validates GIC and MIGRATE_AUTO_CONVERG.
Since FEATURES are normalized in oned, the commit removes some redundant checks.
updateconf allow updates GIC, RAS, MIGRATE_* options
See also https://libvirt.org/manpages/virsh.html#migrate
Author: Guillermo Ramos <gramos@opennebula.io>
co-authored-by: Guillermo Ramos <gramos@opennebula.io>
co-authored-by: Ruben S. Montero <rsmontero@opennebula.org>
Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
The following TM's now support storage live migrations:
- File system based (local and shared variants)
- LVM based (pure LVM, and LVM thin)
The LVM TM's does not support migrating a VM with disk snapshots.
co-authored-by: Guillermo Ramos <gramos@opennebula.io>
co-authored-by: josepselga <jselga@opennebula.io>
Author: Guillermo Ramos <gramos@opennebula.io>
- Lint
- Add bash completion for oneform commands
- Driver state is now stored in /var/lib/one/oneform
- Improve rendering of descriptions in CLI (HTML/MD support)
- Move cloud providers to oneform registry
- Disable dummy driver by default
- Qeury paths for driver/provider list
co-authored-by: vickmp <vpalma@opennebula.io>
This commit replaces {{user_inputs.<input>}} strings in OpenNebula
template: sections. This way common parameters for datastores and
networks can be defined by the user.
Change "force" message in API error message
Fix onecluster show
OnPrem clusters:
- Improve naming and descriptions
- Add method to precreate datastore folder dirs
- Adjust site.yaml
This commit introduces a new API server based on the gRPC/Protobuf. The
API follow the design of the existing xml-rpc to ease the transition to
the new server and support the current state management engine.
Both API servers can be run in parallel.
Main changes:
- Decouple Generic and XMLRPC specific logic and add gRPC classes.
- Source code re-structure to include logic for each server
- New compilation options to generate gRPC stubs
- Client code for C++, Ruby, Python and Go
co-authored-by: Jan Orel <jorel@opennebula.io>
co-authored-by: Pavel Czerny <pczerny@opennebula.io>
co-authored-by: MarioRobres <mrobres@opennebula.io>
This commit adds support for remote execution of commands in a VM through qemu Guest Agent (GA). The feature includes:
* New API calls so create, cancel and retry command execution
* Command results are included in VM information
* Command line tool exposing this functionality
* Monitor probe to reap execution of commands
This commit extends the KVM domain probe to monitor NVIDIA GPUs:
* GPU metrics: GPU_UTILIZATION, GPU_MEMORY_UTILIZATION, GPU_MEMORY_FREE,
GPU_POWER_USAGE, GPU_COUNT
* Implements method for NVIDIA GPUs. The code is prepared to add AMD
vendor in the future
* NVIDIA monitor uses nvidia-smi through qemu guest-agent those are
requirements for the VM to report metrics
* oned now adds PCI information (vendor, device and class) to all PCI
devices (i.e. even if using SHORT_ADDRESS).
* KVM metadata include PCI devices in the VM to skip VMs not using
supported GPU's
Signed-off-by: josepselga <jselga@opennebula.io>
This commit adds support for PCI device quotas. It includes the following new attributes:
- PCI_NIC (and RUNNING_PCI_NIC), to account for PCI devices of TYPE = NIC
- PCI_DEV (and RUNNING_PCI_DEV), to account for generic PCI devices
This commits also includes:
- Simpler naming of the onegroup/oneuser quota names (RUNNING is now just label as RUN and SYSTEM_DISK_SIZE is now DISK SIZE)
- Consolidation of some duplicated logic in oned
- Golang bindings has been extended to include the new quota
- fsck update for the new quotas
- migrator for 7.2.0 release
- we deliver /usr/lib/ruby/load_opennebula_paths.rb
- sym-linked from known (system-wide) Ruby path
- Debian/Ubuntu: /usr/local/lib/site_ruby/load_opennebula_paths.rb
- RHEL/Alma: /usr/local/share/ruby/site_ruby/load_opennebula_paths.rb
- suppress warnings from Rubygems no longer needed