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