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

20681 Commits

Author SHA1 Message Date
Jan Orel
d46345238d
B #-: Gem locks (#2943)
*  Update Gemfile
   - Add rackup requirement for new sinatra

      https://github.com/sinatra/sinatra/blob/main/CHANGELOG.md
      Note: when using Sinatra to start the web server,
      you now need the rackup gem installed

  - newer sqlite3 is not compatible with ruby2.7

* Update almalinux8 to avoid old key

* Refresh Gemfile.locks
2024-02-16 12:11:48 +01:00
vichansson
843f8560d2
F OpenNebula/one#6341: Add generic quotas FE (#2944)
* Added generic quotas handling to quota controls component
* Added legend overflowY in polar chart
* Refactor quota identifier to a searchable input

Signed-off-by: Victor Hansson <vhansson@opennebula.io>
2024-02-16 10:56:06 +01:00
David
b0bcc9953b
M #-: Delete the register time in apps (#2942)
Signed-off-by: David Carracedo <dcarracedo@opennebula.io>
2024-02-14 17:30:31 +01:00
David
e774e41c6d
M #-: Change registration time for version in marketplace app (#2941)
Signed-off-by: David Carracedo <dcarracedo@opennebula.io>
2024-02-14 12:01:45 +01:00
Jan Orel
5a45ce0c9c
F OpenNebula/one#6357: Debian 12: gem locks, openssl legacy (#2940)
* Gemfile.lock for Debian 12
* Add NODE_OPTIONS=--openssl-legacy-provider
2024-02-14 09:59:55 +01:00
Ruben S. Montero
4294fff5c5
F #6400: Error message when changing from FULL to INCREMENTAL backup
This commits returns an error message when trying to change a VM to
incremental mode if not supported by the VM configuration. Previously,
the change was silently ignored by OpenNebula.

(cherry picked from commit 97cfa76290)
2024-02-12 23:28:01 +01:00
Jorge Miguel Lobo Escalona
82bb12af53
F #6219: add data-cy for tests setting user (#2939)
Signed-off-by: Jorge Lobo <jlobo@opennebula.io>
2024-02-12 18:14:37 +01:00
vichansson
5ba0cd9cb9
F OpenNebula/one#6490: Finish host tab (#2936)
* Added Graphs tab
* Added PCI tab
* MultiChart is used for PCI subtab 
  -  this also enables exporting in CSV & PDF format

Signed-off-by: Victor Hansson <vhansson@opennebula.io>
2024-02-12 14:18:06 +01:00
David
e6e820233f
B OpenNebula/one#6360: Change label (#2937)
Signed-off-by: David Carracedo <dcarracedo@opennebula.io>
2024-02-12 13:22:11 +01:00
Jan Orel
a32719139d
M #-: Use /usr/bin/arping from iputils-arping (#2938)
There is also arping, providing /usr/sbin/arping but we don't use that one.
2024-02-12 12:16:33 +01:00
Pavel Czerný
ff35f07fba
M #-: Fix CLI output for onehost (#2930)
* In case of incomplete monitoring data, the `onehost show` command shows error
2024-02-12 09:49:07 +01:00
Jorge Miguel Lobo Escalona
4f10429226
L #6219: lint-fix (#2935)
Signed-off-by: Jorge Lobo <jlobo@opennebula.io>
2024-02-09 12:26:52 +01:00
Jorge Miguel Lobo Escalona
a06349ca92
F #6219: Add generic template to Settings for User template (#2934)
Signed-off-by: Jorge Lobo <jlobo@opennebula.io>
2024-02-09 12:05:06 +01:00
vichansson
fa6c4dfff2
B OpenNebula/one#6384: Fix vNetTemplate lock (#2933)
* Fix vNetworkTemplates lock method, now properly invalidates cache

Signed-off-by: Victor Hansson <vhansson@opennebula.io>
2024-02-09 11:31:04 +01:00
vichansson
2126dbb212
B OpenNebula/one#6486: Modify VM configs (#2932)
New config+constants now matches backend definitions.

Signed-off-by: Victor Hansson <vhansson@opennebula.io>
2024-02-09 11:30:26 +01:00
Daniel Clavijo Coca
df0b41dec1
M #-: Update vm state reference (#2929) 2024-02-09 11:05:41 +01:00
Ruben S. Montero
4ce7340381
F #6492: Index PCI passthrough devices with bus
If q35 machine type is detected the slot of the pci device is set to 0
and the bus to pci_id + 1.

Q35 models uses pcie-root-ports to attach PCI devices. Each PCI port is
selected by the bus parameter of the PCI address and it that does not accept a
slot number greater than 0.

Example:

A VM with 2 X710 VFs is defined OpenNebula as:

PCI=[
  ADDRESS="0000:44:0a:0",
  BUS="44",
  CLASS="0200",
  DEVICE="154c",
  DOMAIN="0000",
  FUNCTION="0",
  NUMA_NODE="0",
  PCI_ID="0",
  SHORT_ADDRESS="44:0a.0",
  SLOT="0a",
  VENDOR="8086",
  VM_ADDRESS="01:00.0",
  VM_BUS="0x01",
  VM_DOMAIN="0x0000",
  VM_FUNCTION="0",
  VM_SLOT="0000" ]

PCI=[
  ADDRESS="0000:44:0a:1",
  BUS="44",
  CLASS="0200",
  DEVICE="154c",
  DOMAIN="0000",
  FUNCTION="1",
  NUMA_NODE="0",
  PCI_ID="1",
  SHORT_ADDRESS="44:0a.1",
  SLOT="0a",
  VENDOR="8086",
  VM_ADDRESS="02:00.0",
  VM_BUS="0x02",
  VM_DOMAIN="0x0000",
  VM_FUNCTION="0",
  VM_SLOT="0000" ]

Each PCI VFs is attached to different pcie-root-port, selected with the
VM_BUS parameter:

00:02.0 PCI bridge: Red Hat, Inc. QEMU PCIe Root port
00:02.1 PCI bridge: Red Hat, Inc. QEMU PCIe Root port

The PCI topology is:

-[0000:00]-+-00.0  Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller
           +-01.0  Cirrus Logic GD 5446
           +-02.0-[01]----00.0  Intel Corporation Ethernet Virtual Function 700 Series
           +-02.1-[02]----00.0  Intel Corporation Ethernet Virtual Function 700 Series
           +-02.2-[03-04]----00.0-[04]--
           +-02.3-[05]----00.0  Red Hat, Inc. Virtio network device
           +-02.4-[06]----00.0  Red Hat, Inc. Virtio SCSI
           +-02.5-[07]----00.0  Red Hat, Inc. QEMU XHCI Host Controller
           +-02.6-[08]----00.0  Red Hat, Inc. Virtio console
           +-02.7-[09]----00.0  Red Hat, Inc. Virtio memory balloon
           +-03.0-[0a]--
           +-03.1-[0b]--
           +-03.2-[0c]--
           +-03.3-[0d]--
           +-03.4-[0e]--
           +-03.5-[0f]--
           +-03.6-[10]--
           +-03.7-[11]--
           +-1f.0  Intel Corporation 82801IB (ICH9) LPC Interface Controller
           +-1f.2  Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 6 port SATA Controller [AHCI mode]
           \-1f.3  Intel Corporation 82801I (ICH9 Family) SMBus Controller
2024-02-08 14:57:28 +01:00
Marco Mancini
1b0a0a5aea
B 5768: Fix oneflow client adding uri prefix path to the http request path (#2928)
Signed-off-by: Marco Mancini <mmancini@opennebula.io>
2024-02-07 20:01:49 +01:00
Daniel Clavijo Coca
1e69810e2a
M #-: Update onevm recover cli help (#2925) 2024-02-07 19:35:37 +01:00
Ruben S. Montero
0725c4248d
M #-: Remove unused code function 2024-02-07 16:26:00 +01:00
Pavel Czerný
d94082d637
F #6439: PCI (de)attach in undeployed (#2926) 2024-02-07 16:25:36 +01:00
Tino Vázquez
cc78c5b6aa
M #-: Update GH action checkout lib 2024-02-07 10:36:46 +01:00
Mirko Stojiljković
4328a3295d
F OpenNebula/one#4188: Enable Python binding custom attributes (#2923)
Signed-off-by: Mirko Stojiljkovic <mstojiljkovic@opennebula.io>
2024-02-06 17:55:42 +01:00
David
f4067fe9dc
M #-: Add cpu model and features on dummy drivers (#2924)
Signed-off-by: David Carracedo <dcarracedo@opennebula.io>
2024-02-06 17:41:43 +01:00
vichansson
a1059292a1
B OpenNebula/one#6384: VM state updates table actions (#2922)
* VM states are now calculated in the Enhanced table
* VM state used as dependency for re-calculating table actions

Signed-off-by: Victor Hansson <vhansson@opennebula.io>
2024-02-06 14:06:37 +01:00
Jan Orel
ca1ac6f8f0
B OpenNebula/one##5909: Switch to /usr/(s)bin deb (#2907) 2024-02-06 11:38:47 +01:00
Pavel Czerný
5788a2528e
B #6372: Add lock to raft hook script (#2899)
* This should fix issues in HA environment, where we sometimes get duplicit virtual IPs
2024-02-06 11:18:35 +01:00
Pavel Czerný
b153069059
F #6439: PCI (de)attach go and java api (#2919)
* PCI (de)attach go and java api
* Remove unused VirtualMachinePCI.h
* Use vm_authorization method to check Request authorization
* Fix typos
* L #-: C++ linting + onevm
2024-02-06 11:15:33 +01:00
vichansson
f33842a4a3
M OpenNebula/one#5833: Fix linting (#2920)
Signed-off-by: Victor Hansson <vhansson@opennebula.io>
2024-02-06 11:08:29 +01:00
Tino Vázquez
b1be795555
L #-: Lint onevm CLI command 2024-02-05 14:25:02 +01:00
vichansson
3d59f15a41
F OpenNebula/one#5388: Add OneFlow tabs (#2915)
Signed-off-by: Victor Hansson <vhansson@opennebula.io>
2024-02-05 14:11:27 +01:00
Tino Vázquez
39a78a6be2
Revert "F #3823: Update building and installation on Python bindings (#2914)"
This reverts commit 3cb5f5be64.
2024-02-05 10:10:36 +01:00
Jakub Walczak
3cb5f5be64
F #3823: Update building and installation on Python bindings (#2914)
Signed-off-by: Jakub Walczak <jakub.walczak@cmcc.it>
2024-02-02 15:09:52 +01:00
Jorge Miguel Lobo Escalona
989ac3a2ae
B #6229: fix user_inputs MEMORY, CPU and VCPU (#2912)
Signed-off-by: Jorge Lobo <jlobo@opennebula.io>
2024-02-02 11:10:02 +01:00
vichansson
856ba310d8
B OpenNebula/one#6448: Add SHUTDOWN state (#2911)
to POWEROFF_HARD actions

Signed-off-by: Victor Hansson <vhansson@opennebula.io>
2024-02-01 17:18:29 +01:00
Ruben S. Montero
b27b0d43ca
M #-: Fix xpath for OpenNebula marketplace driver 2024-02-01 12:09:13 +01:00
Ruben S. Montero
1ee6498b3c
F #6439: Add deafult auth operation 2024-01-31 18:10:44 +01:00
Ruben S. Montero
9de5e607d9
M #-: Add missing default auth operations 2024-01-31 18:10:02 +01:00
Ruben S. Montero
2e596c0cf5
F #6439: PCI attach/detach operation
* Adds 2 new API calls one.vm.attachpci and one.vm.detachpci
* The operation is only for POWEROFF VMs
* Adds 2 new actions to register the event in the VM history pci-detach/pci-attach
* Ruby OCA bindings
* onevm cli commands

TODO:
- JAVA and GO bindings
- Sunstone implementation

(cherry picked from commit 5c4331a4dd)
2024-01-31 17:50:45 +01:00
Jorge Miguel Lobo Escalona
8bd78eb5ae
B #6229: fix sorter user inputs (#2910)
Signed-off-by: Jorge Lobo <jlobo@opennebula.io>
2024-01-31 10:54:04 +01:00
Jan Orel
954c545605
B #-: Fix stdin hanlding in cli (#2909)
Don't realy solely on STDIN.wait_readable. When
running CLI from script, STDIN could be easily
inherited and already processed. Also Jenkins in
`sh` function always passes STDIN.

Improve error message when attributes should be
merged.
2024-01-30 16:45:25 +01:00
Ruben S. Montero
bc95fa8109
B #6483: Add support for spoofing rules for alias NIC
This commit process NIC_ALIAS on ativation and creates flow rules to
implment spoofing rules. The rules are installed on the same port as the
parent NIC

(cherry picked from commit 6c388414e2)
2024-01-29 14:57:31 +01:00
Ruben S. Montero
41461d4c03
M #-: Fix OpenNebula Market drivers custom URL
Fix argument parsing, use stdin and not argv
2024-01-26 18:27:22 +01:00
Alberto Picon Couselo
58d7367556
B OpenNebula/one#6379: Fix for VM Migration failure (#2900)
using two SYSTEM_DS on same host
2024-01-25 16:29:43 +01:00
Neal
deb4a9d7dd
B OpenNebula/one#6431: change retry-all to retry-connrefused (#2889)
Signed-off-by: Neal Hansen <nhansen@opennebula.io>
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
2024-01-24 12:00:36 +01:00
Pavel Czerný
b782671690
F OpenNebula/one#6474: Add host ID for VMs with resched flag (#2905) 2024-01-24 11:55:09 +01:00
Jorge Miguel Lobo Escalona
0d562a2eab
B OpenNebula/one#6423: Fix upload image (#2904)
Signed-off-by: Jorge Lobo <jlobo@opennebula.io>
2024-01-23 10:52:39 +01:00
mkutouski
5d21f33a7b
B OpenNebula/one#6467: LUKS_PASSWORD was removed (#2903)
Removed LUKS_PASSWORD from the oned.conf because it's not used in the code.
2024-01-22 15:55:56 +01:00
Jan Orel
75ecbae407
Old ruby (#2902)
* Revert "L #-: Use newer argument forwarding syntax"

This reverts commit ca4645f300.

* L #-: Disable Style/ArgumentsForw. due older ruby
2024-01-19 13:03:26 +01:00
Jorge Miguel Lobo Escalona
eccebc4c00
B #6480: hide create vm button in cloud view (#2901)
Signed-off-by: Jorge Lobo <jlobo@opennebula.io>
2024-01-19 10:31:14 +01:00