Commit Graph
1714 Commits
Author SHA1 Message Date
Ruben S. Montero 4aebee5923 M #-: Remove unused constant 2025-03-26 19:17:14 +01:00
Tino Vázquez a02f7fcab1 M #-: Remove novnc from onelog 2025-03-26 11:17:49 +01:00
Jan Orel c82a94c60a F #1550: Remove hybrid leftovers (#3503) 2025-03-26 10:51:42 +01:00
Miguel E. Ruiz 46d121d4f1 B #-: Fixes for marketplaceapp template services (#3505) 2025-03-25 19:39:57 +01:00
Jan Orel c1bbbdab28 OpenNebula/one#6720: Remove vcenter, ruby Sunstone
This commits removes two components:

- vcenter driver and associated dependencies
- Ruby Sunstone
2025-03-25 13:13:27 +01:00
Miguel E. Ruiz 2dd2e2c138 B #-: Fix on marketapp helper about obtain templates (#3500) 2025-03-24 11:57:31 +01:00
Jaime Conchello 73447d6902 B OpenNebula/one#6975: Support user-input values containing commas (#3482)
Signed-off-by: Jaime Conchello <jconchello@opennebula.io>
2025-03-19 16:06:28 +01:00
e2539c32c8 F #6680,#6682: Improve OneFlow data model and add support to VR
This commits adds the following improvements:

* Improving Usability & Consistency in flow documents:
  - vm_template -> template_id, generic as also VR templates are
    considered
  - vm_template_contents -> template_contents, same as above
  - custom_attrs -> user_inputs, use same name convention as VM
    Templates
  - custom_attrs_values -> user_inputs_values, same as above

* Easier OneFlow operations
  - template_contents (old vm_template_contents) is now in JSON format
    instead of a String.
  - better error reporting when merging template contents

* Role can use Virtual Routers as main element, supporting all role
  features (user inputs, dependencies and network creation). Related
  changes:
  - Role data model structure has been totally refactored to accomodate
    the new type (vmrole.rb and vrrole.rb)
  - VR roles use VR OpenNebula API to create associated VMs.
  - VR HA uses the cardinaility of the role

  New attributes:
  - type, new attribute to identify the role type VM or VR
  - vrouter_ips, floating IP of each network managed
  - vrouter_id, of the associated VR

* Improved Sunstone interface for flows, including support for the new
  features.

co-authored-by: Victor Palma <vpalma@opennebula.io>
co-authored-by: Miguel E. Ruiz <mruiz@opennebula.io>
co-authored-by: Victor Hansson <vhansson@opennebula.io>
2025-03-19 12:17:29 +01:00
Tino Vázquez f6da7b30e2 F OpenNebula/one#821: Remove defaulting to UTC 2025-03-17 12:11:09 +01:00
Rostyslav YatsyshynandTino Vázquez 4b6692fe4a F OpenNebula/one#821: Add timezone flag to oneacct utility (#3473)
* Add key -t, --timezone

Signed-off-by: Rostyslav Yatsyshyn <ryatsyshyn@opennebula.io>
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
2025-03-17 11:12:59 +01:00
Tino Vázquez c15526222b L #-: rubocop 1.73.2 2025-03-10 13:20:17 +01:00
108065eac5 F #6885: Forecasting metrics
This commit includes metrics forecasting for VMs and Hosts. It provides
basic algorithms for linear regression.

* VM prediction includes the following metrics:
    - cpu
    - memory
    - netrx
    - nettx
    - diskrdbytes
    - diskwrbytes
    - diskrdiops
    - diskwriops

* Host prediction includes:
    - usedcpu
    - freecpu
    - usedmemory
    - freememory
    - netrx
    - nettx

The prediction framework uses a time series DB per VM (stored in the VM
folder) to compute the forecast.

co-authored-by: Marco Mancini <mmancini@opennebula.io>
co-authored-by: Jakub Walczak <jwalczak@opennebula.io>
co-authored-by: dmingolla <dmingolla@opennebula.io>
2025-03-06 12:18:32 +01:00
Jaime Conchello 9aa581f984 B OpenNebula/one#6948: Include user_input processing as in onetemplate (#3433)
Signed-off-by: Jaime Conchello <jconchello@opennebula.io>
2025-03-03 18:10:11 +01:00
Pavel Czerný 83bcae5c5f F 1550: Remove unused files from serversync (#3438)
* Remove unused files from serversync
* Add new schedulers folder
* Better error log in case file doesn't exists
* Fix c++ linting
2025-03-03 11:58:06 +01:00
Ruben S. Montero 9da8ea1a5d F #-: Remove legacy code for Hybrid Cloud 2025-03-02 17:29:14 +01:00
Tino Vázquez a64f071808 M #-: Bump year 2025 2025-02-28 11:56:18 +01:00
eda55567b1 F #1550: New Scheduler Framework for OpenNebula & DRS scheduler
This commits introduces a new framework for OpenNebula, it is based on
standard the OpenNebula middleware access driver (mad) model. Benefits
compared to the current implementation:

* Less overhead on API server and streamlined communications
* Ease integration with third party schedulers
* New "optimize" action to balance the workload of a cluster
* Embedded Plan Manager to apply optimization and deployment plans with
  custom parameters for the scheduling window
* Custom optimization policies per cluster

This commits introduces 2 schedulers:

* Rank scheduler based on the match-making algorithm present in 6.x
  series
* OpenNebula DRS an optimization algorithm based on an ILP solver for
  placement and cluster optimization

Also new API calls has been added for onecluster as well as the CLI
updates to expose them.

co-authored-by: MarioRobres <mrobres@opennebula.io>
co-authored-by: Pavel Czerny <pczerny@opennebula.io>
co-authored-by: Mirko Stojiljkovic <mstojiljkovic@opennebula.io>
co-authored-by: Valentyn Bohdan <vbohdan@opennebula.io>
2025-02-27 16:33:05 +01:00
Valentyn Bohdan 950f33c67f B OpenNebula/one#6828: Fix onetemplate cli options override CONTEXT section (#3377) 2025-01-30 11:47:16 +01:00
Pavel Czerný 631acb7f48 B #6790: Fix onehost show for single Hugepage (#3386)
(cherry picked from commit a19325cbd5)
2025-01-30 11:30:21 +01:00
Guillemo RamosandRuben S. Montero 696e69a957 F #6752: AutoNFS (#3331)
This feature auto mounts NFS volumes for datastores. The behavior can be controlled with the following template attributes:

- ANFS_ENABLE: YES/NO to enable the automatic NFS management
- ANFS_HOST: hostname/IP of the NFS server
- ANFS_PATH: of the NFS share for this datastore
- ANFS_OPTS: Comma separated options (fstab-like) used for mounting the NFS shares

The shared drivers also performs a "garbage-collector" like to unmount NFS volumes on the hypervisors when the datastores are deleted. This operation is performed in a "lazy" way, when VMs are deployed on the hypervisor.

* oneimage create: mount/umount DS on demand

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Move sh mount/umount logic to libfs.sh

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* oneimage delete: mount/umount DS on demand

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Limit NFS mount/umount from SH code to 30s

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* oneimage clone: mount/umount DS on demand

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* onevm deploy: mount DS on demand

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Temporal mount only when needed

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* onevm deploy: mount DS on demand (persisten)

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Linter

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* onevm deploy: umount unneeded DS

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Allow mount/umount/sed from sudoers

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Temporal mount: use NFS_AUTO_OPTS

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Do AutoNFS cleanup even during non-related ops

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Final refactor and improvements

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* ro values for Datastore object

* Wording for AutoNFS RO attributes

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* NFS_AUTO_ENABLE: change 'true' to 'yes'

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* sudoers: merge everythng into ONE_NFS

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Quote NFS_AUTO_OPTS

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Fix difference between sudoers specs

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Touch .automounted in AutoNFS mounts

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Update sudoers.rb

* Update rm

* Quote bash variable expansion

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

---------

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
Co-authored-by: Ruben S. Montero <rsmontero@opennebula.org>
2025-01-20 16:55:22 +01:00
Ruben S. MonteroandPavel Czerny d2c0104747 F #6342: Support for cluster quotas
This feature adds support for VM quotas at cluster level. CLUSTER_IDS
can be set for a VM quota so the admin can limit the number of resources (e.g. VMs) a
user/group can create in a given cluster.

This commit also fixes:

- B #2226
- B #6823

Co-authored-by: Pavel Czerny <pczerny@opennebula.io>
2025-01-20 09:50:06 +01:00
Valentyn Bohdan f677b37bbe F OpenNebula/one#6623: Add snapshot-list cli command (#3362)
Signed-off-by: Valentyn Bohdan <vbohdan@opennebula.io>
2025-01-17 12:59:54 +01:00
Valentyn BohdanandPavel Czerny abeb80db41 F OpenNebula/one#6636: allow to change CPU_MODEL/FEATURES with one.vm.updateconf (#3354)
Signed-off-by: Valentyn Bohdan <vbohdan@opennebula.io>
Co-authored-by: Pavel Czerny <pczerny@opennebula.io>
2025-01-17 12:51:20 +01:00
Pavel Czerný fa73142e7d F #6723: Remove onehost importvm (#3231)
* Remove vm_import table from DB
* Remove imported vms actions
* Fix fsck for image and network
* onedb fsck fix running_vms only for non-backup images
2024-11-21 17:31:47 +01:00
Ruben S. Montero 4f4a6d5a9b M #-: Clarify live migration storage limitation 2024-11-11 11:42:03 +01:00
Pavel Czerný c24dff1d26 B #6726: Fix CLI paramters converted wrongly to 0 id (#3287)
These parameters were fixed:
* schedid in onebackupjob
* execid in onehook
* snapshot_id in oneimage
* nicid, pciid, sched_id and sgid in onevm
* nicid in onevrouter
* serverid in onezone

For all those parameters the string used as ID:
* if possible the name is converted is converted to int ID
* fails if the resource doesn't have name

(cherry picked from commit f5b2a17360)
2024-11-05 16:27:12 +01:00
ArnauGabrielAtienza a95a94b5a6 F OpenNebula/one#6624: Fix no snapshots available bug (#3229)
Signed-off-by: ArnauGabrielAtienza <agabriel@opennebula.io>
2024-09-16 17:36:31 +02:00
ArnauGabrielAtienza 263cba6749 F OpenNebula/one#6624: Add list list-disk-snapshots (#3228)
in onevm for a specific disk

Signed-off-by: ArnauGabrielAtienza <agabriel@opennebula.io>
2024-09-16 11:14:44 +02:00
Shanobi 822581a032 M #-: Fix spelling in onevm command help 2024-09-05 15:55:37 +02:00
Miguel E. Ruiz d8d1409377 B OpenNebula/one#6058: Add missing content-type on oneflow-template and oneflow cli (#3204) 2024-09-03 17:49:48 +02:00
Pavel Czerný 018e3e8b5e M #-: Improve handling of warning for charters (#3183) 2024-08-01 19:47:51 +02:00
Pavel Czerný 4cb89d8032 M #-: Add warning to Sched Action (#3177) 2024-08-01 10:15:44 +02:00
Tino Vázquez 05d147c524 M #-: Bump version 6.10.0
Also bump copyright year to 2024
2024-07-29 14:27:11 +02:00
Ruben S. Montero 033ac01567 F #6653: Remove Postgresql dependencies 2024-07-17 12:58:37 +02:00
madalinneagandGuillermo Ramos 4161a93b74 B OpenNebula/one#6305: Fixing oneflow delete function (#3146)
Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
Co-authored-by: Guillermo Ramos <gramos@opennebula.io>
2024-07-10 13:07:03 +02:00
Ruben S. Montero 41f25a2518 F OpenNebula/one#6397: Removes Marketplaces, Hypervisor drivers and others
- Remove Firecracker driver
- Remove LXD driver
- Remove dockerhub, docker registry marketplaces
- Remove turnkey linux marketplace
- Remove docker machine
- Remove references to above components in Sunstone
- Change suffix to LXC to avoid confussion, remove turnkeylinux driver
2024-07-08 09:49:11 +02:00
Pavel CzernýandAlejandro Huertas 95c51ff87f F #5861: Search VM using JSON querry (#3102)
Signed-off-by: Pavel Czerny <pczerny@opennebula.io>
Co-authored-by: Alejandro Huertas <ahuertas@opennebula.io>
2024-06-13 12:35:15 +02:00
Jan Orel 4da8c1cb52 B #6587: Switch to opennebula-augeas gem (#3079)
Switch to OpenNebula fork of the discontinued augeas gem.
2024-05-27 16:20:09 +02:00
Pavel Czerný 0f248706de B #6498: Allow VM recover --recreate in poweroff and suspend (#3067)
* Refactor release vnc port
* Fix VNC port for recover --recreate in stopped state
* Improve error messages
*  Update recover --recreate description

(cherry picked from commit 9ed1fba8b95c1ea5d3984f136e638b973577ad69)
2024-05-21 12:11:06 +02:00
Ruben S. MonteroandPavel Czerny 3dfd53df1c F #6053: In-place restore of VM backups (shared and ssh drivers)
This commit implements the in-place restore of VM backups. Selected VM disks will
be replaced with the specified backup:

* A new API call has been added to the XML-RPC API (`one.vm.restore`) with
  the following arguments:
    - VM ID to be restored, needs to be in **poweroff** state
    - IMAGE ID of the backup to restore
    - INCREMENT ID, only for incremental backups, the increment to use
      (defults to -1 to use the last increment available)
    - DISK ID of the disk to restore (defaults to -1 to restore all VM
      disks)

* Datastore drivers needs to implemente a new operation `ls`. This new
  operation takes the VM, image information of the backup and datastore
  information and returns the restore URL for the disks in the backup.

* This commit includes the implementation for qcow2 and ssh drivers,
  ceph will be implemented in a separated PR. The new driver action is
  `restore host:vm_dir vm_id img_id inc_id disk_id`

* The restore operation is performed in a new state `PROLOG_RESTORE`
  rendered as `RESTORE` and `rest` in short form. State in in RSuntone.

TODO:
  - Remove any existing VM snapshot (system/disk) in the VM. Note that
    snapshots are not included in a backup.

  - Ceph drivers

  - JAVA, GO Lang API bindings

  - Sunstone interface, new state and new operation. Review new state in
    RSuntone.

co-authored-by: Pavel Czerny <pczerny@opennebula.io>
2024-04-26 12:45:04 +02:00
Pavel Czerny 91fe6acc82 M #-: Sync onevm updateconf description with code 2024-04-18 12:06:51 +02:00
Pavel Czerny e4a8e37d3d B #6552: Disable update of VM->CONTEXT->ETH* values
Disable update of CONTEXT->ETH* values, which leads to an inconsistent
context.sh file inside VM.

Fix re-generating of ETH values for updateconf in replace mode, when the
value NETWORK=YES wasn't change.
2024-04-18 12:05:02 +02:00
Daniel Clavijo CocaandTino Vázquez 6cfe1a83f8 B OpenNebula/one-apps#14: Update CLI description to reflect behavior (#2992)
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
2024-03-20 16:11:17 +01:00
Pavel Czerný 2c5a11863e B #6533: Fix no_check_capacity for image create (#2994)
(cherry picked from commit 3df4cbb1d3)
2024-03-20 10:49:21 +01:00
Pablo del ArcoandTino Vázquez 7caf308ca7 F OpenNebula/one#6511: CLI listing formatting ignored (#2979)
when passing --search

Signed-off-by: Pablo <pdelarco@opennebula.io>
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
2024-03-12 17:08:50 +01:00
dgarcia18 133a24428a B OpenNebula/one#6509: CLI Tools not reporting errors (#2967)
and exit state when using --json and --yaml options

Signed-off-by: Daniel <dgarcia@opennebula.io>
2024-03-05 12:25:17 +01:00
Pavel CzernýandRuben S. Montero a591d8be86 F #6269: Restore individual disk from backup Image (#2961)
Co-authored-by: Ruben S. Montero <rsmontero@opennebula.org>
2024-03-04 13:12:11 +01:00
Pavel Czerný ff35f07fba M #-: Fix CLI output for onehost (#2930)
* In case of incomplete monitoring data, the `onehost show` command shows error
2024-02-12 09:49:07 +01:00
Daniel Clavijo Coca df0b41dec1 M #-: Update vm state reference (#2929) 2024-02-09 11:05:41 +01:00
Daniel Clavijo Coca 1e69810e2a M #-: Update onevm recover cli help (#2925) 2024-02-07 19:35:37 +01:00