Commit Graph
1971 Commits
Author SHA1 Message Date
Neal e7502c8d39 M #-: Update gemfiles and change rbvmomi to rbvmomi2 (#2840) 2023-11-27 18:09:53 +01:00
mkutouski af6591e814 B #6282: Fix Incorrect configuration of systemd services (#2831) 2023-11-22 12:45:36 +01:00
Pavel Czerný 1b3f3d1462 F #6333: Fix xml schema (#2811) 2023-11-14 12:08:43 +01:00
Ruben S. Montero ea1d5183ea F #6333: Snapshots for incremental backup mode
- Defines a new a attribute "INCREMENT_MODE" that can be "SNAPSHOT" or
     "CBT"

- SNAPSHOT mode: takes a disk snapshot (virsh snapshot-create-as or
  qemu-img). The current snapshot is saved in the backup store, and
  committed to the base disk image.

  The backup_qcow2.rb util adapt to different VM folder layout for SSH,
  shared, persistent, non persistent disks.

- Lint vxlan.rb

- Update onevm and XSD schema to reflect the new backup attribute
2023-11-10 19:40:26 +01:00
Pavel Czerný 2ada2ec687 M #-: Remove obsolete attribute from oned.conf (#2808) 2023-11-10 11:52:15 +01:00
Daniel Clavijo Coca 97c683f9f6 M #: Add missing CLI autocompletion for onemarket (#2800) 2023-11-06 13:11:22 +01:00
Tino Vázquez 55e4c2b9dd M #-: Bump version 6.99.80 2023-10-18 16:00:52 +02:00
Ruben S. Montero 652eddb2eb M #-: Add hint in update-locks help banner 2023-10-11 10:29:31 +02:00
Jan Orel 01b5a2fc78 M #-: Add RedHat gemfile locks (#2761)
Requires following vars to be exported
RHEL_USER
RHEL_PASSWORD
RHEL_POOL_ID
2023-10-11 10:21:10 +02:00
Tino Vázquez 3e17d5e859 M #-: Bump version 6.8.0 2023-10-10 13:24:13 +02:00
Daniel Clavijo Coca 0b2ce6c700 B OpenNebula/one#6345: Fix oneflow CLI autocompletion (#2772) 2023-10-09 18:49:28 +02:00
Tino Vázquez 5241112a78 M #-: Bump version 6.7.90 2023-09-28 16:28:19 +02:00
Ruben S. Montero d650682931 M #-: Bump version of oneprovision default repo 2023-09-27 12:07:55 +02:00
Jan Orel 1d4f0b4926 M #-: Refresh gemfile lock (#2760) 2023-09-26 16:44:26 +02:00
Neal Hansen 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
Jan Orel 8e3a92b962 M #-: Update ceph_stable_openstack_release_uca (#2745) 2023-09-20 19:41:13 +02:00
Tino Vázquez dca8684361 L #-: Remove ssh_auth.rb from linting exclusion 2023-09-20 11:04:46 +02:00
Tino Vázquez 02359fbfc9 L #-: Linting for rubocop 1.56.3 2023-09-19 16:07:32 +02:00
Jan Orel 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
Jan Orel 20308f6d7e B #-: Fix ruby shebang (#2730) 2023-09-15 09:22:57 +02:00
Pavel Czerný 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
Pavel Czerný 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
Jan Orel 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
Tino Vázquez cbaab1e047 L #-: Exclude new JSON rb file from lintin 2023-09-06 19:06:13 +02:00
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