1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-08-27 01:49:29 +03:00
Commit Graph

1957 Commits

Author SHA1 Message Date
c1a0e5bfc5 F OpenNebula/one#6286: Add support for VIDEO devices in KVM
- New attribute VIDEO, that includes
  - TYPE: Custom video device (none, vga, cirrus, virtio)
 - IOMMU: Enable IOMMU for the video device
 - ATS: Enable ATS (Address Translation Services) for the video device
 - VRAM: VRAM allocated to the video device (Megabytes)
 - RESOLUTION: Video resolution, in format like: 1280x720 or 1920x1080

- Support for onevm CLI command
- Updated VM xsd file.
2023-09-20 20:00:10 +02:00
8e3a92b962 M #-: Update ceph_stable_openstack_release_uca (#2745) 2023-09-20 19:41:13 +02:00
dca8684361 L #-: Remove ssh_auth.rb from linting exclusion 2023-09-20 11:04:46 +02:00
02359fbfc9 L #-: Linting for rubocop 1.56.3 2023-09-19 16:07:32 +02:00
b4ebee7ff0 B #6318: OneProvision: update equinix provider (#2735)
- no more facility, use metro
 - don't use ancient packet gem
2023-09-18 17:10:34 +02:00
20308f6d7e B #-: Fix ruby shebang (#2730) 2023-09-15 09:22:57 +02:00
ac49ab6d30 F #6227: New API for VMGroup roles
* New API for VMGroup roles: add, del, update
* Go and Java api for VM Group roles
2023-09-14 15:36:26 +02:00
dfb4e80006 F #6275: Serialize custom attributes
- EXTERNAL_VM_ATTR can be defined in sched conf to add additional
  VM attributes to the JSON document sent to the external sched. The
  format is: "XPATH<:NAME>" (NAME is optional, if not defined the
  original attribute name will be used).

- Add example server to the share folder
2023-09-14 10:46:18 +02:00
5de362e082 oneprovision fixes (#2724)
* Do not use yoga ceph repositories
* oneproivison: don't validate frr repo cert
2023-09-14 09:11:21 +02:00
cbaab1e047 L #-: Exclude new JSON rb file from lintin 2023-09-06 19:06:13 +02:00
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
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
1f4512433d L #-: Disabling cop for rubocop 1.56.0 2023-08-17 13:00:35 +02:00
3893aa39d1 M #-: Update Backup Job xml schema 2023-08-08 09:42:05 +02:00
9d463a72f1 M #-: Add DISK_TYPE to xml-schema 2023-08-08 09:42:05 +02:00
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
f0756c0b4d L #-: Adjust linting for rubocop 1.54.1
(cherry picked from commit 93af7585376b10c7951cbb96d05de0c903a5ee41)
2023-07-12 11:57:20 +02:00
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
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
bf36ccf30d F #6111: Add VCPU to VM short xml (#2655)
(cherry picked from commit 78c584661c)
2023-06-29 09:59:47 +02:00
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
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
378ffcd47a B OpenNebula/one#6246: Autocorrect only deprecated methods (#2654) 2023-06-27 18:16:02 +02:00
d1c32620ab B #6241: Modified fireedge service file (#2651) 2023-06-26 18:05:48 +02:00
d6bbf71b33 L #-: Linting for rubocop 1.53.0 2023-06-26 12:14:44 +02:00
5a0d06280b B #6172: Enabled manpages creation for onegate (#2649) 2023-06-23 15:38:07 +02:00
0cf2ae9725 OpenNebula/one#6245: Include HostSyncManager as a gem dependency (#2647)
(cherry picked from commit 44c71d9074)
2023-06-22 12:44:39 +02:00
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
d4da67eae1 L #-: Linting rubocop 1.52.0 2023-06-07 11:08:23 +02:00
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
20c70e4985 F #6099: Implement non-shared vm skipping for ft/host_error.rb (#2583) 2023-04-21 10:45:52 +02:00
54c74a3d6d L #-: Disable RedundantLineContinuation cop 2023-04-04 14:26:07 +02:00
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
564695413f M #-: Add one_datastore.rb and one_market.rb to the linter whitelist 2023-03-29 12:46:18 +02:00
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
16fcc1ef94 B #-: Add missing rbd-nbd on ceph client (lxc) (#2556) 2023-03-16 10:43:18 +01:00
33af6695ce M #-: Improve conf_branch_protect (#2549) 2023-03-09 10:29:50 +01:00
f89696410d F #6150: Upgrade Ubuntu Focal to Jammy in provision (#2536) 2023-03-08 15:58:45 +01:00
4ba8847da1 F #6127: Remove headers from all conf files (#2517) 2023-02-22 16:03:37 +01:00
7ae44ec4ca M #-: Define ansible version in provision yaml (#2513) 2023-02-21 17:11:57 +01:00
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
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
4fe742b863 L #-: Linting for new rubocop version 2023-02-10 11:12:19 +01:00
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
26c76a7307 L #-: Enforce brackets for ruby word arrays
(cherry picked from commit cbcf309979)
2023-02-07 12:57:56 +01:00
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
5318bb8a6f B #-: Use new repo2.key in oneprovision (#2480) 2023-02-03 13:19:25 +01:00
6ee3a5ef5b F #6103: More CppCheck issues solved (#2477)
(cherry picked from commit 3fd059c543)
2023-02-02 12:54:45 +01:00
a5c57b69b3 M #-: Add CppCheck to smoke tests (#2464) 2023-01-31 13:46:09 +01:00
3c9bfecbd1 Revert "B #5909: Add /usr/sbin/ipset to sudoers (#2466)"
This reverts commit 8a0d892f39.
2023-01-30 13:49:59 +01:00