19924 Commits
Author SHA1 Message Date
Daniel Boca bb70fa00a0 test-gpg 2022-09-27 18:11:28 +02:00
Tino Vázquez 2024f62ea9 Revert "F #5917: Support for proxy in datastore drivers (#5977)"
This reverts commit 2e953be8b7.
2022-09-26 17:38:39 +02:00
Daniel Boca 2e953be8b7 F #5917: Support for proxy in datastore drivers (#5977) 2022-09-26 17:37:35 +02:00
Pavel Czerný 4ac2cd4f77 B #5960: Do not release VNC port if undeploy fails (#2272)
(cherry picked from commit 9b8487ec04)
2022-09-16 12:14:22 +02:00
Christian González 970b24722a M #: Add kvm-shared to LIVE_DISK_SNAPSHOTS (#2282)
After merging both qcow2 and shared TM_MADs the resulting driver
automatically identifies the image format and perform the snapshot
using the corresponding format. This enable the support to perform
live disk snapshots when using shared storage.
2022-09-16 10:28:25 +02:00
Victor Palma e411d0d4fc B #5927: Fix domfsthaw timeout (#2280)
(cherry picked from commit a2caade29a)
2022-09-15 13:08:53 +02:00
Victor Palma 3411e80ff0 B #5243: Fix encoding in java binding (#2279)
(cherry picked from commit bcd319feb3)
2022-09-13 10:35:29 +02:00
onenhansen 6b1127f180 F #5328: Update logrotate behavior to avoid long restarts (#2275) 2022-09-12 18:57:07 +02:00
Frederick Borges aafd5f3014 F #5940: Support PCI Network Devices on RSunstone (#2274)
The "Hardware" profile of a network interface (NIC) of a VM can be of three types, now exposed in Sunstone:

- "Emulated" it includes the hardware model emulated by Qemu
- "PCI - Automatic" oned hw scheduler will pick the best PCI device for the NIC
- "PCI - Manual" user can specify the PCI device by its short-address as shown in host information

This commits also enables the attach/detach operations on PCI based NICs

*Note*: only for KVM VMs

Signed-off-by: Frederick Borges <fborges@opennebula.io>
(cherry picked from commit a3d5d61d4245a7936372e4a6c5dee4b6939f62f4)
2022-09-12 16:00:49 +02:00
Jorge Miguel Lobo Escalona 5b2dc75474 F #5928: Add missing dependencies (#2277) 2022-09-12 15:34:36 +02:00
Tino Vázquez 2f21cd1383 L #-: Fix linting issues 2022-09-12 13:18:29 +02:00
Jorge Miguel Lobo Escalona a06b82293f F #5928: Graphs (#2276) 2022-09-12 11:40:36 +02:00
Christian González b27302cc7d B #5933: honor DRIVER attribute when cloning imgs (#2273)
Ensure that if the destination DS when cloning an image have a DRIVER set. The image is automatically converted during the cloning process for the fs driver.

(cherry picked from commit 69759b30cc)
2022-09-08 18:27:15 +02:00
Anton Todorov 7961ae2416 B #5869: Filter out unsupported CPU models
Decided to format it as a patch than an entire rewrite of the probe script.
This could be rewritten to populate the models array with the supported only.
2022-09-08 10:10:02 +02:00
Alex 542fb9873d M #-: GitHub Workflows security hardening
This PR adds explicit permissions section to workflows. This is a security best practice because by default workflows run with extended set of permissions (except from on: pull_request from external forks). By specifying any permission explicitly all others are set to none. By using the principle of least privilege the damage a compromised workflow can do (because of an injection or compromised third party tool or action) is restricted.
It is recommended to have most strict permissions on the top level and grant write permissions on job level case by case.

Signed-off-by: sashashura <93376818+sashashura@users.noreply.github.com>
(cherry picked from commit b23ad3a54c)
2022-09-08 09:48:32 +02:00
Ruben S. Montero 907f26050f F #5940: Improve PCI Passthrough and SRIOV support
- SHORT_ADDRESS can be used to select specific devices  (useful on
  homogenous clusters or nic attach operations). This name has been
  selected because of:
    1. It is the attrbute shown host info
    2. It does not collide with the reserved ADDRESS attribute

- New test and add functions that considers both allocation methods: by
  name (VENDOR/CLASS/DEVICE) or address (SHORT_ADDRESS)

- Parameter check on VM creation

- revert and add method use the same pci_attribute function to add info
  to the VM PCI attribute

- Remove well-known attributes when parsing PCI devices (ADDRESS,
  PREV_ADDRES, BUS, FUNCTION, SLOT, NUMA_NODE, UUID)

- Support for attach and detach NIC with PCI attributes
    * onevm_exec.rb looks for PCI devices for ATTACH=YES when attaching/detaching an interface
    * script action are now written in Ruby
    * KVM module with common actions (hostdev/interface device str)
    * Minor changes in xmlparser and OpenNebulaVM classes

- PCI selection options to onevm nic-attach:
    * pci short_address
    * pci_device device ID
    * pci_vendor vendor ID
    * pci_class class ID

- VF can be configured by setting some parameters through IP link (e.g.
  MAC or VLAN_ID). This commit includes a mixin to activate_vf.

    * one_vmm_exec.rb looks for PCI VN_MAD drivers
    * VM class (VNM) adds a @pcis array
    * activate_vf should be called in the pre stage. The following drivers
      acticate VFs (VLAN_ID is implemented as 802.1Q tag)
            - 802.1Q
            - bridge
            - fw
            - ovswitch

- Improve integration with Libvirt/QEMU:

    * When attach, only activate the VF being attached
    * Attach: Use <interface> and not <hostdev> for VF. There seems to be a race
      condition between accessing the vfio device and permission setup.
    * Attach: Remove address on attach as it may fail beacuse PCI controller
      is not present, e.g.:

        ATTACHNIC: Could not attach NIC to 28534240: error: Failed to attach device
        from /dev/fd/63 error: XML error: Invalid PCI address 0000:01:01.0.
        Only PCI buses up to 0 are available ExitCode: 1

    * Detach: Detach always use <hostdev> as libvirt fails to identified the
      device just by address when using <interface>
2022-09-07 15:54:38 +02:00
Frederick Borges f3f28e3227 B #~: Fix VMRC with users passwords with special chars (#2271) 2022-09-05 10:21:15 +02:00
Frederick Borges bf31d21a17 B #~: Fix VMRC with Apache (#2270) 2022-08-31 12:44:35 +02:00
Jan Orel 57e738c424 B #5946: Compare group_admin groups case-insens. (#2269) 2022-08-31 10:37:44 +02:00
Pavel Czerný c96f43a782 B #5954: Do not reuse Cipher instance (#2268)
(cherry picked from commit 4ea39c0ee0)
2022-08-29 17:17:28 +02:00
Tino Vazquez 193b789c13 Merge branch 'master' of https://github.com/OpenNebula/one-ee 2022-08-26 10:47:39 +02:00
Pavel Czerný 0b3f786441 F #5943: Update verbose msg for async commands (#2263)
(cherry picked from commit cd35ad4eaa)
2022-08-25 20:07:07 +02:00
Jan Orel c1f5c649f2 B #5947: PyOne: allow set https_verify = False (#2265) 2022-08-25 19:11:19 +02:00
Kristian Feldsam 7577762f04 M #-: Fix install by removing obsolte share dirs
Related to commit M #-: Get rid of obsolete .vib files d019bd49a6

Signed-off-by: Kristian Feldsam <feldsam@gmail.com>
(cherry picked from commit dcc9b57e26)
2022-08-25 18:11:38 +02:00
Jorge Miguel Lobo Escalona bf27770617 F #5928: monitoring graphics (#2260) 2022-08-25 12:57:10 +02:00
Pavel Czerný a09aa7fab8 F #937: Do not release image if other disk uses it (#2262)
(cherry picked from commit 015d842467)
2022-08-25 10:20:17 +02:00
Jan Orel 479bfd0807 B #5946: Fix parsing * in the group list (#2261)
Regression introduced by68ce7dc0 

With the addition to skipws, peek() will read the next whitespace in the buffer. The logic has been changed to use the extraction operator so ws are consumed. The peek - get is now changed by >> - unget calls
2022-08-22 11:10:56 +02:00
Frederick Borges 906eea460a F #5930: Crtl + click for multiple selection (#2258) 2022-08-16 11:39:22 +02:00
Frederick Borges d83176923c F #5931: Deprecate ebtables and vcenter on vnets (#2257) 2022-08-16 11:38:09 +02:00
Pierre Lafievre 24a3c4cf20 B #5914: fix double lines
Signed-off-by: Pierre Lafievre <pierre.lafievre@iguanesolutions.com>
(cherry picked from commit df3f44d68d)
2022-08-09 17:10:27 +02:00
Jan Orel 39a4108e32 F OpenNebula/one-infra#331: Alma9/RHEL9 support (#2248)
* gem locks
* npm openssl legacy
2022-08-05 09:46:45 +02:00
Ruben S. Montero 6591620fcc commit 84fb0bb65a24afe860c6d32d111a38438a932ff6
Author: vickmp <vpalma@opennebula.io>
Date:   Thu Jul 7 17:31:56 2022 +0200

    B #1276: Remove ec2/occi auth references
2022-08-02 11:39:12 +02:00
Jan Orel 5a01a4d0a2 M #-: Add guacd onecfg definition, allow yaml aliases (#2247)
* M #-: Add guacd onecfg definition

* M #-: Load sunstone yamls with aliases
2022-08-02 10:32:18 +02:00
Tino Vazquez 26059fe5fc Merge branch 'master' of https://github.com/OpenNebula/one-ee 2022-07-28 13:54:30 +02:00
Ruben S. Montero 24d4c8b9d4 B #5936: Honor VALIDATE in updateconf
(cherry picked from commit 1c1151d966f1255f81619c0f571883e5703e1e5f)
(cherry picked from commit c0ba720d31)
2022-07-28 13:38:04 +02:00
Tino Vazquez a0436b8415 Merge branch 'master' of https://github.com/OpenNebula/one-ee 2022-07-28 12:00:37 +02:00
Jorge Miguel Lobo Escalona c5e400580b F #5902: Add admin and user view yaml (#2253) 2022-07-28 11:59:10 +02:00
Jorge Miguel Lobo Escalona b1b37fb77c F #5902: Sunstone File Tab (#2252) 2022-07-28 11:26:58 +02:00
Pavel Czerný 34630f1128 B #5935: onedb fsck rm network quota with empty ID (#2254)
(cherry picked from commit 665e2bb802)
2022-07-28 11:25:02 +02:00
Pierre Lafievre 04bbc74a1a B #5914: fix newline escaping
Signed-off-by: Pierre Lafievre <pierre.lafievre@iguanesolutions.com>
(cherry picked from commit 75f241110e)
2022-07-27 16:28:58 +02:00
Tino Vazquez 7a658cdc36 Merge branch 'master' of https://github.com/OpenNebula/one-ee 2022-07-26 18:02:06 +02:00
Jorge Miguel Lobo Escalona fe126c9215 F #5888: add data-cy (#2249) 2022-07-26 16:58:11 +02:00
Pavel Czerný fecfd03a1a M #-: Restricted dirs for CONTEXT/FILES (#2243)
* M #-: Restricted dirs for CONTEXT/FILES

* M #-: Fix opennebula_configuration.xsd
2022-07-26 09:18:08 +02:00
Jan Orel 78bae2762c B #5922: Migrate also vm.xml and ds.xml (#2244) 2022-07-22 09:37:16 +02:00
Christian González 24112c3338 B #5923: Fix DS migration for fs_lvm* (#2246)
(cherry picked from commit 47cb7b891e)
2022-07-22 09:36:26 +02:00
Pavel Czerný 3507c56ad4 B 5912: Fix oneflow-template auth params (#2240)
(cherry picked from commit 94fc17c36a)
2022-07-22 09:34:27 +02:00
Jorge Miguel Lobo Escalona 1696f35e94 M #~: refactor get vcenter token (#2245) 2022-07-21 12:43:19 +02:00
Jorge Miguel Lobo Escalona 612172466f F #5888: Activate Image tab (#2242) 2022-07-20 13:05:23 +02:00
Jorge Miguel Lobo EscalonaandSergio Betanzos f5f8266da8 F #5888: Add Storage->Image tab (#2241)
Co-authored-by: Sergio Betanzos <sbetanzos@opennebula.io>
2022-07-20 13:04:31 +02:00
Pavel Czerný e9e7aa5125 M #-: Fix oned segfault after driver init failed (#2217)
(cherry picked from commit aa54a8ca55)
2022-07-18 18:04:36 +02:00