Commit Graph
19191 Commits
Author SHA1 Message Date
Jan Orel 7e0fa890e3 B #-: Fix ZMQ shutdown SIGSEGV on Ruby 3.4 (frozen FFI objects) (#4103)
The previous fix (b001d61b) suppressed FFI::DynamicLibrary finalizers
via ObjectSpace.undefine_finalizer to prevent dlclose() from unmapping
libzmq while ZMQ I/O threads are still running. However, on Ruby 3.4+
(SLES 16), FFI::DynamicLibrary objects are frozen for Ractor-safety,
causing undefine_finalizer to raise FrozenError — silently failing.

Fix both shutdown crash paths:

  1) SIGSEGV (dlclose unmaps libzmq): pin libzmq in memory via
     Fiddle.dlopen with disable_close, adding a dlopen refcount that
     is never decremented. FFI's dlclose then drops the refcount to 1
     (not 0), keeping the library mapped.

  2) Deadlock (zmq_ctx_term blocks on open sockets): suppress the
     ZMQ::Context finalizer via undefine_finalizer (Context objects
     are not frozen, so this works on all Ruby versions).

Falls back to the old undefine_finalizer approach on systems without
Fiddle or with a different libzmq soname (works on Ruby < 3.4).
2026-03-16 16:10:11 +01:00
Pavel Czerný 66c3fdac18 B #7527: Fix race conditions in xml-rpc and grpc API (#4101)
* Race condition issues in xml-rpc api
* Race condition in rename API
2026-03-16 08:48:54 +01:00
Pavel Czerný 95bb239941 M #-: Fix rare race condition in onevnet chown (#4099) 2026-03-11 17:36:16 +01:00
Ruben S. Montero 72a773dcd4 F #7311: LXC Disk Snapshot support
It supports live snapshot operations for LXC and the following storage
drivers:

- fs_lvm
- ceph
- shared (only raw disks)
- local (only raw disks)
2026-03-11 17:16:28 +01:00
Pavel Czerný 26dc7b7bf7 M #-: Fix gRPC PyOne build (#4098) 2026-03-11 09:45:15 +01:00
Jan Orel b001d61b00 B #-: Fix ZMQ shutdown SIGABRT caused by cross-thread socket close (#4097) 2026-03-10 11:20:09 +01:00
Jan Orel 151de49262 B #-: Fix ZMQ shutdown SIGSEGV caused by use-after-unmap (#4096)
The previous fix (acf180b) prevented the ZMQ context finalizer deadlock
by suppressing zmq_ctx_term via ObjectSpace.undefine_finalizer. However, this left ZMQ I/O threads running. When Ruby's GC later finalized the FFI::DynamicLibrary object, it called dlclose() on libzmq, unmapping its code while I/O threads were still executing it — causing a SIGSEGV.

Fix: close all ZMQ sockets first (so zmq_ctx_term won't block), then
explicitly terminate contexts (stopping I/O threads), then suppress
GC finalizers to prevent double-free.
2026-03-09 11:32:21 +01:00
Jan Orel 32ce254df6 B #-: Fix crash in VectorAttribute::marshall() with empty map (#4093)
`return 0` constructs std::string from a NULL pointer, causing
std::logic_error and oned abort during VM deploy when no FILESYSTEM
disks are present (empty TMP_CONTEXT in generate_disk_context).
2026-03-04 17:12:01 +01:00
Jaime Conchello 0b6f35c95f F OpenNebula/engineering#740: Fix support for fqdn (#4092) 2026-03-02 16:41:02 +01:00
Pavel Czerný ee3daf5e5e M #-: Purge unused attributes from config xml-schema (#4090) 2026-03-01 14:25:33 +01:00
Jan Orel c1a4be5803 M #-: Add missing license (el10 build failed) (#4089) 2026-02-27 09:21:48 +01:00
Ruben S. Montero 81fd8e353b Revert "F #7373: FSaaS (File System as a Service) for OpenNebula"
This reverts commit fa72e8fd7f.
2026-02-26 19:24:53 +01:00
David 09129030c8 M #-: Enable DPDK on vnet (#4077)
Signed-off-by: dcarracedo <dcarracedo@opennebula.io>
2026-02-26 13:31:01 +01:00
Miguel E. Ruiz a85726e3ab B OpenNebula/one#: Add missing title for VDC creation (#4085) 2026-02-26 13:23:58 +01:00
Mirko StojiljkovićandMarco Mancini 5bfe9326ac F OpenNebula/one#7486: Supporting gRPC in PyOne (#4046)
Signed-off-by: ms4ons <mstojiljkovic@opennebula.io>
Signed-off-by: Marco Mancini <mmancini@opennebula.io>
Co-authored-by: Marco Mancini <mmancini@opennebula.io>
2026-02-26 12:54:53 +01:00
Mirko Stojiljković fdc69a311c B #7503: Fix current VM placement parsing (#4078) 2026-02-26 12:20:35 +01:00
Ruben S. Montero bb6bb45a2a F #913: Add DS_LIVE_MIGRATE attribute
Add new attribute to prevent migrations on unsopported drivers. Add
migrator to add it to DS templates

coauthored-by: Guillermo Ramos <gramos@opennebula.io>
Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
2026-02-26 11:58:33 +01:00
fa72e8fd7f F #7373: FSaaS (File System as a Service) for OpenNebula
NAME   = test_ds
DS_MAD = virtiofs
TM_MAD = local
TYPE   = IMAGE_DS
DISK_TYPE = FILESYSTEM

oneadmin@ubuntu2204-kvm-ssh-7-0-f4a9-0:~$ cat img.txt
NAME="test_fs"
TYPE="FILESYSTEM"
PATH="/var/tmp/sharedfs_test"
PERSISTENT="YES"
PERSISTENT_TYPE="SHAREABLE"

DISK=[
  IMAGE_ID="21",
  MOUNTPOINT="/mnt",
  TARGET="disk0_tag" ]

co-authored-by: MarioRobres <mrobres@opennebula.io>
co-authored-by: Marco Mancini <mmancini@opennebula.io>

Signed-off-by: MarioRobres <mrobres@opennebula.io>
Signed-off-by: Marco Mancini <mmancini@opennebula.io>
2026-02-26 11:18:38 +01:00
Jan Orel acf180b579 B #-: Fix ZMQ context finalizer deadlock on shutdown (#4083)
On openSUSE (Ruby 3.4), opennebula-flow, opennebula-hem and one_hm hang
on shutdown until systemd SIGKILLs them after 90s.

Root cause: during Ruby's exit sequence, GC finalizers run on unreachable
ZMQ::Context objects calling zmq_ctx_term(), which blocks until all
sockets from that context are closed. But the subscriber sockets were
never explicitly closed (threads were killed by Ruby before cleanup),
so the context finalizer deadlocks with the pending socket finalizers.

Fix: register an at_exit handler that removes ZMQ::Context finalizers
via ObjectSpace.undefine_finalizer. This prevents the blocking
zmq_ctx_term call from ever running during GC, letting socket finalizers
run zmq_close independently. The OS reclaims all remaining ZMQ resources
on process exit.
2026-02-25 17:08:52 +01:00
Victor Palma 838542b30a M #-: Add onprem inputs to fireedge layout (#4082) 2026-02-24 16:35:29 +01:00
Jan Orel eabb071d20 M #-: Refresh onecfg migrators (#4080) 2026-02-24 14:59:14 +01:00
Victor Palma 244f728498 B #-: Check object after deletion (#4074) 2026-02-23 17:13:14 +01:00
Guillermo Ramos 4eae08c87b F #-: Force change-media on migrations (#4073)
Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
2026-02-23 16:50:12 +01:00
Guillermo Ramos cd00a4c87c F OpenNebula/one#913: Fix regression after review refactor (#4072)
Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
2026-02-20 14:11:42 +01:00
Ruben S. Montero 47b26d9d57 M #-: Fix BRIDGE_TYPE update in VirtualNetwork 2026-02-19 19:27:20 +01:00
Guillermo Ramos 962a54bf8c F #-: use cache=none for context cdrom (#4070)
Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
2026-02-19 16:04:59 +01:00
Ruben S. Montero f2b868f2f8 F one#6534: Add SHARED attribute to GOCA AddressRange 2026-02-19 13:06:39 +01:00
Miguel E. Ruiz 8ee2774173 B OpenNebula/one#7459: Fix minor bugs on OneForm integration (#4071)
- Add confirmation messages for Clusters operations
- Add confirmation messages for Provider operations
- Fix tooltip on AddHost Form for Onprem clusters
- Fix translations

Signed-off-by: Miguel E. Ruiz <mruiz@opennebula.io>
2026-02-19 10:40:25 +01:00
Ruben S. Montero 36ac49b8d6 M #-: Support multiple BRIDGE_TYPES in VN_MAD
BRIDGE_TYPE can be now a comma separated list "openvswitch,
openvswitch_dpdk". When created a VNET any value from the list for that
driver can be set.

NOTE: This commit includes oned.conf changes

(cherry picked from commit aa33731c288ca928c9d13c18e1ca5a67ff692262)

add oned.conf
2026-02-18 16:09:14 +01:00
Pavel Czerný 574f851895 M #-: Fix random monitoring failure after host forceupdate (#4065)
* Small delay allows monitoring to finish job nicely
2026-02-18 11:22:45 +01:00
Jan Orel cca5ea71eb F #-: Fail loudly when HM driver cannot bind ZMQ sockets (#4063)
Check the return code of ZMQ bind() for both publisher and replier
sockets. If binding fails (e.g. port already in use by an orphaned
one_hm.rb process), exit with an error instead of silently running
with no event publishing capability.

Without this check, a stale one_hm.rb holding the ZMQ port causes
the new instance to silently lose all hook events, breaking oneflow
service state monitoring (WatchDog never receives state changes).
2026-02-18 11:20:21 +01:00
Victor Palma dcd760f9ae B #-: Fix update patch operation when nested attrs are provided (#4067)
* Fix update patch operation when nested attrs are provided
*  Prevent array merging
2026-02-17 15:56:56 +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
David 71718e2882 F OpenNebula/one#7459: Fix issue with default values (#4064)
Signed-off-by: dcarracedo <dcarracedo@opennebula.io>
2026-02-16 10:17:55 +01:00
Miguel E. RuizandTino Vázquez 8eae722194 B OpenNebula/one#7459: Hide snackbar when oneform api is not available on clusters view (#4061)
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
2026-02-12 15:54:14 +01:00
DavidandTino Vázquez 7b1586d048 M #-: Send lvm thin value only on lvm storage (#4060)
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
2026-02-12 15:53:19 +01:00
Jan Orel e46dd7fcd1 M #-: Switch genisoimage -> xorriso (#4059)
- RHEL/AlmaLinux 9+ — genisoimage has been deprecated, xorriso provides an mkisofs compatibility symlink
  - Debian/Ubuntu — genisoimage gets no new features or bug fixes, xorrisofs is the recommended replacement
  - openSUSE/SLES — only xorriso in main oss repo
2026-02-12 15:06:52 +01:00
Jan Orel f42bd9cd0a F #7450: support SUSE build (#4057)
- support for SUSE in install_gems, update locks
- don't install prometheus systemd services in install.sh
  we handle that in packages
- various minor issues: bashisms, sudoers paths
2026-02-12 09:24:59 +01:00
Miguel E. Ruizanddcarracedo 78359e094e F OpenNebula/one#7459: Changes on OneForm (#4053)
Co-authored-by: dcarracedo <dcarracedo@opennebula.io>
2026-02-11 19:09:28 +01:00
MarioRobres 21f550e9f8 M #-: fix AR Shared xsd schema (#4056) 2026-02-11 13:13:48 +01:00
DavidandTino Vázquez 763556c9f8 B OpenNebula/one#7491: Send input values in the template (#4052)
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
2026-02-11 12:14:08 +01:00
Ruben S. Montero b490213499 F #-: Add NUMA color encoding
* Color encodes cores based on VM pinning
* Adds hyperlink to VM
* Fixes rendering of NUMA topology in cases where not all nodes define a core array (i.e. with ARM).
2026-02-10 16:30:20 +01:00
deb127c59b F one#6534: Support for assigning IPs to several VMs
This commit adds support for sharing IPs among several VMs. When a AR is
marked as shared several VMs can request the same IP address either
through a NIC or NIC_ALIAS.

- Shared AR's cannot assign IP address automatically, an specific IP
  needs to be requested.
- Shared AR's have some restrictions:
      - Shared AR cannot use external IPAM
      - Shared AR can only be of type IP4 or IP6_STATIC
      - Shared AR cannot update IPAM or SHARED attribute
      - Shared AR cannot make reservations
      - Shared AR cannot hold by mac
- NICs / NIC_ALIAS using Shared IP will include SHARED=YES

co-authored-by: Jorge Miguel Lobo Escalona <jlobo@opennebula.io>
co-authored-by: MarioRobres <mrobres@opennebula.io>
2026-02-10 10:28:06 +01:00
Pavel Czerný d81a2ca4d3 M #-: Fix build to work with newer grpc lib (#4051)
* Remove unneeded breaks, support Enum as slices
* use cassert instead of GPR_ASSERT
* Use pkg-config for grpc dependencies
* Make Client destructor virtual
2026-02-10 08:49:46 +01:00
vichanssonandTino Vázquez 0bd141388a M #-: Update PCI comparison test (#4048)
* Does a deep value comparison to determine the grouping of PCI devices.
This fixes a problem with MIG setups where a partitioned GPU would be
grouped incorrectly.

Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
2026-02-09 18:26:25 +01:00
DavidandTino Vázquez 2c8fdf2db9 B OpenNebula/one#7270: Add None value to disk cache (#4050)
Signed-off-by: dcarracedo <dcarracedo@opennebula.io>
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
2026-02-09 15:32:04 +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
vichansson 295f8316d6 M #-: Remove optional chaining (#4044)
* Removes optional chaining from the shared dependency script, as this
is not supported on older node runtimes
2026-02-04 23:28:06 +01:00
MarioRobres f46e7953ee B #7455: remove LEASES from updatear (#4030) 2026-02-04 12:05:02 +01:00