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>
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>
- 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>
- 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.
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).
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.
`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).
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>
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.
- 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>
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
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).
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>
- 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