Commit Graph
21952 Commits
Author SHA1 Message Date
Guillermo Ramos ba9d43f548 F #OpenNebula/one#7509: fix (sort) schema definition (#4209)
Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
2026-05-13 15:29:30 +02:00
Daniel Clavijo Coca 30169f12dd F OpenNebula/one#7673: Adjust vhost socket dir (#4206) 2026-05-13 15:20:23 +02:00
Jorge Miguel Lobo Escalona 5c49f37bd1 F OpenNebula/One#7642: fix kubeconf tab (#4204) 2026-05-12 13:50:57 +02:00
Guillermo Ramos 1378462bb2 F #OpenNebula/one#7509: update schema definition (#4203)
Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
2026-05-12 13:18:48 +02:00
Victor Palma dbb750aaee F OpenNebula/one#7645: Add OneHelper to ODS (#4202) 2026-05-12 13:07:32 +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
Daniel Clavijo Coca 30094c7113 F OpenNebula/one#7657: Flexible VLAN mode (#4198) 2026-05-12 11:03:09 +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
Ruben S. Montero 34abc042d5 F #7509: Clean pci net cache on monitor client startup 2026-05-11 19:47:01 +02:00
a377c10e21 F #7509: Add NIC names and PCI type to PCI monitoring (#4168)
This commits adds 2 monitor parameters to PCI devices:

* IFNAME. Obtained from predefined mapping as comments (with format # <PCI_ADDRESS> <- IFNAME, eg #0000:65:00.0 <- eth0) in udev file '/etc/udev/rules.d/99-rename.rules'. If not defined the net folder of the pci device is used (e.g. ls /sys/bus/pci/devices/0000:00:14.3/net).

* PCI_ROLE. To set the type of pci device, 'vf' = virtual function, 'pf' = physical function and '-' = not a network device.




Add PCI_ROLE={pf,vf,-} to PCI attributes

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Refactor extract_pci_interfaces method for clarity

* Update NET_NAMES_CACHE_DIR path to /var/tmp

Change NET_NAMES_CACHE_DIR to a persistent location.

---------

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
Co-authored-by: Ruben S. Montero <rsmontero@opennebula.org>
2026-05-11 19:41:55 +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
mkutouskiandJan Orel 4188fe50ad B #7646: Apply log rotation fix to remaining services
Extend the FireEdge log fix to oned, oneflow, oneform, onegate and
onehem so they share the same rotation behavior:

- Add compress / compressoptions -9 / delaycompress to the logrotate
  configs. With copytruncate, delaycompress avoids gzipping the
  freshly-rotated file in the same pass and keeps service restarts
  fast even when ExecStartPre runs logrotate -f.

- Drop the synchronous gzip ExecStartPre loops from each unit. The
  glob (e.g. oneflow*.log) does not match files rotated with
  dateformat -%Y%m%d-%s, so the loop was ineffective, and running
  gzip without backgrounding blocked startup.

- Ship a logrotate config for oneform; the unit was pointing at
  /etc/logrotate.d/opennebula-form but no such file existed, so
  oneform.log was never rotated.

- src/hem/bin/onehem-server: use >> instead of > so restarts via the
  shell wrapper do not truncate the log, matching oneflow / onegate /
  oneform / fireedge wrappers (originally fixed in #6034).

Signed-off-by: Mikalai Kutouski <mkutouski@opennebula.io>
Co-authored-by: Jan Orel <jorel@opennebula.io>
2026-05-11 10:26:58 +02:00
Jorge Miguel Lobo Escalona 2c9ec9685d F OpenNebula/One#7642: fix import (#4200) 2026-05-08 11:59:34 +02:00
AlejandroandTino Vázquez 3ff3ea4515 B OpenNebula/one#7365: Fix translations in other languages (#4197)
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
2026-05-08 10:33:09 +02:00
DavidandTino Vázquez 58e8f0da2a F OpenNebula/one#7651: VLAN_ID not mandatory when using ovs (#4196)
VLAN_TAGGED_ID accepts list. 

Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
2026-05-08 10:31:47 +02:00
Ruben S. Montero adc598cfa9 B #7659: Default empty probe period values
Handle missing or empty PROBES_PERIOD entries in monitord-client by falling
back to the expected defaults. Also default empty SYNC_STATE_VM values in KVM
and LXC status probes to avoid 0 sync interval.
2026-05-07 19:09:32 +02:00
Guillermo Ramos 5770d9a1ef F #-: Fix Ceph live backups: all steps done on single host (#4195)
Follow-up to https://github.com/OpenNebula/one-ee/pull/4176. After that PR, other failures started
appearing with (full) live backups, because temporal snapshots were not being cleaned up.

The reason is not fully clear to me but looks like the second command returned by `backup_disks_sh`
(Save TPM state, via ssh), although running correctly, was returning a non-zero code and thus the
third command (Cleanup snapshots) was not being executed. This commit fixes that by executing the whole
script in the bridge and removing the self-SSH in the second command.

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
2026-05-07 14:00:57 +02:00
AlejandroandTino Vázquez 0f08dd2f5f B OpenNebula/one#7553: add auto-focus to VNC console on load (#4190)
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
2026-05-07 13:34:27 +02:00
DavidandTino Vázquez 4150614d9a B OpenNebula/one#7554: Refresh views when changing group (#4193)
and resources when changing zone

Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
2026-05-05 20:42:25 +02:00
Guillermo Ramos c700d70549 F one#7185: Monitor disks from Ceph DS (volatile and cloned)
Supersedes #4158 (this one includes a fix for multidisk VMs).

Code is heavily inspired by the example provided by the OP (cited as Co-authored-by, not sure if this is the best way to provide attribution), but with some changes:

* MONITOR_VM_DISKS is taken into account. In my testing it works just fine (for SYSTEM ds; it's undefined for IMAGE ds).
 * BRIDGE_LIST branches are not needed. It is a mandatory attribute in Ceph datastores.


Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
2026-05-05 20:08:13 +02:00
Ruben S. Montero 6549e15f3f B #7654: Prevent clients to set VNET_UPDATE in one.vn.update API call
An existing VNET_UPDATE template prevents to properly store changes in
the Virtual Network and therefor the update of the VMs attached to it.
2026-05-05 19:10:00 +02:00
Jan Orel e2bcfcd19e B OpenNebula/one#7608: Fix opennebula-cli gem standalone install (#4165)
Add load_opennebula_paths stub to the CLI gem and include the missing
opennebula/lib/ files in the OCA gem so both gems work when installed
standalone via RubyGems.
2026-05-04 19:05:07 +02:00
Guillermo Ramos 73f60e0f2f F #7547: Add OS-type filtering to QEMU GA (#4170)
Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
2026-05-04 18:38:41 +02:00
Jorge Miguel Lobo EscalonaandTino Vázquez bfb45c4d6f F OpenNebula/One#7642: fix pending tasks (#4188)
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
2026-05-04 17:16:37 +02:00
DavidandTino Vázquez d856b0cb6b M #-: LocationProvider causes error due to wrong import (#4192)
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
2026-05-04 10:53:59 +02:00
Victor Palma c3a4d46a8b F #-: Refactor ODS logs endpoint (#4185) 2026-05-04 10:52:07 +02:00
Jan Orel 9f7c17dc52 F OpenNebula/one#7508: Add extra prometheus exporters (#4191) 2026-05-04 10:06:36 +02:00
Jan Orel 9c79329e80 B #-: Define ENTERPRISE in main SConstruct (#4186) 2026-04-30 15:48:59 +02:00
DavidandTino Vázquez 32eabc1682 F OpenNebula/one#7484: Add favicon image as a config parameter (#4180)
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
2026-04-30 13:11:18 +02:00
Ruben S. Montero 8b74325aed Revert "F one#7185: Monitor disks from Ceph DS (volatile and cloned) (#4158)"
This reverts commit e6667d5e96.
2026-04-29 10:39:46 +02:00
Guillermo Ramosandnachowork90 e6667d5e96 F one#7185: Monitor disks from Ceph DS (volatile and cloned) (#4158)
Code is heavily inspired by the example provided by the OP (cited as Co-authored-by, not sure if this is the best way to provide attribution), but with some changes:

- MONITOR_VM_DISKS is taken into account. In my testing it works just fine (for SYSTEM ds; it's undefined for IMAGE ds).
- BRIDGE_LIST branches are not needed. It is a mandatory attribute in Ceph datastores.

Co-authored-by: nachowork90

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
2026-04-29 09:42:12 +02:00
Jorge Miguel Lobo Escalona db835696ce F OpenNebula/One#7451: add kubernetes tabs (#4183) 2026-04-28 17:04:00 +02:00
Jan Orel 185c30920a M #-: Allow added config dirs in branch protect smoke test (#4182)
* M #-: Allow added config dirs in branch protect smoke test
* L #: subtle lint

(cherry picked from commit 2545db19d8)
2026-04-28 16:39:28 +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
Pavel Czerny 5557bfdca0 L #-: C++ linting 2026-04-27 09:38:32 +02:00
Pavel Czerny 80eefac1e0 M #-: Trim all input Template values 2026-04-27 09:38:32 +02:00
Guillermo Ramos c90af74008 B #-: Fix Ceph live backups (#4176)
Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
2026-04-27 09:34:04 +02:00
Ruben S. Montero 19532c7a74 M #-: Remove uneeded trim calls 2026-04-22 17:42:54 +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
Jorge Miguel Lobo Escalona cd08ec38da F OpenNebula/one#7291: fix tab-manifest file (#4175) 2026-04-21 11:35:13 +02:00
Pavel Czerný 1605a4e97b F #7487: Configurable API result log length (#4164) 2026-04-21 10:36:37 +02:00
MarioRobres a6afdffde3 F #-: workflow to automatically disable new failing Rubocop cops (#4163) 2026-04-21 10:07:24 +02:00
Ruben S. Montero 5efe393755 L #-: Minor linting 2026-04-20 11:42:33 +02:00
Jan Orel e48a464ca0 B OpenNebula/one#7606: Fix auth MAD hang for users with empty password (#4162) 2026-04-20 11:40:53 +02:00
Pavel Czerný 37524d156e L #-: Ruby linting src/cli/* files (#4159) 2026-04-20 11:34:39 +02:00
Pavel Czerný 1521a12d45 B #7349: Correctly revert all changes in case of VM deploy failure (#4156)
* New generic class to implement complex rollback logic (ScopeGuard)
* Specialization for VirtualMachine API (DeployGuard)
2026-04-20 11:25:34 +02:00
vichansson 93606e1896 M OpenNebula/one#7598: Tolerate missing tabs dir (#4173) 2026-04-20 10:16:15 +02:00
Jorge Miguel Lobo Escalona 2121e6b9f7 B OpenNebula/one#7617: add a default to the quotas (#4169)
(cherry picked from commit 6f5cb602a6)
2026-04-16 17:37:55 +02:00