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.
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>
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.
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>
* The event manager actions were called only by service id
* The actions are stored in map
* In case of multipe roles, only the last action is stored
* The cancel actions cancels only last action
* The remaining are still waiting for changes in background
* Fix: Index the wait events by service_id_role_name