1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

21006 Commits

Author SHA1 Message Date
Jan Orel
7497ced077
M #-: Bump version 6.10.1 (#3290) release-6.10.1 2024-11-06 15:08:28 +01:00
David
2340b0c0bc
B OpenNebula/one#6730: Search admin users in the right array (#3289)
Signed-off-by: dcarracedo <dcarracedo@opennebula.io>
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
(cherry picked from commit e2c54b10a6b10aceaca89bcdf32bd09fd6c28259)
2024-11-06 13:37:52 +01:00
Pavel Czerný
f5b2a17360
B #6726: Fix CLI paramters converted wrongly to 0 id (#3287)
These parameters were fixed:
* schedid in onebackupjob
* execid in onehook
* snapshot_id in oneimage
* nicid, pciid, sched_id and sgid in onevm
* nicid in onevrouter
* serverid in onezone

For all those parameters the string used as ID:
* if possible the name is converted is converted to int ID
* fails if the resource doesn't have name
2024-11-05 16:26:33 +01:00
Michal Opala
e815d973a8
F OpenNebula/one#6770: Downgrade unf gem (< 0.2.0) for RedHat8 and AlmaLinux8 (#3286)
(cherry picked from commit d29681e60b35f7eae60faeea912152a4a7a0e937)
2024-11-05 09:42:46 +01:00
vichansson
948a5a9637
B OpenNebula/one#6761: Include TM_MAD_SYSTEM (#3282)
When filtering storage config. It now explicitly includes the deployment mode set during the VM template's  storage configuration

Signed-off-by: Victor Hansson <vhansson@opennebula.io>
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
(cherry picked from commit 18b07197b9f45f939f13097ad59dade9557e5980)
2024-11-04 17:56:32 +01:00
Tino Vázquez
64c6801c05
L #-: Remove files to be obsoleted from rubocop
(cherry picked from commit 5aa664fc62b7b5c28d750bc70cf9a886cd349b7b)
2024-11-04 17:25:04 +01:00
Michal Opala
206ba9e358
F OpenNebula/one#6770: Rebuild gem locks (#3284)
- Remove unused gems: etc, rb-inotify
- Remove unsupported distros: Debian10, Ubuntu1804, Ubuntu2004
- Update RHEL tags: 8.8 -> 8.10, 9.2 -> 9.4
- Update locks for: AlmaLinux8/9, RedHat8/9, Debian11/12, Ubuntu22/24

(cherry picked from commit 539a2a61729c40fdda3a15f8e05348b9033fed60)
2024-11-04 16:37:36 +01:00
Valentyn Bohdan
2ac12efb97
F OpenNebula/one#6712: Add extra check for a hostname (#3276)
Changes have been made according to RFC 1034.
http://www.faqs.org/rfcs/rfc1034.html (Sections 3.1. Name space specifications and terminology)

(cherry picked from commit 5fa479c5d3e5c820bb2a3ba89e86f0aeea39db1a)
2024-11-04 14:20:51 +01:00
Ruben S. Montero
ed0b8ca385
L #-: Useless assignment to variable - template 2024-11-04 13:45:31 +01:00
Michal Opala
a4939a293d
M #-: Change tproxy strategy for handling ARP requests (#3279)
- Prevent ARP requests from reaching other HVs
- Rename incorrectly named "comm" to "cmdline"

(cherry picked from commit 0bd451171fb6551f8dc8f7d5b38ab6ec9f6a9cef)
2024-10-29 15:16:16 +01:00
vichansson
e008ef40bf
M #-: Clear ramdisk on kernel path clear (#3273)
Signed-off-by: Victor Hansson <vhansson@opennebula.io>
(cherry picked from commit 2fe102032e682e4f06a51989e0338349dcaa73b3)
2024-10-22 10:08:02 +02:00
vichansson
4a5c6aa989
M #-: Clear ramdisk selection properly (#3272)
Signed-off-by: Victor Hansson <vhansson@opennebula.io>
(cherry picked from commit dac6d9dca320702810ca5c3960c685283bc25910)
2024-10-21 16:03:35 +02:00
vichansson
69dafc8b2a
L OpenNebula/one#6751: Lint fix (#3270)
Signed-off-by: Victor Hansson <vhansson@opennebula.io>
2024-10-21 11:17:46 +02:00
vichansson
d8fcdbb046
B OpenNebula/one#6751: Fix raw data validation handling (#3269)
Signed-off-by: Victor Hansson <vhansson@opennebula.io>
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
(cherry picked from commit 5333608e42a4524947d17d268c565a62a0432bf4)
2024-10-21 11:00:27 +02:00
Daniel Clavijo Coca
383bd5300a
B OpenNebula/one#6758: Fix QEMU_GA ping monitoring
(cherry picked from commit f698097708614a4eaaa256875e93ab267760debf)
2024-10-18 18:49:50 +02:00
vichansson
c4746824d8
M #-: Fix apiResponse data handling (#3268)
- If the API response returns only 1 object, it won't be array wrapped,
  causing issues when formatting the response to a dataset. Now
  transformApiResponseToDataset always casts the response to an array.

Signed-off-by: Victor Hansson <vhansson@opennebula.io>
(cherry picked from commit 51ef95d720b996f5629e749ff17e9b8307cd18fe)
2024-10-18 14:43:37 +02:00
vichansson
1f003cbcd5
B OpenNebula/one#6744: Fix placement expression formatting (#3258)
Signed-off-by: Victor Hansson <vhansson@opennebula.io>
(cherry picked from commit 60bfce4146bb6a701a47d99d12143d904ebd670e)
2024-10-14 17:16:01 +02:00
Guillermo Ramos
d486ee1ae4
F #-: Fix Ceph VM restore ignoring EC_POOL_NAME
Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
(cherry picked from commit ad24f286169826c69f564d5b36801937b7b65077)
2024-10-11 15:39:42 +02:00
Guillermo Ramos
25a094155e
F #-: Fix use of --data-pool flag in Ceph's DS.cp
Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
(cherry picked from commit 788534b9b9b735c287b82e8b71f862d6d19736e8)
2024-10-11 15:39:38 +02:00
Anton Todorov
9f92eabab1
B #6689: append --block to change-media call in reconfigure
when the $ISO_PATH is a block device

(cherry picked from commit bf43d43bec4a87c61d1b600fedada6cb1279b09e)
(cherry picked from commit d5b5a4d5a42729d7eb2895739a6b91cf7e821205)
2024-10-11 10:09:57 +02:00
vichansson
0f8d43a4be L #-: Lint fix (#3263)
Signed-off-by: Victor Hansson <vhansson@opennebula.io>
(cherry picked from commit c6d9a45ec544d600c59560c46e5f2a8d6dbc67bf)
2024-10-10 16:17:24 +02:00
vichansson
b0ba87bac1 B OpenNebula/one#6746: Always display DS limit if set (#3259)
Signed-off-by: Victor Hansson <vhansson@opennebula.io>
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
(cherry picked from commit b379fb95f8692d93ec83b347884d7f492ab6b25a)
2024-10-10 14:38:25 +02:00
vichansson
5b1f99a7bb F OpenNebula/one#6742: Update OS & CPU tab layout (#3262)
Signed-off-by: Victor Hansson <vhansson@opennebula.io>
(cherry picked from commit 32805d41302d6572234e5db72515769a714f99a1)
2024-10-10 14:37:40 +02:00
vichansson
f15665995d B OpenNebula/one#6744: Fix host requirements expression (#3257)
Signed-off-by: Victor Hansson <vhansson@opennebula.io>
(cherry picked from commit c4d727c79cd5fa753a0930a7577fb55f3e349acf)
2024-10-09 11:02:28 +02:00
Michal Opala
527d1edb78
B #-: Add tproxy fixes: socket leak + nft formatting (#3256)
- Ensure sockets are always closed properly.
- Normalize and cleanup nft scripts (to prevent potential segfaults).

(cherry picked from commit 8537add3656737a404c56e6e61ec4304ec639b3b)
2024-10-09 10:26:28 +02:00
Guillermo Ramos
a47839f1fa
Optimize snapshots usage in RBD incr. restore
- Incremental backups only keep the last snapshot, to be used as base in
  the next one.
- Restore operation deletes the previous snapshots, because at that
  point the chain is reset and they're no longer going to be used.
- Starting a new FULL backup also deletes previous inc snapshots.
- Refactor the remote execution logic to make it more composable.

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
(cherry picked from commit 1790b5f3f9ac55e3149f5344580330c27d5585df)
(cherry picked from commit 7ddf9b3b72801f5528c39e0923ca58941498fd22)
2024-10-08 15:37:04 +02:00
vichansson
9139503e59 B OpenNebula/one#6746: Fix DS LIMIT_MB parsing (#3254)
Signed-off-by: Victor Hansson <vhansson@opennebula.io>
(cherry picked from commit 8c8f053c39113190437bbafefca8e9545642b3f4)
2024-10-08 10:02:33 +02:00
Ruben S. Montero
7f67cc681a
F #6411 + B #6741: Incremental backups for Ceph datastore
Implementation overview:

- Incremental points are saved as dedicated rbd snapshots under the
  "one_backup_<increment_id>" namespace. This snapshots are used to
  generate delta files in rbdiff format.

- The rbdiff formats are stored in the backup server to restore the rbd volumes.

- The restore process is performed directly on the Ceph cluster
  importing the base image (first full backup in the chain, rbd import)
  and then applying the increments (rbd import-diff) up to the target
  increment.

- Two new pseudo-protocols has been implemented to adopt the restore
  pattern above (restic+rbd, rsync+rbd). This protocols bundle of the
  rbdiff files in a tarball for transfer from the backup server. Note:
  reconstruct process uses the Ceph BRIDGE_LIST and not the backup
  server (as opposed to qcow2 backups)

Other bug fixes

- This commit also fixes #6741, resetting the backup chain after a
  restore

- The original ceph drivers do not receive the full action information,
  this now has been fixed by including VM information in the STDIN string sent
  to the driver.

Compatibility note.

- backup actions should return now the backup format used raw, rbd, ...
  If not provided oned (6.10.x) will use raw as a default to accommodate any
  third party driver implementation. It is recommended to include this
  third argument.

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
Co-authored-by: Guillermo Ramos <gramos@opennebula.io>
(cherry picked from commit 5f7b370c5274434804726c3feb435c98af761963)
2024-10-04 20:29:22 +02:00
Pavel Czerný
d570f6bdf3
F #2111: Optimize VM history handling (#3243)
- oned load only last 2 history records (not the full list)
- Dump all history records only if needed in VirtualMachine::to_xml.
- Dump conforms XML schecam and removes VM template from history records.

Speed up of onevm show command:
  - for small SQLite DB is for VM with 500 histories: 130 ms down to 5 ms
  - for big MySQL DB VM with 687 histories: 1000 ms down to 200 ms

(cherry picked from commit e13c329db44f02cb18205b2d77fc719bee3324f9)
2024-09-30 15:49:46 +02:00
Michal Opala
ba8c46e8b0
B #-: Do not use ERB with trim mode (alma8 fix) (#3250)
(cherry picked from commit 0c6620c9a9d8cb3924b82507bd54d94a7e15e7c2)
2024-09-27 15:56:44 +02:00
Jorge Miguel Lobo Escalona
fd9daa2b26
M #~: horizontally align the ssh console (#3249)
(cherry picked from commit 2345ff87a21e19d5128f373760543ac4915d3cc1)
2024-09-27 15:10:28 +02:00
vichansson
3d337d9ff5
B OpenNebula/one#6739: Fix VM restore disk selection (#3248)
* Correctly displays the VM disks when restoring a backup from the VM
  action menu

Signed-off-by: Victor Hansson <vhansson@opennebula.io>
(cherry picked from commit 8f0d20580e6c56d768f5d1ec7fde0bea9e7c1dec)
2024-09-27 13:20:05 +02:00
Michal Opala
93459a9497
F OpenNebula/one#6641: Add the "string-phone" transparent proxy (#3221)
This feature let's cloud admin to proxy VM connections to any service through the hypervisor. VMs uses a link local IP that is forwarded to a local proxy. This simplifies VM network requirements, e.g. to access gateway, vaults, configuration services etc...

Implementation:
- Use network namespaces to isolate VNET networking. ip netns command is executed through a wrapper to limit sudo access to commands.
- Add tproxy.rb app to manage a group of daemons on HV nodes.
- Use unix sockets for communication between proxy peers. "Inner" proxy runs in the netns without any network access. "Outer" proxy handles HV connections to services.
- Use OpenNebulaNetwork.conf + 'onehost sync -f' for configuration. Proxy can be defined per network.

NOTE: This commits does not include modifications to OpenNebulaNetwork.conf

(cherry picked from commit b1ef4332e54cf0d9c762906743f20f30d38289a5)
2024-09-26 18:36:54 +02:00
Jorge Miguel Lobo Escalona
6db0940e2d
F #6718: add data-cy for tests (#3245) 2024-09-25 18:29:46 +02:00
David
efa5e62be2
M #-: Protect the labels column to check that is always a string (#3244)
Signed-off-by: dcarracedo <dcarracedo@opennebula.io>
(cherry picked from commit 1fcb2ba5763d4c06b2d585bc9935816888aec85b)
2024-09-25 10:11:53 +02:00
vichansson
8950a11518
F OpenNebula/one#6703: VM's table display hostname (#3242)
* Now displays hostname next to the host in the card view
* Also displays hostname in the list view

Signed-off-by: Victor Hansson <vhansson@opennebula.io>
2024-09-24 10:21:40 +02:00
Pavel Czerný
48506a7e0e
M #-: onedb fsck check history seqence id (#3237)
* It looks like `onedb purge-history` sometimes fails to delete some history records.
* Delete all history records with SEQ greater then VM/HISTORY_RECORDS/HISTORY/SEQ, which should be the last record

(cherry picked from commit a3c47764686404edba7b86b50ad8efdfc8f3edf0)
2024-09-24 09:27:44 +02:00
Pavel Czerný
21dbf2a81f
B OpenNebula/one#6596: Fix Host NUMA nodes after VM migration (#3226)
* Fix Host NUMA nodes after VM migration
* Move template parsing to HostShareCapacity

+ add warning about unsafe pointer usage

(cherry picked from commit 0cde7d96a200ccfbffe7579124fc5efa07e97b0d)
2024-09-24 09:12:46 +02:00
Jorge Miguel Lobo Escalona
c788e5bc5f
F OpenNebula/One#6718: lint-fix (#3240) 2024-09-23 19:20:47 +02:00
Jorge Miguel Lobo Escalona
80dc9b4b05
F OpenNebula/one#6718: add labels in rows (#3238) (#3239) 2024-09-23 19:13:04 +02:00
Ruben S. Montero
6893305782
M #-: OpenNebula vm exporter wrong unit for total mem
Metric is in bytes, MB was published
2024-09-23 12:04:12 +02:00
Jorge Miguel Lobo Escalona
03ad300fb8
F OpenNebula/One#6718: Fix error timeout (#3236)
using the finder in tables

(cherry picked from commit f01175bca8b9f871c7c587c00465f9687a38a3e0)
2024-09-23 11:30:02 +02:00
Guillemo Ramos
ce28e10730
B #6505: Fix volatile disk backup (Ceph) (#3225)
* B #6505: follow-up fix for Ceph bk/restore (#3212)

Signed-off-by: Guillermo Ramos <gramos@opennebula.io>
Co-authored-by: Pavel Czerný <pczerny@opennebula.io>
(cherry picked from commit c8d28ad18f87b3158bb7a3459766241ac2a4eda2)
2024-09-20 12:05:17 +02:00
Jorge Miguel Lobo Escalona
4afac0039c
F OpenNebula/One#6718: Add DataTable rows as lists functionality 2024-09-19 12:50:38 +02:00
David
cd4bcba0b9
B OpenNebula/one#6725: Fix problems in vrouters in Sunstone (#3230)
Signed-off-by: dcarracedo <dcarracedo@opennebula.io>
Co-authored-by: Tino Vázquez <cvazquez@opennebula.io>
(cherry picked from commit b2fe5a30102463afc3df2d15c053f88a5e208f28)
2024-09-18 13:50:01 +02:00
ArnauGabrielAtienza
e705cb7e32
F OpenNebula/one#6624: Fix no snapshots available bug (#3229)
Signed-off-by: ArnauGabrielAtienza <agabriel@opennebula.io>
(cherry picked from commit a95a94b5a61c6b3b137fb89c39ff3fe7343fe51c)
2024-09-16 17:36:52 +02:00
ArnauGabrielAtienza
c8dbd9ae79
F OpenNebula/one#6624: Add list list-disk-snapshots (#3228)
in onevm for a specific disk

Signed-off-by: ArnauGabrielAtienza <agabriel@opennebula.io>
(cherry picked from commit 263cba67494e817ae1ee686b0589145ea64b8dc0)
2024-09-16 11:15:24 +02:00
Jorge Miguel Lobo Escalona
158b000669
F OpenNebula/one#6708: Fixed review of support tab in fireedge (#3227)
(cherry picked from commit a00ac1822c69b8684d480e61b5508d05225b86bc)
2024-09-12 19:00:27 +02:00
Jorge Miguel Lobo Escalona
15b90ca352
F #6717: remove text (EE only) Store Restic (#3224)
(cherry picked from commit 3858747958c1e374579fdc79208b01a5d2305b6a)
2024-09-11 19:17:30 +02:00
vichansson
8e3ec6fcee
B OpenNebula/one#6716: Correct instances amount when instantiate (#3223)
* Now instantiates the correct number of instances specified for a
  service ServiceTemplate
* Default number of instances set to 1

Signed-off-by: Victor Hansson <vhansson@opennebula.io>
(cherry picked from commit 212aa91a3c59a5a9fa351d1be6fbd9e3d0f10a33)
2024-09-10 16:45:21 +02:00