Commit Graph
21871 Commits
Author SHA1 Message Date
Jan Orel b2d9fc8654 M #-: Add Suse15 ARM64 Gemfile.lock (#4126) 2026-03-25 15:19:41 +01:00
Pavel Czerný e219d6e872 M #-: C++ linting (#4122) 2026-03-25 12:20:23 +01:00
MarioRobres e6844a61d2 M #-: VirtioFS fixes (#4124)
* Remove mandatory persistent FILESYSTEM images
* Disable snapshot and backup for VM with FILESYSTEM disks
* Add suse15 virtiofsd path
* Fixes to virtiofsd wrapper
2026-03-24 16:00:43 +01:00
Jan Orel b777defb67 M #-: Add own suse sudoers, due to iscsiadm in /sbin (#4121) 2026-03-23 17:06:15 +01:00
Jan Orel d98f98b6fb L #-: Linting (#4118) 2026-03-20 19:24:21 +01:00
MarioRobres 30f33b4b14 F OpenNebula/one#7373: virtiofsd wrapper (#4119) 2026-03-20 19:23:30 +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
Ruben S. Montero fec2995f13 M #-: Missing changes. Fix compilation 2026-03-19 17:58:13 +01:00
Ruben S. MonteroandMarioRobres 0dec96faa7 F OpenNebula/one#7494: Improve message when scheduler fails
Include more specific reasons when a VM cannot be scheduled.
Increased sheduling matching and dispatch errors to DDDEBUG category

co-authored-by: MarioRobres <mrobres@opennebula.io>
2026-03-19 17:32:58 +01:00
Jan Orel 3b34fcc044 M #-: rubygems: Lock public_suffix gem (#4117)
Avoid installing too new public_suffix in Suse15 with old ruby
+ refresh gems
2026-03-19 14:47:06 +01:00
MarioRobres 3d82493cfe M #-: add DATASTORE_CAPACITY_CHECK to opennebula_configuration.xsd (#4115) 2026-03-19 12:03:28 +01:00
Ruben S. Montero 1189415195 F #7373: Improve ID mapping for virtiofs
- enable sandbox mode
- better default maps
2026-03-19 11:39:52 +01:00
Miguel E. Ruiz 379678f575 F OpenNebula/one#7500: Update Onprem Clusters descriptions (#4111)
Signed-off-by: Miguel E. Ruiz <mruiz@opennebula.io>
2026-03-18 17:37:22 +01:00
MarioRobres e7b808e21f M #-: VirtioFS not persistent and extra dir check (#4114) 2026-03-18 14:53:46 +01:00
Jan Orel b2452851bb M #-: SLES15: use python3.11 (#4113) 2026-03-18 14:11:45 +01:00
vichansson 63659bb381 F OpenNebula/one#7528: Fix numa affinity render (#4112) 2026-03-18 12:10:21 +01:00
d8e0ee2036 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" ]

Notes:

* Same FS image cannot be used twice in the same VirtualMachine, nor the
  same tag twice
* OpenNebula will generate a MOUNT_POINT = /mnt/one-fs-<image_id> and a
  MOUNT_TAG = one-tag-<image_id>. Both can be overwritten at DISK level.
* When using Hugepages in the VM that will be used for virtiofs and
  memory access will default to shared. Do not use
  MEMORY_ACCESS='private'
* If not using hugepages the VM will use memfd as memoryBacking source
  if it includes a filesystem.
* OpenNebula will map FS access (UID/GID) to a given user that can be
  configured per host, cluster or globally in vmm_exec_kvm.conf. By
  default all access is mapped to oneadmin account.
* Datastore monitorization will report 0 free/used/total size. Images,
  representing the FS folder, reports size as the result of a du -sb
  command.
* Most of the disk operations do not apply to filesystem disks: resize, snapshots,
  save-as, backup.

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-03-18 09:57:54 +01:00
vichansson db0e24b807 F OpenNebula/one#7528: Move NUMA mem. fields (#4109) 2026-03-17 23:36:08 +01:00
Michal Opala 1e5c77d5a2 B #-: Fix host_authorization regression in Prometheus exporters (#4106)
Signed-off-by: Michal Opala <sk4zuzu@gmail.com>
2026-03-17 08:36:48 +01:00
Michal Opala 5205002df8 M #-: Apply various fixes to patch_datasources.rb (#4105)
- Switch to literal FE hostnames in prometheus.yml
- Improve IPv6 compatibility
- Fix and extend unit tests
- Apply coding style fixes

Signed-off-by: Michal Opala <sk4zuzu@gmail.com>
2026-03-17 08:36:13 +01:00
Jan Orel 9465a84267 F Opennebula#7450: Support SLES15 build (#4110)
- update install_gems, update_lock, add Gemfile for Suse 15
- don't generate python grpc bindings if tool is missing
  (it's missing in Suse build env)
2026-03-16 19:37:48 +01:00
Pavel Czerný 25dcd30955 M #-: Fix oned crash on 'onevm create' and `onebackupjob create' (#4107) 2026-03-16 16:33:46 +01:00
Daniel Clavijo Coca e0eb350271 F #7311: Improve thin verification (#4108) 2026-03-16 16:32:33 +01:00
Ruben S. Montero 830e34a38a F #7511: DPDK nic attach and socket paths
- vmm,vnm: unify OVS DPDK vhost socket handling
- Use a shared /var/lib/one/vhost-sockets path for OVS DPDK interfaces in the KVM and Open vSwitch drivers, and create the directory when needed.
- Also fix DPDK NIC attach/detach to use the vhostuser device XML.
2026-03-16 16:16:30 +01:00
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
MarioRobres 2c293ab32c L #-: Rubocop 1.85 (#4094) 2026-03-09 11:33:05 +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
Ruben S. Montero 5c0f1adcdb M #-: Remove unsupported TM_MAD_SYSTEM configurations 2026-03-03 11:23:03 +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
Miguel E. Ruiz 0f8bfd34b0 M #-: Upgrade ruby version in Github Smoke tests (#4088) 2026-02-26 16:07:14 +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) release-7.1.80 2026-02-24 16:35:29 +01:00
Jan Orel 37c7f17343 M #-: Refresh Gemfile.locks (#4081) 2026-02-24 14:59:27 +01:00
Jan Orel eabb071d20 M #-: Refresh onecfg migrators (#4080) 2026-02-24 14:59:14 +01:00
Jan Orel f795515eb6 M #-: Remove duplicit option (#4079) 2026-02-24 14:31:26 +01:00