1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-12 08:58:17 +03:00

21119 Commits

Author SHA1 Message Date
Guillemo Ramos
aa085ef6e3
Fix failure propagation from mkfs (#3381)
Bug introduced in 696e69a957c56879042d8ac8174bd2202dcde42a

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
2025-01-23 15:34:45 +01:00
Tino Vázquez
ed5f655af1
L #-: Rubocop 1.71.0 2025-01-23 13:24:41 +01:00
Jorge Miguel Lobo Escalona
18c25feeb4
F OpenNebula/One#6639: Add cost info at VM instantation time (#3380)
* add cost when instantiate VM
* change font-color
2025-01-23 12:27:27 +01:00
Jorge Miguel Lobo Escalona
a27bb5b09f
F OpenNebula/one#6724: Fix form import app (#3376)
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
2025-01-21 19:09:53 +01:00
Jorge Miguel Lobo Escalona
262dd0e371
B OpenNebula/One#6714: add actions in marketapp from marketplace (#3373)
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
2025-01-21 19:07:51 +01:00
Ruben S. Montero
7f8c7caea2
F #6850: Add more PCIE ports for ARM architectures
This commit uses the same variable Q35_ROOT_PORTS to add more PCI
Express ports on ARM architectures.

(cherry picked from commit 4d38c80f09d1422eb32f5bdd2d1d215babcd5881)
2025-01-21 17:42:59 +01:00
Ruben S. Montero
d87b3869d7
B #6704: Perform SG and spoofing on input traffic
When the VM generates traffic addressed to the hypervisor it is handled
as routed (not bridged) and handle through the INPUT chain (not the
FORWARD chain). In this case, none of the iptables rules are applied to it so
bypassing all SG rules, including anti-spoofing ones.

This commit applies the egress rules to the VM traffic in this case.

L #-: Liniting of fw driver

B #-: Update call to DriverLogger to new structure

(cherry picked from commit 3cc6e7af1f8c66619d6b8c446ee6e4de525bc298)
2025-01-21 10:51:35 +01:00
Pavel Czerný
5599a242dd
B #6823: Fix VM quota exceeded in deploy and recover action (#3351) (#3374) 2025-01-21 10:23:21 +01:00
Guillemo Ramos
696e69a957
F #6752: AutoNFS (#3331)
This feature auto mounts NFS volumes for datastores. The behavior can be controlled with the following template attributes:

- ANFS_ENABLE: YES/NO to enable the automatic NFS management
- ANFS_HOST: hostname/IP of the NFS server
- ANFS_PATH: of the NFS share for this datastore
- ANFS_OPTS: Comma separated options (fstab-like) used for mounting the NFS shares

The shared drivers also performs a "garbage-collector" like to unmount NFS volumes on the hypervisors when the datastores are deleted. This operation is performed in a "lazy" way, when VMs are deployed on the hypervisor.

* oneimage create: mount/umount DS on demand

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Move sh mount/umount logic to libfs.sh

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* oneimage delete: mount/umount DS on demand

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Limit NFS mount/umount from SH code to 30s

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* oneimage clone: mount/umount DS on demand

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* onevm deploy: mount DS on demand

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Temporal mount only when needed

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* onevm deploy: mount DS on demand (persisten)

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Linter

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* onevm deploy: umount unneeded DS

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Allow mount/umount/sed from sudoers

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Temporal mount: use NFS_AUTO_OPTS

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Do AutoNFS cleanup even during non-related ops

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Final refactor and improvements

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* ro values for Datastore object

* Wording for AutoNFS RO attributes

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* NFS_AUTO_ENABLE: change 'true' to 'yes'

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* sudoers: merge everythng into ONE_NFS

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Quote NFS_AUTO_OPTS

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Fix difference between sudoers specs

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Touch .automounted in AutoNFS mounts

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

* Update sudoers.rb

* Update rm

* Quote bash variable expansion

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>

---------

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
Co-authored-by: Ruben S. Montero <rsmontero@opennebula.org>
2025-01-20 16:55:22 +01:00
vichansson
36857e154e
M #-: Update S.T. schema cast (#3371)
Signed-off-by: Victor Hansson <vhansson@opennebula.io>
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
2025-01-20 14:07:04 +01:00
Jorge Miguel Lobo Escalona
00307ed169
B OpenNebula/one#6815: Fix vnet/datastore/host datatable (#3369) 2025-01-20 12:28:11 +01:00
vichansson
1111cc65bc
B OpenNebula/one#6806: Add IP/MAC spoofing switch (#3367)
* Adds the IP/MAC spoofing switch to all drivers except `Bridged`

Signed-off-by: Victor Hansson <vhansson@opennebula.io>
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
2025-01-20 10:18:41 +01:00
Ruben S. Montero
d2c0104747
F #6342: Support for cluster quotas
This feature adds support for VM quotas at cluster level. CLUSTER_IDS
can be set for a VM quota so the admin can limit the number of resources (e.g. VMs) a
user/group can create in a given cluster.

This commit also fixes:

- B #2226
- B #6823

Co-authored-by: Pavel Czerny <pczerny@opennebula.io>
2025-01-20 09:50:06 +01:00
Daniel Clavijo Coca
49fc1053a1
B OpenNebula/one#6852 Fix fs detection on lvm (#3355) 2025-01-17 14:12:37 +01:00
Daniel Clavijo Coca
ddaa90f4a2
B OpenNebula/one#6848: Follow symlink (#3352) 2025-01-17 13:56:02 +01:00
Guillemo Ramos
d1e6a7c7d8
B #6583: SPARSE attribute considered on resize (#3350)
Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
2025-01-17 13:29:06 +01:00
Valentyn Bohdan
f677b37bbe
F OpenNebula/one#6623: Add snapshot-list cli command (#3362)
Signed-off-by: Valentyn Bohdan <vbohdan@opennebula.io>
2025-01-17 12:59:54 +01:00
Guillemo Ramos
b09277310d
B #6851: Fix negative arity in log function (#3366)
Ruby's #arity method:
  "Returns a nonnegative integer for methods that take a fixed number
    of arguments. For Ruby methods that take a variable number of
    arguments, returns -n-1, where n is the number of required arguments."

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
2025-01-17 12:58:16 +01:00
Valentyn Bohdan
abeb80db41
F OpenNebula/one#6636: allow to change CPU_MODEL/FEATURES with one.vm.updateconf (#3354)
Signed-off-by: Valentyn Bohdan <vbohdan@opennebula.io>
Co-authored-by: Pavel Czerny <pczerny@opennebula.io>
2025-01-17 12:51:20 +01:00
vichansson
b2973dde0b
B OpenNebula/one#6816: Fix service template update (#3363)
* Service template role names now allow '_'
* Role names and cardinality are now buffered to update when a field is
  unblurred. Preventing the cursor from moving to the end whilst typing.

Signed-off-by: Victor Hansson <vhansson@opennebula.io>
2025-01-17 11:39:49 +01:00
Jorge Miguel Lobo Escalona
81058d9705
M #~: fix response in auth functions (#3361)
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
2025-01-16 18:24:30 +01:00
vichansson
1a72c4394f
B OpenNebula/one#6794: Fix wrong user group (#3359)
* Fixes bug in Sunstone where the wrong user groups would be displayed
* Updates the look & feel of the user group tab

Signed-off-by: Victor Hansson <vhansson@opennebula.io>
2025-01-16 17:59:33 +01:00
David
8699daa016
B OpenNebula/one#6820: Detach option on vms with regular users (#3357)
Signed-off-by: dcarracedo <dcarracedo@opennebula.io>
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
2025-01-15 18:50:35 +01:00
Jorge Miguel Lobo Escalona
122030742b
M #~: fix package-lock file (#3358) 2025-01-15 10:57:39 +01:00
Jorge Miguel Lobo Escalona
ce853e5e19
F OpenNebula/One#5969: Tunnel SSH for guacamole connections (#3353) 2025-01-14 17:52:02 +01:00
Ruben S. Montero
0dfaa48041
F #6841: NVIDIA vendor mediated devices framwork
This commit add support for the NVIDIA mdev framework intriduce with
Ubuntu 24.04 release. The change includes:

- Type of mdev is added by a new monitor attribute MDEV_MODE
  (<'legacy'|'nvidia'>). An empty MDEV_MODE in the PCI device defaults
  to 'legacy'
- Profile monitoring has been also adapted to the new framework.
- vgpu has been extended to prepare the vGPU prior to VM boot according
  to the new framework.
- KVM domain generates the PCI device using the type='pci' and managed='no' to
  accomodate the new mdev interface.

Older OS/driver versions will use the legacy interface.

(cherry picked from commit 216c329b650a64034220f9fed5e5c5425ea8eabd)
2025-01-11 16:55:39 +01:00
Tino Vázquez
ef932b67bd
L #-: Rubocop 1.70.0 2025-01-10 15:46:35 +01:00
vichansson
05800652d8
M #-: Add moduleId to tab-manifest (#3348)
* Tab-manifest now supports a 'moduleId' property, allowing you to
  specify which remote module a component should be loaded from. Imports
  are restricted to those defined in the remotes-config file.

Signed-off-by: Victor Hansson <vhansson@opennebula.io>
2025-01-10 11:48:07 +01:00
Ruben S. Montero
5d5b774be1
B #6619: Add trailing slash to the marketplace endpoint
(cherry picked from commit 352b9f00593d63578a9a2563bce5e501bed62ae0)
2025-01-10 11:05:59 +01:00
Ruben S. Montero
e41e382f08
Revert "B OpenNebula/one#6619: Add trailing slash to the marketplace endpoint (#3336)"
This reverts commit f7afac9b0ed7382f6a6d4af2bde2aa84089b4998.
2025-01-10 10:58:59 +01:00
vichansson
af31ed17fb
B OpenNebula/one#6846: Fix useAuth parse & currency display (#3344)
Signed-off-by: Victor Hansson <vhansson@opennebula.io>
2025-01-09 19:44:08 +01:00
Angel
1e828a9f54
F OpenNebula/one#6763: Make available "Flush" button (#3347)
on FSunstone to resched all VMs in another hosts

Signed-off-by: Ángel Cívico Martos <acivico@opennnebula.io>
2025-01-09 19:32:34 +01:00
vichansson
281e5b7f0d
M #-: Add HOST resolve flag (#3342)
Signed-off-by: Victor Hansson <vhansson@opennebula.io>
2025-01-08 13:42:34 +01:00
vichansson
d59386362c
F OpenNebula/one#6674: Sunstone Micro-Frontend architecture (#3339)
New and very cool Micro-Frontend architecture for Sunstone

* Removed devexpress dependencies due to conflicts with @emotion/css
* Rewrote chartist component to use recharts instead
* Fixed OpenNebula/one#6788
* Updated packages & shared deps
* Adds the ability to dynamically change the URL of a remote without
  restarting
  - All modules (remotes) are resolved from the
    /etc/sunstone/remotes-config.json file
* Change to deterministic naming
* Enabled parallel builds for components
* Adds a minimal fallback editor for when modules fail to load
* Client bootstrapping test-loads all remotes, reverting to editor in
  case it can't be resolved
* Server now handles failed parsing of remotes-config.json
  - Sends a fallback config in such cases pointing all remotes to
    localhost.

Signed-off-by: Victor Hansson <vhansson@opennebula.io>
2025-01-02 12:00:56 +01:00
vichansson
4ad2c47bb3
M #-: Make user input text64 multiline (#3338)
Signed-off-by: Victor Hansson <vhansson@opennebula.io>
2025-01-02 10:51:40 +01:00
vichansson
1d68355f2a
M #-: Make user input text multiline (#3337)
Signed-off-by: Victor Hansson <vhansson@opennebula.io>
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
2025-01-02 10:37:17 +01:00
Ruben S. Montero
ca36569783
M #-: Added new line and typo for Scaleway 2025-01-02 08:19:09 +01:00
mkutouski
f7afac9b0e
B OpenNebula/one#6619: Add trailing slash to the marketplace endpoint (#3336)
Signed-off-by: Mikalai Kutouski <mkutouski@opennebula.io>
2025-01-02 08:12:57 +01:00
Valentyn Bohdan
dc7c9ce4ab
B OpenNebula/one#6678: Fix the "enforce" argument for the resize (#3314)
This commit recovers the "enforce" argument for the resize operation onevm resize request. In this case the flag is only applied to the capacity, the NUMA topology is always evaluated in the resize operation.


Signed-off-by: Valentyn Bohdan <vbohdan@opennebula.io>
2025-01-02 07:22:23 +01:00
Pavel Czerný
a15f729488
M #-: Resolve cppcheck issues version 2.13 (#3334)
* Fixed performance issues
* Suppresed style issues
2025-01-02 07:02:44 +01:00
Ruben S. Montero
cf3040e862
M #-: Fix driver call to run_sh 2024-12-23 12:35:18 +01:00
Jan Orel
115236c44b
M #-: fixup! Download and install also arm64 vendor bin. (#3330) 2024-12-19 20:13:18 +01:00
Jan Orel
6b115f0295
M #-: Download and install also arm64 vendor bin. (#3329) 2024-12-19 13:18:25 +01:00
Pedro Ielpi
ebc5b95b86
M #-: Change ACKs in Readme file (#3327)
Updating ACKs to new format.
2024-12-17 11:48:55 +01:00
Ruben S. Montero
0a47acfaea
M #-: Add additional comments for VXLAN-EVPN configuration 2024-12-17 11:40:03 +01:00
Daniel Clavijo Coca
fcd8eb06e5
B OpenNebula/one#6765: Improve QEMU Guest Agent monitoring. (#3328)
* Improve qemu-ga monitoring resilience
* Add more commands to config files
2024-12-13 16:59:02 +01:00
Ruben S. Montero
8ff4b90453
F #6669: Fix regexp to detect port ranges
Current version of the drivers does not check for user input to have the right format
2024-12-12 13:20:47 +01:00
Ruben S. Montero
0fde09b945
F #6669: Fix typo in update function
(cherry picked from commit c395b0024f43b28ca9b6e7313314c88c58444e82)
2024-12-12 11:31:15 +01:00
vichansson
67c99abafc
B OpenNebula/one#6293: Add vGPU profile selector (#3326)
* Adds vGPU profiles to dummy driver
* Adds back in missing vGPU selector to Sunstone

Signed-off-by: Victor Hansson <vhansson@opennebula.io>
2024-12-12 10:52:58 +01:00
Kristian Feldsam
a68e0a73c3
F #6185: Support huge pages without CPU pinning
Ensure that OpenNebula will: configure the VM with CPU affinity to the auto-selected NUMA node

Signed-off-by: Kristian Feldsam <feldsam@gmail.com>
(cherry picked from commit c6adde2fca5b24a8fbb073ffb1358d44b0de5024)
(cherry picked from commit a456c817d018281b4678480066add9baba3af16c)
2024-12-11 16:48:26 +01:00