1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-01 05:47:01 +03:00

127 Commits

Author SHA1 Message Date
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
Pavel Czerný
3ea67d3645
F #4936: Reduce number of new/delete, use unique_ptr (#212)
* On exit stop RequestManager first

* Use unique_ptr for pointers to Template

* Reduce number of new/delete
2020-09-15 11:16:00 +02:00
Ruben S. Montero
5ce49ed404
F #4936: Refactor pools to use unique_ptr
co-authored-by: Pavel Czerný <pczerny@opennebula.systems>
2020-09-10 09:08:29 +02: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
Ruben S. Montero
320d333494
F #3859: VM state transition
* Do not fail KVM shutdown if domain already terminated
      * Do not trigger automatically host monitor on startup
      * Zombie support
      * Sync state of missing VMs
2020-03-13 15:04:31 +01:00
Ruben S. Montero
91a03558f9
Revert "WIP"
This reverts commit cb7a24396db03f049dc3c3a94d6205c22bcfd091.
2020-03-11 20:51:28 +01:00
Ruben S. Montero
cb7a24396d
WIP 2020-03-11 20:40:43 +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
Pavel Czerný
8d12e78fbe F #4032: Speed up C++ build (#4035)
In Nebula.h use forward declarations instead of #include
2019-12-10 11:45:14 +01:00
Pavel Czerný
6c6a73092c B #3630: Fix CPU/MEM reservations (#3678) 2019-09-11 11:14:51 +02:00
Ruben S. Montero
6143dd95ce
F #3380: New Hook system. Drivers, oned and command line tool
Co-authored-by: Christian González <cgonzalez@opennebula.systems>
2019-09-09 14:47:42 +02:00
Ruben S. Montero
a742b95d83
F #3064: Unified secret handling
Co-authored-by: Pavel Czerny <pczerny@opennebula.systems>
2019-09-03 16:46:36 +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
juanmont
248b750945 Bug 5110 (#527): changed type for memory value to deal with >2TB hosts 2017-10-13 12:43:34 +02:00
Ruben S. Montero
ca2a1a42d2 F #4809: Fix non-persistent state of Hosts 2017-06-22 23:37:08 +02: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
bca17f4ee6 F #4809: Update SqlDB method name. DO NOT replicate monitoring data 2017-04-21 19:16:45 +02:00
Ruben S. Montero
a6d4ab3c9f F #4809: Update Sql database interface to include read/write/bootstrap
operations
2017-04-18 17:12:19 +02: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
Javi Fontan
e1f6dee180 Update copyright notice year 2016-05-04 12:33:23 +02:00
Ruben S. Montero
f6c9924629 feautre #4403: Adds OFFLINE mode to Host. 2016-04-12 00:33:09 +02:00
Ruben S. Montero
67ba59ada1 feature #3848: Remove VN_MAD from Host in oned. Remove VMWare driver in
core
2016-04-07 11:06:43 +02:00
Carlos Martín
f6d10bdec0 Feature #4369: Undo Host changes to have only one cluster 2016-03-15 16:37:36 +01:00
Carlos Martín
e8a05ca1d7 Feature #4369: Replace cluster ID with a set of IDs 2016-03-10 16:28:33 +01:00
Ruben S. Montero
9e4af1ebc6 feature #3204: Security Group dynamic update. Add support to update SG
rules of running VMs though a new one.secgroup.commit operation
2016-03-01 23:31:31 +01: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
Carlos Martín
8178f90f8f Feature #3028: Ignore cpu,mem when capacity is not enforced 2015-09-04 13:22:11 +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
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
Javi Fontan
4b08d76fbf Whitespace cleanup 2015-07-01 15:18:28 -04:00
Carlos Martín
47d3ae7f7c Bug #3700: Redo the transition from poff->runn 2015-05-05 12:14:35 +02:00
Carlos Martín
dd8dbb38b5 Revert "Bug #3700: Transition from poff->runn requires the VM to be reported twice"
This reverts commit ea876146afbf48df89bcd73378261945c7ed40bd.
2015-05-05 11:46:30 +02:00
Carlos Martín
ea876146af Bug #3700: Transition from poff->runn requires the VM to be reported twice 2015-04-30 17:11:05 +02:00
Jaime Melis
8d00b74177 Change year to 2015 2015-02-24 12:27:59 +01:00
Ruben S. Montero
958da49fc6 feature #3331: Generate a master key file to encrypt data in the DB (.one/one_key). Encrypt VCENTER_PASSWORD in host template. VCenter driver derypts the password using the master key
(cherry picked from commit 8016908d3bc357bebf1af4a5f236af6952de6d34)

Conflicts:
	src/vmm_mad/remotes/vcenter/vcenter_driver.rb
2014-11-19 12:01:33 +01:00
Carlos Martín
444b5bf8c0 Feature #1798: Add host reserved_cpu/mem attributes each monitoring step 2014-03-06 16:18:28 +01:00
Ruben S. Montero
7577d6d6b9 feature #1798: Optionally reserve capacity from a host. Cluster defaults can be defined 2014-03-04 11:42:44 +01:00
Jaime Melis
11520021f7 Bump to version 4.5.0 2014-01-09 11:51:20 +01:00