Commit Graph
214 Commits
Author SHA1 Message Date
Pavel Czerný f4a5d216a5 F 1550 fixes (#3520) 2025-03-28 11:33:28 +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 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
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
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 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ý 987bf1adf4 F #5853: Add local TM_MAD to defaults (#3309) 2024-11-26 11:22:59 +01:00
Pavel Czerný 7b07def90e B #6687: Fix monitoring initialization and restart
* Cleanup oned in case of initialization error

* Fix monitoring after onemonitord restart. The code includes a "hook" point in case a driver is re-started so custom code can be executed. InformationManager sends the list of hosts and raft status in this case.

* B #5801: Update error msg, in case of duplicated drivers
2024-09-05 16:25:03 +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 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
Pavel Czerný 2fe396ae15 L #-: Add Astyle linting
* Add AStyle to smoke tests
* Format C++ files using AStyle
2024-06-03 11:40:24 +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
Ruben S. Montero 9de5e607d9 M #-: Add missing default auth operations 2024-01-31 18:10:02 +01:00
Pavel CzernýandRuben S. Montero 442041fd07 F #6341: Generic Quotas
- Generic quotas are defined and read from oned.conf (QUOTA_VM_ATTRIBUTE)
- Generic quotas react to the running mode (i.e. account only when the VM is
  running). For each quota oned also adds a RUNNIN_* metric
- one.system.config API call has been updated so every user can read
  quota configuration:
    . Sensitive information is hidden (***)
    . Oneadmin group has no longer access to sensitive information
      through the API
- CLI has been updated to render generic quotas
- onedb fsck fixes generic quotas reading the configuration from
  oned.conf

Other changes in this PR:
- Refactor Quota metrics to use std::vector instead of C array
Squashed commit of the following:
- New methods to Template and Attribute classes to render hidden
  attributes as "***"
- Update Quota calls to not include unneeded quotas

co-authored-by:Ruben S. Montero <rsmontero@opennebula.org>
2024-01-08 14:07:03 +01:00
Pavel Czerný 2ada2ec687 M #-: Remove obsolete attribute from oned.conf (#2808) 2023-11-10 11:52:15 +01:00
Pavel Czerný 534823e7f1 B #6315: Fix remove of restricted vector attributes (#2731) 2023-09-18 16:17:59 +02:00
Ruben S. Montero 6bbfbb03e4 F #6063: Backup Jobs for OpenNebula
Includes the following changes:
- xml-schema for Backup Job and Scheduled Actions
- GO, Java api
- Deprecate onevm update-chart, delete-chart
    * The commands are replaced by sched-update and sched-delete
    * Refactor method deprecate_command, it's still possible to run the
    command
    * Delete 'shutdown' and 'delete' commands deprecated years ago
    * Fix --verbose option for sched-update and sched-delete
- Re-implementation of scheduled actions, now are managed and executed
  by oned
- Backup Job objects, API, and CLI commands
2023-07-03 18:15:52 +02:00
Pavel Czerný 8e7ff2ed36 F #6103: Last set of CppCheck issues (#2481)
(cherry picked from commit 4a9662a551)
(cherry picked from commit d7b7303f8f)
2023-02-07 08:56:52 +01:00
Pavel Czerný 6ee3a5ef5b F #6103: More CppCheck issues solved (#2477)
(cherry picked from commit 3fd059c543)
2023-02-02 12:54:45 +01:00
Pavel Czerný a5c57b69b3 M #-: Add CppCheck to smoke tests (#2464) 2023-01-31 13:46:09 +01:00
Tino Vázquez 3376afdaf0 M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
Pavel Czerný fecfd03a1a M #-: Restricted dirs for CONTEXT/FILES (#2243)
* M #-: Restricted dirs for CONTEXT/FILES

* M #-: Fix opennebula_configuration.xsd
2022-07-26 09:18:08 +02:00
Tino Vazquez f7d53e75ff M #-: Bump version 6.3.85 2022-04-07 19:49:58 +02:00
Pavel Czerný 8571ff280d B #-: Do not print password to oned.log (#1871)
(cherry picked from commit fd55fbb7ab46038426af5c3b5599055a56794275)
2022-03-29 14:21:24 +02:00
Kristián Feldsam b9e2dcc4eb F #4556: Added option to conf VM logs location
Easily share VM logs between HA nodes with the aid of a sync daemon like
lsyncd

Signed-off-by: Kristian Feldsam <feldsam@gmail.com>
2022-03-03 12:07:58 +01:00
Ruben S. Montero 46b6837def b #5697: Remove SAVE_AS_HOT attribute
(cherry picked from commit f100729f09)
2022-01-18 12:01:31 +01:00
Pavel CzernýandRuben S. Montero b3166b5e6f F #5661: Use factor to count snapshot size (#1650)
Co-authored-by: Ruben S. Montero <rsmontero@opennebula.org>
2022-01-05 12:23:22 +01:00
Pavel Czerný 9375625793 M #-: Fix market_mad_conf defaults (#1306)
(cherry picked from commit 5fc94b4992)
2021-06-18 11:22:10 +02:00
Ruben S. Montero c818a269ae M #-:Add default configuration for docker_registry
(cherry picked from commit 87a7c595d5)
2021-05-31 17:41:04 +02:00
Ruben S. Montero ed088ef826 F #5260: Remove fs_lvm_ssh.conf file.
(cherry picked from commit 1abfece3514a7adff2caef4b3d1bc19c658fb642)
2021-05-26 10:43:52 +02:00
f1a48bdc0d F #5270, #5272: Support for Google Compute and DigitalOcean
co-authored-by: Alejandro Huertas <ahuertas@opennebula.io>
co-authored-by: Juan Antonio <jescobar@opennebula.io>
co-authored-by: Sergio Betanzos <sbetanzos@opennebula.io>
2021-05-01 21:53:09 +02:00
Pavel Czerný 6bca41f0db M #-: Showback option to calculate only running VM (#1105)
(cherry picked from commit c5ad2698b7)
2021-04-15 11:13:56 +02:00
Vlastimil Holer 096754b63f M #-: Bump year to 2021 (#778) 2021-02-09 16:07:56 +01:00
Jan Orel 960380acf8 B #5210: Make LDAP group_admin configurable (code) 2020-12-18 09:59:18 +01:00
Pavel Czerný 123e08cfd6 F #4936: Replace long iterator definition by auto (#215) 2020-09-17 11:10:55 +02:00
Pavel Czerný 3ea67d3645 F #4936: Reduce number of new/delete, use unique_ptr (#212)
* On exit stop RequestManager first

* Use unique_ptr for pointers to Template

* Reduce number of new/delete
2020-09-15 11:16:00 +02:00
Ruben S. Montero 998f2ddd1e M #-: Removed unused variables
(cherry picked from commit ce38105eff)
2020-08-06 23:55:32 +02:00
Pavel Czerný 0292f690c4 F #4936: Fix valgrind issues (#64) 2020-07-02 22:52:05 +02:00
Pavel Czerný daaf132a43 F #4936: Remove 'using namespace std' from headers (#60) 2020-07-02 22:42:10 +02:00
Ruben S. Montero ad0b61f695 M #-: Sqlite timeout in defaults configuration 2020-06-04 18:07:13 +02:00
Vlastimil Holer f3c50a5d89 M #-: Year bump to 2020 (#4634) 2020-04-30 15:00:02 +02:00
Pavel Czerný eeb334b6f3 F #3859: Fix VM_STATE monitoring (#4360)
* F #3859: Fix VM_STATE monitoring

* F #3859: Remove obsolete settings from oned.conf

* F #3859: Monitor logging
2020-03-16 09:32:32 +01:00
Ruben S. Montero 44e44b47a8 F #3859: New monitoring architecture
co-authored-by: Pavel Czerny <pczerny@opennebula.systems>
  co-authored-by: Daniel Clavijo Coca <dclavijo@opennebula.systems>
2020-03-04 16:05:57 +01:00
Ruben S. Montero 03b2b42024 F #3503: Support for overcommitment & VM pinning. Number of VMs per
physical thread can be set for each host with VMS_THREAD
2019-09-22 00:31:08 +02:00
Alejandro Huertas Herrero 536672833a F #3064: pass decrypted attributes to IPAM driver (#3706) 2019-09-16 15:51:38 +02:00
Alejandro Huertas e997d2b2b3 F #3064: encrypt address range template
The address range template in address range pool is encrypted
2019-09-13 11:35:53 +02:00