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

20662 Commits

Author SHA1 Message Date
Jan Orel
8e3a92b962
M #-: Update ceph_stable_openstack_release_uca (#2745) 2023-09-20 19:41:13 +02:00
Pavel Czerný
e427a29a14
M #-: Add require 'active_support' (#2738)
Without the require, commands with --json or --yaml flags fails for
ActiveSupport version 7.0+
2023-09-20 13:34:23 +02:00
Ruben S. Montero
4bcb6f7089
F #6298: Add options and timers for HyperV
This commits add a curated list of hyperv (and timers) options when enabled for the
VM. It adds HYPERV_TIMERS, which are added to the clock element
when HYPERV is selected.
2023-09-20 13:02:08 +02:00
Tino Vázquez
dca8684361 L #-: Remove ssh_auth.rb from linting exclusion 2023-09-20 11:04:46 +02:00
Daniel Clavijo Coca
b251cf45df
L #-: Fix previous Lint (#2741) 2023-09-20 10:56:40 +02:00
Jan Orel
335f4cee6d
B #-: Don't run sudo iptables locally (#2740) 2023-09-19 17:36:41 +02:00
Tino Vázquez
02359fbfc9 L #-: Linting for rubocop 1.56.3 2023-09-19 16:07:32 +02:00
David
f242d443ba
B OpenNebula/one#6154: Fix error updating template (#2733) 2023-09-19 10:04:53 +02:00
Jan Orel
d0c4f30c4b
M #-: Remove refactor leftover (#2737) 2023-09-18 19:48:13 +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
Pavel Czerný
534823e7f1
B #6315: Fix remove of restricted vector attributes (#2731) 2023-09-18 16:17:59 +02:00
Ruben S. Montero
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
vichansson
43515c1fe4
F OpenNebula/one#6121: Fixed group allocation (#2734) 2023-09-18 13:46:18 +02:00
Jorge Miguel Lobo Escalona
b5b32350db
F #6276: fix deploy vm fireedge (#2729) 2023-09-18 11:12:32 +02:00
Daniel Clavijo Coca
12600a2269
F OpenNebula/one#6274: Support OpenSSH formatted ssh priv keys (#2726) 2023-09-18 11:07:09 +02:00
Daniel Clavijo Coca
42aaedd9b3
B OpenNebula/one#6190: Allow NO and false for LXC_UNPRIVILEGED (#2727) 2023-09-18 11:00:32 +02:00
vichansson
2db924b9de
M #-: Corrected actions config (#2728)
Signed-off-by: Victor Hansson <vhansson@opennebula.io>
2023-09-15 17:07:22 +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
Jorge Miguel Lobo Escalona
8b7c4db528
M #~: Fix routes 2FA FireEdge (#2725) 2023-09-14 12:38:30 +02:00
Ruben S. Montero
bc1086c3e2
F #6725: Install external sched example 2023-09-14 12:11:14 +02:00
Ruben S. Montero
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
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
vichansson
8dbda4dadf
M #-: Update showback subtab (#2722) 2023-09-13 10:37:00 +02:00
Pavel Czerný
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
Peter Willis
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
Pierre Lafievre
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
Jorge Miguel Lobo Escalona
4c1ab6efee
F #6211: fix Datastore creation ignores cluster selection (#2721) 2023-09-11 18:33:32 +02:00
vichansson
9b9f9195a0
M #-: Corrected action constants (#2720) 2023-09-11 17:25:23 +02:00
vichansson
c5dcadfbc1
M #-: Terminate_hard action corrected (#2719) 2023-09-11 15:34:49 +02:00
Ruben S. Montero
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
Daniel Clavijo Coca
6de9e4e8bb
F OpenNebula/one#6242: stdin for update methods (#2717) 2023-09-07 19:14:03 +02:00
vichansson
d57ff44ff5
M #-: dummy driver enabled (#2677) (#2716) 2023-09-07 16:43:56 +02:00
Pavel Czerný
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
vichansson
44204ebf05
F OpenNebula/one#6121: Add users tab (#2707) 2023-09-06 19:30:01 +02:00
Tino Vázquez
cbaab1e047 L #-: Exclude new JSON rb file from lintin 2023-09-06 19:06:13 +02:00
Jorge Miguel Lobo Escalona
618062f0ea
F #6063: BackupJobs tab for RSunstone (#2714)
Co-authored-by: Pavel Czerny <pczerny@opennebula.io>
2023-09-06 19:02:27 +02:00
Ruben S. Montero
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
Neal
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
Ruben S. Montero
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
Ruben S. Montero
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
Ruben S. Montero
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
Ruben S. Montero
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
Ruben S. Montero
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
Tino Vázquez
0f776c9b40 M #-; Adjust package-lock.json 2023-09-01 11:48:19 +02:00
Victor Hansson
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
vichansson
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
Pavel Czerný
89c6c4a01c
F #6275: Test received host ID, log warning (#2709) 2023-08-31 16:04:50 +02:00
Neal
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