Commit Graph
2082 Commits
Author SHA1 Message Date
MarioRobres 56da270c6d F #1550: Update host network BW units and remove debug files (#3570)
* F #1550: update host network BW units

* F #1550: remove debug files
2025-04-16 11:36:23 +02:00
Jan OrelandTino Vázquez 880186b280 M #-: rbvmomi2 needed for one-swap (#3564)
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
2025-04-11 11:59:45 +02:00
Jan Orel 7658ac11a8 M #-: Gems: avoid unnecessary restrictions for sinatra/puma (#3548) 2025-04-04 10:45:06 +02:00
Miguel E. Ruiz 9baa2dcc92 M #-: Add missing rackup gem to gemfile.lock 2025-04-04 09:41:49 +02:00
Jan Orel 25c7e91a43 F #6102: Drop oneprovision (#3536)
This is to make room for the new server, includes removal of:

* oneprovision code
* Fireedge inerface tab
2025-04-03 09:32:30 +02:00
Pavel Czerný 7597b9f09a F #6911: Update xml-schema, fix 'onevm save' (#3533) 2025-04-02 20:37:09 +02:00
Miguel E. Ruiz f160442cfb F OpenNebula/one#6706: Upgrade Sinatra version to version > 4.1 (#3531) 2025-04-02 10:29:36 +02:00
Jan Orel 2a16fa14ee F OpenNebula/one-swap#42: Add one-swap gem deps (#3529) 2025-04-01 11:53:43 +02:00
Guillemo RamosandRuben S. Montero 8b7595477b F OpenNebula/one#6911: LVM thin
Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
Co-authored-by: Ruben S. Montero <rsmontero@opennebula.org>
2025-04-01 10:03:35 +02:00
Ruben S. Montero 71ac165640 F #6885: Improvements for the forecasting probe
- Add bandwidth metrics to CLI and monitor deamons
- Updated forecast configuration with default models and larger intervals
- Better checks for filling gaps in SQLiteAccessor
- Remove forecast for counter metrics (NET_[RX|TX], DISK[RD|WR]BYTES and IOPS)
- Update one_drs to use bandwidth metrics
- Save monitor agent configuration to a file (/var/tmp/one_db/config) and use it in predictions
2025-03-28 14:00:43 +01:00
Pavel Czerný f4a5d216a5 F 1550 fixes (#3520) 2025-03-28 11:33:28 +01:00
Jan Orel 473faf7f07 L #-: Remove non-existent files from rubocop exclude (#3513) 2025-03-26 14:14:44 +01:00
Ruben S. Montero cc79391fa6 M #-: Remove additional references to ebtables command 2025-03-26 10:55:30 +01:00
Jan Orel c82a94c60a F #1550: Remove hybrid leftovers (#3503) 2025-03-26 10:51:42 +01:00
Jan Orel b8d453fa51 M #-: Remove ebtables virtual network driver
Also remove VCENTER enum in VirtualNetwork
2025-03-26 10:11:27 +01:00
Jan Orel cecaa92b40 F #1550: Remove hybrid -- update gems (#3502) 2025-03-25 13:25:02 +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
Tino Vázquez 4a74366c7c M #-: Point to latest stable release instead 2025-03-20 11:48:13 +01:00
Pavel Czerný 130bd13394 F #1550: Fix xml-schema (#3484) 2025-03-19 16:05:20 +01:00
Ruben S. Montero 66043b56fc M #-: Add dummy as supported system datastore
Now dummy drivers are enabled by default in TM and image DS drivers, but
not for system DS. This commit enables 'dummy' for the system DS drivers.
2025-03-19 12:52:49 +01:00
Valentyn Bohdan 0e1069c2e5 F #1550: Split optimize and place scheduler selection (#3480) 2025-03-18 16:32:49 +01:00
Pavel Czerný 63c6969a32 F #1550: DRS automation 2025-03-18 16:24:07 +01:00
Pavel Czerný f207ae66b2 F #1550: Add action labeling (#3448) 2025-03-14 17:16:49 +01:00
MarioRobres 14516356da F #1550: Add support for one_drs optimization (#3458) 2025-03-07 14:00:17 +01:00
Pavel Czerný 5f439ebc0c F #1550: Fix overcommitment, fix crash on exit (#3452)
+ update default config values to match old scheduler
2025-03-07 10:00:21 +01:00
Ruben S. Montero f881148422 F #1550 - #6885: Support for forecasting probes 2025-03-06 14:35:54 +01:00
Ruben S. Montero 31b38983b8 Revert "M #-: Change default device for CDROM to "sd" (#3429)"
This reverts commit ccdb8f3707.
2025-03-04 13:13:33 +01:00
Jan Orel ccdb8f3707 M #-: Change default device for CDROM to "sd" (#3429)
As e.g. aarch64 doesn't usually support IDE disk any more
2025-03-03 13:48:24 +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
Jan Orel 18506b6388 F #1550: sched/rank.conf for oned.aug and onecfg (#3437) 2025-03-03 10:32:21 +01:00
Ruben S. Montero edce8d4813 F #1550: Remove hybrid 2025-03-02 20:37:07 +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
Tino Vázquez b7f2209976 L #-: Rubocop 1.7.2.2 2025-02-18 20:24:25 +01:00
Tino Vázquez ed5f655af1 L #-: Rubocop 1.71.0 2025-01-23 13:24:41 +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
Guillemo Ramos d1e6a7c7d8 B #6583: SPARSE attribute considered on resize (#3350)
Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
2025-01-17 13:29: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
Tino Vázquez ef932b67bd L #-: Rubocop 1.70.0 2025-01-10 15:46:35 +01:00
Ruben S. Montero ca36569783 M #-: Added new line and typo for Scaleway 2025-01-02 08:19:09 +01:00
Pavel Czerný a15f729488 M #-: Resolve cppcheck issues version 2.13 (#3334)
* Fixed performance issues
* Suppresed style issues
2025-01-02 07:02:44 +01:00
Ruben S. Montero 146dfe6a09 F #6669: Support for VLAN filtering and QinQ
This commit adds the following features using the vlan_filter
capabilities of the Linux Bridge:

* 802.1Q driver, support for QinQ. This is not a full implementation
  compared to the vSwitch as there is no native support in the linux
  bridge:
    - VLAN_ID is the (outer/C-VLAN) tag implemented by tagging the
      PHY_DEV interface
    - CVLANS are the customer tags, any other VLAN is filtered out in
      the bridge

* bridge driver, support for vlan filtering (VLAN_TAGGED_ID) only the
  specified tags are allowed in the trunk.

Additionally this commits includes linting of some files.

(cherry picked from commit e379bd6684)
2024-12-11 11:38:22 +01:00
Ruben S. Montero 55ad4891e1 F #6756: Fix Scaleway render 2024-12-09 01:40:40 +01:00
Miguel E. RuizandVictor Palma 2af3757059 F #6756: Scaleway drivers for OneProvision
This is the first version of a ScaleWay drivers for OneProvision. The
drivers include the following features:

- Full support for defining Scaleway zones and regions, predefined files
  for Paris-1, Amsterdam-1 and Warsaw-3.
- Edge cluster based on metal instances
- Flexible IP support for VMs running on Scaleway clusters
- Private networking based on VXLAN and FRR (bgp-evpn). Future versions
  of this driver will consider extending IPAM to use Scaleway private
  networks.
- Playbook includes an /etc/hosts update to support name resolution of
  scaleway instances (needed by libvirt for live migration)

This commit also updates firewall to allow libvirt ports.

co-authored-by: Victor Palma <vpalma@opennebula.io>
2024-12-05 15:51:49 +01:00
Guillemo Ramos 38e28ddfb1 F #5853: fix rhel8 (Ruby<2.7) (#3308)
Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
2024-11-25 15:54:31 +01:00
Guillermo RamosandRuben S. Montero 1ef2f06ed6 F #5853: New version of ssh drivers
- Now are named local. SSH drivers will be distributed for running VMs
  that use the SSH drivers.
- The new drivers optimize Qcow2 operations in the same way as the
  shared TM driver, including:
    - thin provisioning, when available a cow copy is made
    - Qcow2 snapshots for the snapshot operations
    - Some operations has been improved code-wise
    - It should be a drop-in replacement for ssh
- New drivers are written in Ruby to accommodate future improvements
- By default new datastores will use "local" instead of "ssh"

co-authored-by: Ruben S. Montero <rsmontero@opennebula.org>
2024-11-24 18:41:32 +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
Michal Opala d29681e60b F OpenNebula/one#6770: Downgrade unf gem (< 0.2.0) for RedHat8 and AlmaLinux8 (#3286) 2024-11-05 09:42:19 +01:00