1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-22 13:33:52 +03:00
Commit Graph

62 Commits

Author SHA1 Message Date
Tino Vázquez
05d147c524
M #-: Bump version 6.10.0
Also bump copyright year to 2024
2024-07-29 14:27:11 +02:00
Pavel Czerný
2fe396ae15
L #-: Add Astyle linting
* Add AStyle to smoke tests
* Format C++ files using AStyle
2024-06-03 11:40:24 +02:00
Tino Vázquez
3376afdaf0
M #-: Bump year 2023 2023-01-09 12:23:19 +01: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
Tino Vazquez
f7d53e75ff M #-: Bump version 6.3.85 2022-04-07 19:49:58 +02:00
Pavel Czerný
ecd36bcb9a
B #5261: Fix PCI references after vm migrate fails (#877) 2021-02-25 11:45:13 +01:00
Vlastimil Holer
096754b63f
M #-: Bump year to 2021 (#778) 2021-02-09 16:07:56 +01:00
Ruben S. Montero
565094961a
F #4936: oned refactor
* Remove duplicit methods from NebulaUtil

    * Const correctness

    * Fix minor code quality issues

    * Remove ObjectCollection::clone()

    * Minor SSLUtil interface change

co-authored-by: Pavel Czerný <pczerny@opennebula.systems>
2020-07-05 22:01:32 +02:00
Pavel Czerný
daaf132a43
F #4936: Remove 'using namespace std' from headers (#60) 2020-07-02 22:42:10 +02:00
Vlastimil Holer
f3c50a5d89
M #-: Year bump to 2020 (#4634) 2020-04-30 15:00:02 +02:00
Pavel Czerný
0642f87198
F #3859: Update host reservations only if needed (#4358) 2020-03-13 10:32:53 +01:00
Ruben S. Montero
44e44b47a8
F #3859: New monitoring architecture
co-authored-by: Pavel Czerny <pczerny@opennebula.systems>
  co-authored-by: Daniel Clavijo Coca <dclavijo@opennebula.systems>
2020-03-04 16:05:57 +01:00
Ruben S. Montero
03b2b42024
F #3503: Support for overcommitment & VM pinning. Number of VMs per
physical thread can be set for each host with VMS_THREAD
2019-09-22 00:31:08 +02:00
Pavel Czerný
6c6a73092c B #3630: Fix CPU/MEM reservations (#3678) 2019-09-11 11:14:51 +02:00
Ruben S. Montero
3b4b0b2723
F #3503: Support for DPDK. Added ISOLCPUS to isolate cpus from the NUMA scheduler 2019-07-25 16:23:38 +02:00
Ruben S. Montero
3b9ace0577
F #3256: Support for NUMA topology, Hugepages and CPU pinning. 2019-07-01 18:58:24 +02:00
Vlastimil Holer
441cf1f7f9 Bump version to 5.7.85, year to 2019 2019-01-16 11:47:59 +01:00
Vlastimil Holer
a4c0447ccf Bump year to 2018 (#1623) 2018-01-02 18:27:37 +01:00
Ruben S. Montero
02b229d7de F #4809: Fix cache issues when updating PCI devices on VM 2017-05-26 17:49:07 +02:00
Javi Fontan
8de979e42c Bump version 5.3.80 2017-05-25 16:07:35 +02:00
Ruben S. Montero
08d88e0119 F #4901: Updates MEM & CPU when RESERVED_ attributes are updated. Adds TOTAL_CPU
and TOTAL_MEM shares to store raw monitoring cpu/mem metrics. Adds
migrator and increases local DB version number.
2016-11-12 21:18:25 +01:00
Ruben S. Montero
09825bd7ba F #4901: RESERVED_CPU and RESERVED_MEM can be expressed using %. Update
HostShare interface.
2016-11-05 21:14:38 +01:00
Ruben S. Montero
b6dbd9c92c feature #4630: Automatic assgiment of passthrough devices. Attribute and
deployment file
2016-07-18 14:33:50 +02:00
Javi Fontan
e1f6dee180 Update copyright notice year 2016-05-04 12:33:23 +02:00
Ruben S. Montero
5761be4d10 feature #4217: Simplify Template, Attribute and PoolObjectSQL class interfaces 2016-02-05 00:33:37 +01:00
Jaime Melis
e20fb5c4c4 Fix copyright in banners 2015-09-23 16:51:10 +02:00
Ruben S. Montero
19f3e8796b feature #3028: Fix get_pci_value logic 2015-09-07 11:58:44 +02:00
Carlos Martín
8178f90f8f Feature #3028: Ignore cpu,mem when capacity is not enforced 2015-09-04 13:22:11 +02:00
Carlos Martín
e5861631f1 Bug #3961: Check PCI attributes when a VM is instantiated 2015-09-02 17:31:19 +02:00
Ruben S. Montero
6757fa6672 feature #3028: Remove devices not shown in monitor from host. Recover
constness of test method. Get rid of unneeded methods
2015-08-27 16:20:47 +02:00
Carlos Martín
e348918ea2 Feature #3028: Check pci devices in Host::test_capacity 2015-08-26 12:34:27 +02:00
Ruben S. Montero
17c33241a6 feature #3028: Add comments to PCI format. Init pci list in get_*
methods
2015-08-22 17:00:55 +02:00
Ruben S. Montero
6d8ea1a337 feature #3028: Print HostShare and HostXML into streams. Scheduler now parses PCI device lists 2015-08-21 13:46:10 +02:00
Ruben S. Montero
c4c6416458 feature #3028: Delete pci devices from host when removing the VM. Always
include VMID in PCI elements
2015-08-21 12:00:19 +02:00
Ruben S. Montero
67ec62e0d4 feature #3028: Add PCI capacity when deploying a VM 2015-08-21 01:08:28 +02:00
Ruben S. Montero
00427a0950 feature #3028: Fix PCI set bugs 2015-08-20 23:22:02 +02:00
Ruben S. Montero
e04ee43aa3 feature #3208: Add PCI device set to the HostShare 2015-08-20 17:39:56 +02:00
Ruben S. Montero
6b8a16fc76 feature #3028: Adds PCI_DEVICES to HostShare 2015-08-17 23:14:15 +02:00
Jaime Melis
8d00b74177 Change year to 2015 2015-02-24 12:27:59 +01:00
Jaime Melis
11520021f7 Bump to version 4.5.0 2014-01-09 11:51:20 +01:00
Carlos Martín
149dab3525 Feature #1678: Add a template to HostShare, store local system DS monitorization there 2013-10-22 15:42:51 +02:00
Ruben S. Montero
3cb4a984c1 bug #2352: Set host share variables to long long type
Conflicts:
	src/host/Host.cc
2013-10-02 18:24:33 +02:00
Ruben S. Montero
dcfa0a1773 feature #1772:Resize VM capacity (cpu, memory and vcpu) offline 2013-02-23 19:49:06 +01:00
Jaime Melis
7357bffe34 Update copyright notice 2013-01-24 16:18:30 +01:00
Jaime Melis
af61e33f8c Update year to 2013 2013-01-24 16:03:57 +01:00
Carlos Martín
7f43ddb983 Feature #1285: Change Host memory units in code comments and XSD files 2012-07-12 12:52:13 +02:00
Jaime Melis
a2b7cb6bc9 Bump to version 3.2.0 2012-01-12 12:29:18 +01:00
Ruben S. Montero
35de55685d Merge branch 'feature-407'
Conflicts:
	src/host/ClusterPool.cc
2011-03-29 00:01:00 +02:00
Jaime Melis
4980255942 Update copyright year to 2011 2011-02-25 14:34:44 +01:00
Carlos Martín
63ca42e432 Feature #407: HostPool::discover updated to new DB schema, tests fixed 2011-02-25 14:31:07 +01:00