2104 Commits
Author SHA1 Message Date
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
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
Ruben S. Montero 7a1a85edb6 B #5867: Fix quotas and fsck
co-author: Pavel Czerny <pczerny@opennebula.systems>
(cherry picked from commit e2d4141599)
2022-06-20 18:35:40 +02:00
Alejandro Huertas Herrero f63f313ddc B #5820: add 4,5 debug levels (#2135) 2022-06-08 18:27:38 +02:00
Tino Vazquez 823aa8b6c1 M #-: Bump to 6.99.80 2022-04-20 12:47:55 +02:00
Pavel Czerný 3b0b9f349e M #-: Bumb DB version (#1962) 2022-04-20 11:30:10 +02:00
Tino Vazquez 3c79648409 M #-: Bump version 6.9.80 2022-04-18 19:45:21 +02:00
4b746348b3 f #5725: State for Virtual Networks
* VNETs include state to flag their configuration status
  (READY/ERROR/LOCK)
* Hooks can be program based on VNET state transitions
* Include Java/Go/Ruby bindings
* New vCenter network drivers
* Place-holder to customize actions (create/delete) for other netowrk drivers
* Sunstone integration
* OneFlow syncs flow creation on VNET status
* Remove deprecated vcenter hooks and autoregistration

co-authored-by: Frederick Ernesto Borges Noronha <fborges@opennebula.io>
co-authored-by: Alejandro Huertas <ahuertas@opennebula.io>
co-authored-by: Pavel Czerny <pczerny@opennebula.systems>
2022-04-09 15:20:17 +02:00
Tino Vazquez f7d53e75ff M #-: Bump version 6.3.85 2022-04-07 19:49:58 +02:00
Ruben S. Montero 3970d386b6 F #5792: Set KVM shares based on cgroup version
* New probe to get CGROUP_VERSION to the host
* LibvirtKVM driver set shares based on version (1024/100)
* Limits for min and max are check and enforced
2022-04-02 19:14:37 +02:00
Pavel Czerný 8571ff280d B #-: Do not print password to oned.log (#1871)
(cherry picked from commit fd55fbb7ab46038426af5c3b5599055a56794275)
2022-03-29 14:21:24 +02:00
Ruben S. Montero 265d05c118 F #5612: (De)/Attach security groups from VM NICs
Author: Pavel Czerný <pczerny@opennebula.systems>
2022-01-25 20:27:05 +01:00
Ruben S. Montero 46b6837def b #5697: Remove SAVE_AS_HOT attribute
(cherry picked from commit f100729f09)
2022-01-18 12:01:31 +01:00
Pavel Czerný 1242fbca95 B #629: Execute only first scheduled action (#1657)
(cherry picked from commit 22222bfeef)
2022-01-04 13:46:15 +01:00
Pavel CzernýandRuben S. Montero 5591f88a3b B #5524: Apply SYSTEM_DISK_USAGE for VM snapshots (#1647)
Co-authored-by: Ruben S. Montero <rsmontero@opennebula.org>
2022-01-04 13:03:47 +01:00
Christian González 42b7c9a3d3 M #: increase oned db versions (#1637) 2021-12-01 15:55:08 +01:00
Pavel Czerný 507f2f0c7f F #5431: User encrypted attributes (#1574)
(cherry picked from commit 9aa26b295d)
2021-11-24 10:59:06 +01:00
Tino Vazquez 7e750c72a6 M #-: Bump version for 6.4 Beta
6.3.80
2021-11-03 13:09:25 +01:00
Tino Vazquez f4c07fe1a9 M #-: Bump version to 6.2.0 2021-10-21 21:14:12 +02:00
Tino Vazquez 0effec897b M #-: Bump version to 6.1.90 2021-10-14 18:28:05 +02:00
Pavel Czerný 3c2efafcc5 B #4193: Limit action execution on wilds (#1496) 2021-10-08 19:27:06 +02:00
Tino Vazquez 2436bbbde3 M #-: Bump to 6.1.85 2021-10-06 16:32:52 +02:00
Pavel Czerný 77276366a8 M #-: Method for case insensitive string compare (#1464) 2021-09-17 09:11:16 +02:00
121b4b096e F #2481: UEFI Support
co-authored-by: Ricardo Diaz <rdiaz@opennebula.io>
co-authored-by: Pavel Czerny <pczerny@opennebula.systems>
2021-09-14 15:26:21 +02:00
Pavel Czerný b80ee243c0 F #5482: Append flag for onevm updateconf (#1395) 2021-08-09 11:00:58 +02:00
Pavel Czerný 3e72c08212 B #3610: Fix failure response for disk-attach (#1352)
(cherry picked from commit d4f5a8bdf6)
2021-07-13 17:57:16 +02:00
Pavel Czerný accdc228ca M #-: Log messages to VM log (#1339)
Bring back behaviour from one-5.12
2021-06-30 10:05:05 +02:00
Pavel Czerný de6d7dd150 B #2187: Increase AR size from 32 bit to 64 bit (#1295) 2021-06-24 10:52:46 +02:00
Pavel Czerný 9375625793 M #-: Fix market_mad_conf defaults (#1306)
(cherry picked from commit 5fc94b4992)
2021-06-18 11:22:10 +02:00
Ruben S. Montero 0f130a1abd F #5289: Remove unneeded code 2021-06-15 11:24:19 +02:00
Ruben S. MonteroandPavel Czerný 3f171f3b5b F #5289: New api for sched actions
SchedActions are now a complete managed type. It is in in /TEMPLATE and
not /USER_TEMPLATE and includes dedicated API Calls to manage the
entries:

- one.vm.schedadd (add new sched_action)
- one.vm.schedupdate (update an exiting sched_action)
- one.vm.scheddelete (delete an action)

The scheduler now use this API. This will prevent race conditions
between update operations from different processes.

co-authored-by: Pavel Czerný <pczerny@opennebula.systems>
2021-06-15 08:22:26 +00:00
Ruben S. Montero 0ebda56330 M #-: Reduce attribute copies on updateconf
(cherry picked from commit 99d165856d)
2021-06-10 09:56:02 +02:00
Pavel Czerný 8b8d811e82 F #4510: Option to disable Marketplace (#1269) 2021-06-03 17:14:30 +02:00
Jan Orel 86f174d469 F #5381: Join qcow2 + shared TM drivers (#1217) 2021-05-26 18:21:13 +02:00
Pavel Czerný 6c71efc9ad M #-: Fix occasional crash on exit (#1242)
(cherry picked from commit e16dfecd59)
2021-05-21 23:27:03 +02:00
Pavel Czerný 84d106a57a M #-: Inherit Nebula from NebulaService (#1160) 2021-05-04 11:38:25 +02:00
f1a48bdc0d F #5270, #5272: Support for Google Compute and DigitalOcean
co-authored-by: Alejandro Huertas <ahuertas@opennebula.io>
co-authored-by: Juan Antonio <jescobar@opennebula.io>
co-authored-by: Sergio Betanzos <sbetanzos@opennebula.io>
2021-05-01 21:53:09 +02:00
Pavel Czerny 69e83eb161 F #5353: Zone standby mode. DB version number to 6.2.0
Includes the following commits from f-5353:

  - 62d3d38d7fb135b82874a5076a7f06c23675e0b7
  - 52f3f066603c478061891175c008a58cfed3dc43
  - 0e82f9e5471c3cf0e21969393299279c6e739138
  - 8c32050940f528ea876e8293e6fbbf56a373bd54
2021-04-27 10:45:58 +02:00
Pavel Czerný 6bca41f0db M #-: Showback option to calculate only running VM (#1105)
(cherry picked from commit c5ad2698b7)
2021-04-15 11:13:56 +02:00
Ruben S. Montero 0ef2364e7d F #5324: Remove duplicates in Security Group
Author: Pavel Czerny <pczerny@opennebula.systems>
(cherry picked from commit fca2fb32c0)
2021-04-12 10:05:19 +00:00
Vlastimil Holer 23bf3b1534 M #-: Bump version to 6.1.80 (#1073) 2021-04-06 18:14:38 +02:00
Vlastimil Holer c23c0ee26b M #-: Bump version to 6.0.0 (#1026) 2021-03-25 14:17:10 +01:00
Vlastimil Holer 341991bce1 M #-: Bump version to 5.13.90 (and year in LXC) (#981) 2021-03-16 16:35:41 +01:00
Pavel Czerný 872939fb26 F #727: Improve shareable disks (#970)
* Shareable only on supported hypervisors
* Fix disk-attach
* Restrict shareable disks to SHARED datastores
* On image clone: copy SHAREABLE depends on DEFAULT_IMAGE_PERSISTENT flag
2021-03-15 16:24:25 +01:00
Ruben S. Montero 59b6e59fdd M #-: Add comments 2021-03-15 14:23:48 +01:00
Alejandro Huertas f92c6bbfab B #5096: fix bug updating VM conf 2021-03-15 14:23:48 +01:00
Ruben S. Montero cb52559200 WIP 2021-03-15 14:23:48 +01:00
Pavel Czerný f7f076c638 M #-: Fix possible NIC name collision (#962) 2021-03-12 13:09:04 +01:00
Vlastimil Holer ba44f49c91 M #-: Bump version to 5.13.85 (#896) 2021-03-01 14:11:26 +01:00
Pavel Czerný ecd36bcb9a B #5261: Fix PCI references after vm migrate fails (#877) 2021-02-25 11:45:13 +01:00