1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-08-21 05:49:26 +03:00
Commit Graph

20502 Commits

Author SHA1 Message Date
534823e7f1 B #6315: Fix remove of restricted vector attributes (#2731) 2023-09-18 16:17:59 +02:00
f5d6f11730 F #6030: Cancel backup in pre-backup phase
* New Cancel module to backup_qcow2.rb script. This module is a helper to cancel
  ongoing backup operations in the prebackup phase.

* Checks libvirt for active backup domain operations to stop them.
  Remove @ongoing flag

* Trap SIGTERM in backup_qcow2, prebackup and prebackup_live scripts

* Cleaner backup func in onevm_exec.rb (reuse post array)

co-authored-by: Michal Opala <mopala@opennebula.io>
2023-09-18 15:41:22 +02:00
43515c1fe4 F OpenNebula/one#6121: Fixed group allocation (#2734) 2023-09-18 13:46:18 +02:00
b5b32350db F #6276: fix deploy vm fireedge (#2729) 2023-09-18 11:12:32 +02:00
12600a2269 F OpenNebula/one#6274: Support OpenSSH formatted ssh priv keys (#2726) 2023-09-18 11:07:09 +02:00
42aaedd9b3 B OpenNebula/one#6190: Allow NO and false for LXC_UNPRIVILEGED (#2727) 2023-09-18 11:00:32 +02:00
2db924b9de M #-: Corrected actions config (#2728)
Signed-off-by: Victor Hansson <vhansson@opennebula.io>
2023-09-15 17:07:22 +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
8b7c4db528 M #~: Fix routes 2FA FireEdge (#2725) 2023-09-14 12:38:30 +02:00
bc1086c3e2 F #6725: Install external sched example 2023-09-14 12:11:14 +02:00
fefbe1e5c8 F #6275: Rename EXTERNAL_VM_ATTR to VM_ATTRIBUTE
The change also updates JSON VM document to match this name
2023-09-14 11:03:40 +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
8dbda4dadf M #-: Update showback subtab (#2722) 2023-09-13 10:37:00 +02:00
8618c684ec F #5688: Update go client context (#2723)
* Context for new method MarketPlace::Enable
* Simple test for context timeout
2023-09-13 10:18:06 +02:00
9bc5fb82ff F #5688: Add request context to client calls
- remove unused call function
- context for new methods
- copy comments to context functions
- Disk method doesn't need context
- context for ByName functions

Signed-off-by: Peter Willis <peter.willis@cudoventures.com>
2023-09-13 09:53:54 +02:00
4673721a21 F #6311: GOCA - marketplace state
- Add state to Markeplace
- Add state Markeplace Appliance
- Add enable method for Marketplace
- Add tests and use gocheck

co-authored-by: Pavel Czerny <pczerny@opennebula.io>

Signed-off-by: Pierre Lafievre <pierre.lafievre@iguanesolutions.com>
2023-09-12 18:02:53 +02:00
4c1ab6efee F #6211: fix Datastore creation ignores cluster selection (#2721) 2023-09-11 18:33:32 +02:00
9b9f9195a0 M #-: Corrected action constants (#2720) 2023-09-11 17:25:23 +02:00
c5dcadfbc1 M #-: Terminate_hard action corrected (#2719) 2023-09-11 15:34:49 +02:00
a9275666ba B #6310: Don't deactivate NICs on NIC_ALIAS detach
When a NIC_ALIAS is detached the deactivate block is executed
incorrectly for some drivers. This can render in an unusable network for
the VM.

This commits includes also some linting
2023-09-08 13:04:43 +02:00
6de9e4e8bb F OpenNebula/one#6242: stdin for update methods (#2717) 2023-09-07 19:14:03 +02:00
d57ff44ff5 M #-: dummy driver enabled (#2677) (#2716) 2023-09-07 16:43:56 +02:00
c5392d08b8 F #6063: Update Backup Job fix (#2715)
* Set priority on Backup Job create

* Fix a bug when running backup jobs in sequential mode

* Change the update semantics to support replace mode

* Update Ruby, Golang and Java API accordingly

* F #6063: Adress PR comments
2023-09-07 11:11:02 +02:00
44204ebf05 F OpenNebula/one#6121: Add users tab (#2707) 2023-09-06 19:30:01 +02:00
cbaab1e047 L #-: Exclude new JSON rb file from lintin 2023-09-06 19:06:13 +02:00
618062f0ea F #6063: BackupJobs tab for RSunstone (#2714)
Co-authored-by: Pavel Czerny <pczerny@opennebula.io>
2023-09-06 19:02:27 +02:00
c7f550fd2d M #-: Change the default emulator path
Now it points to the qemu-kvm-one script that adjust to each distro. The
qemu-kvm-one link is generated by the node-kvm packages.
2023-09-05 10:49:15 +02:00
2075b02cf4 F OpenNebula/one#6167: Add io_uring to IO Sunstone drop-down
Signed-off-by: Neal Hansen <nhansen@opennebula.io>
2023-09-04 16:33:01 +02:00
2eb07ee1c1 F #6303: Support for VIRTIO_BLK_QUEUES in disk attach
Add support for VIRTIO_BLK_QUEUES when attaching a disk. "auto" keyword
can be used and set as default.
2023-09-04 13:09:34 +02:00
f5de29658f F #6303: Add SCSI controller and update names
- Always add a virtio-scsi controller to allow hotplug of scsi disks
- Change DISK/QUEUES to DISK/VIRTIO_BLK_QUEUES
- Default for all disk in the VM can be set in FEATURES/VIRTIO_BLK_QUEUES
- Defaults for all domains can be set in vmm_exec.conf
2023-09-04 11:52:57 +02:00
159275c833 F #6303: Fix addition of SCSI controller
Adds a SCSI controller to the VM (KVM) when a SCSI disk (target sd) is
present.

Note: < 6.6.x works becasue defaults to 1 SCSI virtio queue that adds
the controller
2023-09-03 14:50:49 +02:00
da3ce70341 F #6303: Automatic setting of IO queues
This commit adds support for the "auto" keywork for the
VIRTIO_SCSI_QUEUES attribute. The number of queues is set to the number
of virtual CPUs in this case.

Also a new DISK attribute, QUEUES has been added to the VM DISK
definition to set the numner of virt queues for virt-blk. This parameter
also supports the auto keyword to set it to the number of VCPUs.

These parameters can be set by default in vmm_exec_kvm.conf.
2023-09-02 01:53:20 +02:00
7a77dff659 F #1636: Add KVM_CPU_FEATURES to Virtual Machines
Add support to <feature> element for the virtual cpu (see [1]). It
includes:

* A new probe that gets the supported features of the hypervisor CPU
  using virsh capabilities.
* Generate AUTOMATIC_REQUIREMENTS if the CPU_MODEL/FEATURES is present.
  Note that a MODEL needs to be set for this to work (libvirt error otherwise is:
  "XML error: Non-empty feature list specified without CPU model...")

[1] https://libvirt.org/formatdomain.html#cpu-model-and-topology

Example
--------------------------------------------------------------------------------

* Template configuration:

CPU_MODEL = [
    MODEL    = "host-passthrough",
    FEATURES = "ss,vmx,tsc_adjust"
]

* Generated AUTOMATIC_REQUIREMENTS in the VM:

AUTOMATIC_REQUIREMENTS="(CLUSTER_ID = 0) & !(PUBLIC_CLOUD = YES) & !(PIN_POLICY = PINNED) & (KVM_CPU_FEATURES = \"*ss*\") & (KVM_CPU_FEATURES = \"*vmx*\") & (KVM_CPU_FEATURES = \"*tsc_adjust*\")"

* Generated deployment file:

<cpu mode='host-passthrough'>
    <feature policy='require' name='ss'/>
    <feature policy='require' name='vmx'/>
    <feature policy='require' name='tsc_adjust'/>
</cpu>

* Information gathered by the probe:
...
MONITORING INFORMATION
ARCH="x86_64"
CGROUPS_VERSION="2"
...
KVM_CPU_FEATURES="ss,vmx,pdcm,osxsave,hypervisor,tsc_adjust,clflushopt,umip,md-clear,stibp,arch-capabilities,ssbd,xsaves,pdpe1gb,ibpb,ibrs,amd-stibp,amd-ssbd,rdctl-no,ibrs-all,skip-l1dfl-vmentry,mds-no,pschange-mc-no"
KVM_CPU_MODEL="Skylake-Client-noTSX-IBRS"
...

co-authored-by: Neal Hansen <nhansen@opennebula.io>
2023-09-01 14:10:30 +02:00
0f776c9b40 M #-; Adjust package-lock.json 2023-09-01 11:48:19 +02:00
366449a0c5 M #-: Dependencies checked & fixed
Signed-off-by: Victor Hansson <vhansson@opennebula.io>
(cherry picked from commit 0adbb9c49274dc965daf1b55a56854cf0189bd05)
2023-09-01 11:05:36 +02:00
23b0f3b165 F OpenNebula/one#6121: Added new multichart (#2703)
(cherry picked from commit 45b1bd00f5)
(cherry picked from commit 87a009f165)
2023-09-01 11:05:11 +02:00
89c6c4a01c F #6275: Test received host ID, log warning (#2709) 2023-08-31 16:04:50 +02:00
820e559042 F OpenNebula/one#5793: add check to wake up vm in pmsuspended state (#2696)
Signed-off-by: Neal Hansen <nhansen@opennebula.io>
2023-08-31 15:49:19 +02:00
c14869eb84 F #6063: Include backup job id in Image URL
The new URL format is:

- restic://<datastore_id>/<bj_id>/<id>:<snapshot_id>,.../<file_name>
- rsync://<datastore_id>/<bj_id>/<id>:<snapshot_id>,.../<file_name>

bj_id can be empty

This commits also adapts some drivers to the new BACKUP format.
2023-08-31 13:04:02 +02:00
8ae7512350 B OpenNebula/one#6306: change SED variable initialization (#2711) 2023-08-31 11:32:23 +02:00
5e37e52e39 F #6063: Pass backup_job_id to drivers
This enables to use the same repo for all VMs in the same backup job,
for example to deduplicate all VMs in the backup job.

This commit changes the driver interface for the backup operation as now
the backup job id is passed:

BACKUP host:remote_dir DISK_ID:..:DISK_ID vm_uuid bj_id vm_id ds_id

When the backup job is not defined it will be '-'
2023-08-30 19:29:22 +02:00
addb5edc33 Revert "F OpenNebula/one#6121: Added new multichart (#2703)"
This reverts commit 87a009f165.
2023-08-30 14:30:02 +02:00
cde8501eab Revert "M #-: Update package-lock.json"
This reverts commit c5f426147e.
2023-08-30 14:29:54 +02:00
f5d83053e3 F #6275: Update sched.conf comments 2023-08-29 19:09:25 +02:00
c5f426147e M #-: Update package-lock.json 2023-08-29 18:47:35 +02:00
87a009f165 F OpenNebula/one#6121: Added new multichart (#2703)
(cherry picked from commit 45b1bd00f5)
2023-08-29 18:02:15 +02:00
dd7de98f0e M #-: Regen lockfile + move deps (#2708) 2023-08-29 17:58:19 +02:00
7927059d48 M #-: Fix VectorAttribute::to_json (#2367)
Co-authored-by: Pavel Czerny <pczerny@opennebula.systems>
2023-08-29 17:49:33 +02:00