1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-10 01:17:40 +03:00
Commit Graph

1947 Commits

Author SHA1 Message Date
Ruben S. Montero
dca50b2bb9
F #6275: External scheduler API
The connection to an external scheduler module is configured in sched.conf:

EXTERNAL_SCHEDULER = [
   SERVER  = "http://localhost:4567",
   PROXY   = "",
   TIMEOUT = 10
]

The API post on '/' the list of VMs, their pre-selected list of
candidate hosts based on REQUIREMENTS along with the VM information
(CAPACITY, TEMPLATE and USER_TEMPLATE).

Example:
{
  "VMS": [
    {
      "CAPACITY": {
        "CPU": 1.5,
        "DISK_SIZE": 1024,
        "MEMORY": 131072
      },
      "HOST_IDS": [
        3,
        4,
        5
      ],
      "ID": 32,
      "STATE": "PENDING",
      "TEMPLATE": {
        "AUTOMATIC_DS_REQUIREMENTS": "(\"CLUSTERS/ID\" @> 0)",
        "AUTOMATIC_NIC_REQUIREMENTS": "(\"CLUSTERS/ID\" @> 0)",
        "AUTOMATIC_REQUIREMENTS": "(CLUSTER_ID = 0) & !(PUBLIC_CLOUD = YES) & !(PIN_POLICY = PINNED)",
        "CPU": "1.5",
        "MEMORY": "128",
        ...
      },
      "USER_TEMPLATE": {}
    },
    {
      "CAPACITY": {
        "CPU": 1.5,
        "DISK_SIZE": 1024,
        "MEMORY": 131072
      },
      "HOST_IDS": [
        3,
        4,
        5
      ],
      "ID": 33,
      "STATE": "PENDING",
      "TEMPLATE": {
       ...
      },
      "USER_TEMPLATE": {}
    }
  ]
}

The scheduler needs to respond to this post action with a simple list of
the allocation for each VM:

{
  "VMS": [
    {
      "ID": 32,
      "HOST_ID": 2
    },
    {
      "ID": 33,
      "HOST_ID": 0
    }
  ]
}

This commits vendorize Vendorize nlohmann-json (MIT license)
2023-08-29 17:11:01 +02:00
Pavel Czerný
ee8c6bd8be
B #6297: Fix local characters for onedb (#2699)
* Fix local characters for onedb fsck
* Fix charset for onedb sqlite2mysql

(cherry picked from commit 0fc9f457f2)
2023-08-29 11:41:05 +02:00
Tino Vázquez
1f4512433d L #-: Disabling cop for rubocop 1.56.0 2023-08-17 13:00:35 +02:00
Pavel Czerny
3893aa39d1 M #-: Update Backup Job xml schema 2023-08-08 09:42:05 +02:00
Pavel Czerny
9d463a72f1 M #-: Add DISK_TYPE to xml-schema 2023-08-08 09:42:05 +02:00
Neal
ae2a6b8cb8
F OpenNebula/one#6212: add DISK_TYPE to TM_MAD_CONF for lvm tms (#2684)
Signed-off-by: Neal Hansen <nhansen@opennebula.io>
2023-07-26 16:43:59 +02:00
Tino Vázquez
f0756c0b4d
L #-: Adjust linting for rubocop 1.54.1
(cherry picked from commit 93af7585376b10c7951cbb96d05de0c903a5ee41)
2023-07-12 11:57:20 +02:00
Neal
201d388601
F OpenNebula/one#6367: Add FORMAT to the ALLOW_ORPHANS values (#2664)
in oned.conf comments
2023-07-10 19:37:31 +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ý
bf36ccf30d
F #6111: Add VCPU to VM short xml (#2655)
(cherry picked from commit 78c584661c)
2023-06-29 09:59:47 +02:00
Daniel Clavijo Coca
a2db634569
F OpenNebula/one#6006: Add CLI yamls for listing commands (#2643)
(cherry picked from commit 1a98b9b409)
2023-06-28 17:40:35 +02:00
Ruben S. Montero
ee4d01575e
M #⨪: Do not abort install gems if unkown platform
This helps for non supported distributions that may install build
dependencies manually
2023-06-28 12:27:50 +02:00
Daniel Clavijo Coca
378ffcd47a
B OpenNebula/one#6246: Autocorrect only deprecated methods (#2654) 2023-06-27 18:16:02 +02:00
vichansson
d1c32620ab
B #6241: Modified fireedge service file (#2651) 2023-06-26 18:05:48 +02:00
Tino Vázquez
d6bbf71b33
L #-: Linting for rubocop 1.53.0 2023-06-26 12:14:44 +02:00
Joseba Martos
5a0d06280b
B #6172: Enabled manpages creation for onegate (#2649) 2023-06-23 15:38:07 +02:00
Daniel Clavijo Coca
0cf2ae9725
OpenNebula/one#6245: Include HostSyncManager as a gem dependency (#2647)
(cherry picked from commit 44c71d9074)
2023-06-22 12:44:39 +02:00
Pavel Czerný
167e25077a
F #6239: Update VMAction permissions (#2642)
* Add Sched actions and sg (de)attach to VM_*_OPERATION
* Add Backup cancel action
* For consistency add poweroff migrate, alias (de)attach and nic update to set_auth_ops
2023-06-21 09:40:03 +02:00
Tino Vázquez
d4da67eae1
L #-: Linting rubocop 1.52.0 2023-06-07 11:08:23 +02:00
Jan Orel
8f1d95040c
F #6098 Introduce QCOW2_STANDALONE (#2582)
* Datastores (fs/shared) can set QCOW2_STANDALONE to create disk images without backing files. This will increase clone times but will not have any dependencies.
2023-04-25 09:58:01 +02:00
Neal
20c70e4985
F #6099: Implement non-shared vm skipping for ft/host_error.rb (#2583) 2023-04-21 10:45:52 +02:00
Tino Vázquez
54c74a3d6d L #-: Disable RedundantLineContinuation cop 2023-04-04 14:26:07 +02:00
Ruben S. Montero
5a83b45ce1
B #6162: Only stdin supported for datastore driver
Deprecate the use of arguments for passing messages to the datastore
driver actions.
2023-03-29 13:28:13 +02:00
Ruben S. Montero
564695413f
M #-: Add one_datastore.rb and one_market.rb to the linter whitelist 2023-03-29 12:46:18 +02:00
Ruben S. Montero
52156312fc
B #6162: Use stdin for datastore drivers
New option for datastore driver (--stdin) that sends driver information
    through stdin. Driver actions will read stdin if the first argument is
    '-'. This change is compatible with drivers that read input from argument command
    line. By default the driver will work using the command line arguments.

    Monitor scripts part of the transfer manager are also updated

    File oned.conf is changed to use stdin by default

(cherry picked from commit 8c12a8dbcd)
(cherry picked from commit aa1e6b4196)
2023-03-27 19:24:53 +02:00
Jan Orel
16fcc1ef94
B #-: Add missing rbd-nbd on ceph client (lxc) (#2556) 2023-03-16 10:43:18 +01:00
Jan Orel
33af6695ce
M #-: Improve conf_branch_protect (#2549) 2023-03-09 10:29:50 +01:00
Jan Orel
f89696410d
F #6150: Upgrade Ubuntu Focal to Jammy in provision (#2536) 2023-03-08 15:58:45 +01:00
Tino Vázquez
4ba8847da1
F #6127: Remove headers from all conf files (#2517) 2023-02-22 16:03:37 +01:00
Jan Orel
7ae44ec4ca
M #-: Define ansible version in provision yaml (#2513) 2023-02-21 17:11:57 +01:00
Jan Orel
e79120f828
F #6116: Bump Ceph to Quincy in oneprovison (#2508)
* Bump Ceph to Quincy in oneprovison
* Ceph provision: bluefs_buffered_io = false
2023-02-17 09:50:26 +01:00
Pavel Czerný
03add6d9ac
F #6103: CppCheck version 2.10 - solved issues (#2492)
* Update smoke test checkout action

(cherry picked from commit 466d336d7e)
2023-02-14 09:51:04 +01:00
Tino Vázquez
4fe742b863
L #-: Linting for new rubocop version 2023-02-10 11:12:19 +01:00
Tino Vázquez
fae34eee26
L #-: Change percentage for brackets
in ruby word array definitions

(cherry picked from commit 27a97b4ea6)
(cherry picked from commit f0d462649d)
2023-02-07 13:28:47 +01:00
Tino Vázquez
26c76a7307
L #-: Enforce brackets for ruby word arrays
(cherry picked from commit cbcf309979)
2023-02-07 12:57:56 +01: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
Jan Orel
5318bb8a6f
B #-: Use new repo2.key in oneprovision (#2480) 2023-02-03 13:19:25 +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
Ruben S. Montero
3c9bfecbd1
Revert "B #5909: Add /usr/sbin/ipset to sudoers (#2466)"
This reverts commit 8a0d892f39.
2023-01-30 13:49:59 +01:00
Jan Orel
8a0d892f39
B #5909: Add /usr/sbin/ipset to sudoers (#2466)
(cherry picked from commit f96338c0c8)
(cherry picked from commit 1cc6332536)
2023-01-30 11:43:28 +01:00
Tino Vázquez
61b56b0275
Revert "M #-: Prevent change in conf file"
This reverts commit 990830982e.
2023-01-17 10:52:45 +01:00
Tino Vázquez
990830982e
M #-: Prevent change in conf file 2023-01-17 10:52:08 +01:00
Ruben S. Montero
0784385caf
B #6027: Fix schema for host.xsd 2023-01-09 18:52:40 +01:00
Pavel Czerný
0696693531
B #6027: Parse host NUMA monitoring (#2440)
Co-authored-by: Ruben S. Montero <rsmontero@opennebula.org>
2023-01-09 18:29:09 +01:00
Tino Vázquez
3376afdaf0
M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
Tino Vázquez
4f9e45a57c
M #-: Bump version 6.7.80 2022-12-21 19:57:29 +01:00
Ruben S. Montero
b7b662b5ff
M #-: Point provision repo role to OpenNebula 6.6.0 2022-12-21 10:34:25 +01:00
Tino Vázquez
df44921a19
L #-: Minor linting change 2022-12-20 19:11:46 +01:00
Tino Vázquez
238b5d704c
M #-: Bump version to 6.6.0 2022-12-15 18:07:06 +01:00