Commit Graph
1764 Commits
Author SHA1 Message Date
Pavel Czerný 352b53e8ab B #7725: Fix method name mismatches for HA forwarding (#4255)
(cherry picked from commit d5971151ed)
2026-06-11 17:38:09 +02:00
MarioRobresandRuben S. Montero 7a69805a8d F OpenNebula/one#7660: Interactive Backup EXport server for third-party backup/restore solutions (#4260)
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>
2026-06-11 17:27:41 +02:00
Victor Palma c596cf8612 F OpenNebula/one#7644: Add shared ODS streaming support and VM exec helper (#4239)
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.
2026-05-28 13:27:31 +02:00
Victor Palma 8290af0733 B #-: Improve CLI JSON input handling (#4213) 2026-05-14 11:55:28 +02:00
Guillermo Ramos a334e30f48 B #-: Recover 7260d2d3 + escape dashed Ruby symbol (#4201)
Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
2026-05-12 12:03:14 +02:00
Ruben S. Montero bb6f6256be Revert "F #-: Fix inconsistency in onevm --help (#4199)"
This reverts commit 7260d2d3ba.
2026-05-12 09:17:09 +02:00
Guillermo Ramos 7260d2d3ba F #-: Fix inconsistency in onevm --help (#4199)
Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
2026-05-11 17:36:03 +02:00
Pavel Czerný 7f6b45ecc4 F #4159: Allow dynamic VMGroup management (#4172) 2026-05-11 10:58:30 +02:00
Victor Palma ea1df5ffec F #7259: Add OpenNebula Document Server (ODS)
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.
2026-04-28 09:03:45 +02:00
Pavel Czerný af05910b1a M #-: Improve error messages for onezone serversync (#4174) 2026-04-27 09:57:22 +02:00
Ruben S. MonteroandGuillermo Ramos 16c1ccf4bc F one#5774: Add per-VM live migration options
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>
2026-04-21 13:36:50 +02:00
Pavel Czerný 37524d156e L #-: Ruby linting src/cli/* files (#4159) 2026-04-20 11:34:39 +02:00
Pavel Czerný 63b6e50dcb B #7458: Fix empty --resource for onegroup create (#4146) 2026-04-06 15:21:39 +02:00
Ruben S. Montero ebbb7be5d4 M #-: Bump version 7.3.80 2026-03-30 09:58:53 +02:00
Pavel Czerný 721c143f20 M #-: Fix typo in user_helper quotas (#4127) 2026-03-25 15:23:27 +01:00
David 2ebe4ee328 M #-: Add oneform man page (#4104)
Signed-off-by: dcarracedo <dcarracedo@opennebula.io>
2026-03-19 19:15:40 +01:00
bffbecedc0 F #913: Storage live migration
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>
2026-02-17 09:45:33 +01:00
Victor Palma 2dccd80347 B #-: OneForm fixes (#4049)
* Add form option to install.sh
*  Improve CLI redacted output
* Add dummy OneForm drivers to simulate operation time
* Read from sensitive
* Fix delete operation
2026-02-09 09:53:03 +01:00
Pavel Czerný 03e59c5718 M #-: Fix return code for onetemplate clone (#4047) 2026-02-06 17:27:17 +01:00
MarioRobres f46e7953ee B #7455: remove LEASES from updatear (#4030) 2026-02-04 12:05:02 +01:00
Pavel Czerný 9f0c7dc334 B #7254: Fix copy-paste typo in oneuser and onegroup helper (#4041) 2026-02-04 09:40:09 +01:00
Pavel Czerný 52d6ec7e07 B #7254: Fix quotas for CLI oneuser and onegroup list (#4035) (#4040)
* Fix `onegroup list` for cluster quota
* Fix `onegroup list` and `oneuser list` for duplicit VM_QUOTA
* Linting
2026-02-03 10:23:00 +01:00
Ruben S. Monteroandvickmp baae300fb8 F #7460: Updates to oneform server
- 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>
2026-02-02 19:50:01 +01:00
Pavel Czerný a29cf07b0b F #6778: Fix build with grpc=no (#4029) 2026-02-02 12:29:40 +01:00
Miguel E. Ruiz 52ccc2d67e F OpenNebula/one-form#62: Sunstone integration with OpenNebula Form (#4026) 2026-01-27 10:22:55 +01:00
Ruben S. Montero 6be7ed9362 M #- [OneForm]: Add support for user inputs in templates
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
2026-01-23 21:19:21 +01:00
8f57c337e1 F OpenNebula/one#6778: Introduces a gRPC API server for OpenNebula Demon
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>
2026-01-12 14:58:55 +01:00
MarioRobres 826f630f00 F OpenNebula/one#7299: Add new API calls to execute commands on a Virtual Machine (#3954)
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
2025-12-10 09:41:07 +01:00
bfccb59244 F OpenNebula/one#7361: Introduce OneForm (#3930)
Co-authored-by: Victor Palma <vpalma@opennebula.io>
Co-authored-by: Miguel E. Ruiz <mruiz@opennebula.io>
Co-authored-by: Ruben S. Montero <rsmontero@opennebula.org>
2025-11-13 17:06:42 +01:00
MarioRobres de46992f0c F OpenNebula/one#7235: Auto-enable index during multiple persistent VMs (#3896) 2025-11-05 13:50:53 +01:00
Pavel Czerný 77fae428d6 M #-: Fix CPUS typo in onehost_helper (#3816) 2025-09-22 14:58:21 +02:00
Ruben S. Montero 54f21aae0f M #-: Skip NUMA CPU cores information for non-cpu nodes
For example in some ARM architectures

(cherry picked from commit 378684229b)
2025-09-20 14:06:11 +02:00
Jan Orel 2a7f32b748 M #-: Switch to ruby-augeas (#3789) 2025-09-17 13:29:22 +02:00
MarioRobres aadbb4ee30 F OpenNebula/one#6408: Support for internal snapshots in UEFI VMs (#3792) 2025-09-16 17:06:26 +02:00
Ruben S. Montero 370a3daf64 F OpenNebula/one#7221: Add GPU monitoring & forecast for VMs
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>
2025-09-10 14:40:58 +02:00
Pavel Czerný f68c826ac8 F #951: Quota for PCI devices (#3756)
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
2025-09-10 09:54:44 +02:00
MarioRobres bc9bb23bc8 B OpenNebula/one#7040: consider USER_INPUTS in onetemplate instantiate (#3731) 2025-07-16 12:19:26 +02:00
Tino Vázquez dba28daf4d L #-: Rubocop 1.77.0 2025-06-23 15:52:44 +02:00
Pavel Czerný 215d93ea56 F #7067: Add MODTIME to Images (#3655) 2025-06-04 17:59:08 +02:00
Pavel Czerný 3c43288ac6 M #-: Fix CLI output for 'onevm show' (#3666) 2025-06-04 17:57:12 +02:00
Pavel Czerny 1bc799be58 F #6606: CONTEXT->ETH* updates configurable 2025-05-22 12:42:34 +02:00
Daniel Clavijo Coca 63c38d7fb0 F OpenNebula/one#7044: Improve CLI Marketplace Apps listing (#3612) 2025-05-05 16:15:04 +02:00
Jan Orel 4c92499a70 M #-: Simplify ruby path setup (#3613)
- 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
2025-05-05 13:24:22 +02:00
Tino Vázquez 472fda35cc L #-: Fix for rubocop 1.75.3 2025-04-22 16:06:05 +02:00
Victor Palma e0e5b5093b B #-: Fix undeploy success condition (#3556) 2025-04-08 08:53:38 +02:00
Jan Orel 25c7e91a43 F #6102: Drop oneprovision (#3536)
This is to make room for the new server, includes removal of:

* oneprovision code
* Fireedge inerface tab
2025-04-03 09:32:30 +02:00
Ruben S. Montero 732634b5a0 B #-: Fix max value display in one_vm command for monitoring 2025-03-31 10:50:21 +02:00
Ruben S. Montero 4f15b2ff9b L #-: Fix linter errors 2025-03-31 10:45:53 +02:00
Ruben S. Montero 71ac165640 F #6885: Improvements for the forecasting probe
- Add bandwidth metrics to CLI and monitor deamons
- Updated forecast configuration with default models and larger intervals
- Better checks for filling gaps in SQLiteAccessor
- Remove forecast for counter metrics (NET_[RX|TX], DISK[RD|WR]BYTES and IOPS)
- Update one_drs to use bandwidth metrics
- Save monitor agent configuration to a file (/var/tmp/one_db/config) and use it in predictions
2025-03-28 14:00:43 +01:00
Tino Vázquez 1008a716e2 L #-: Rubocop 1.75.1 2025-03-27 11:23:50 +01:00