1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-08-22 09:49:26 +03:00
Commit Graph

20227 Commits

Author SHA1 Message Date
57dfd3176c B #6096: Fix typo causing errors (#2459)
(cherry picked from commit 85832d9089)
2023-01-25 11:26:19 +01:00
2ee4a31f39 L #-: Remove unneeded parenthesis 2023-01-24 11:37:52 +01:00
65f34251dc F #6057: Add I/O limit options to backup DS (#2456)
(cherry picked from commit 6c42dfed9e)
2023-01-24 11:25:57 +01:00
2c4922afa4 F #6057: Make it comptible with RHEL 8 systemd version
systemd-run fails with: unrecognized option '--same-dir' in RHEL8.
Removed the option.

(cherry picked from commit dff7a2ca16)
2023-01-22 15:42:05 +01:00
276f093073 F #6057: Confine backup commands
- New TransferManager::Datastore class with confine helpers
- "Confinement" methods for backup file preparation and backup:
  * ionice/nice
  * systemd slice

- IONICE/NICE
  * Execute commands under a given nice and ionice (class 2)
  * The following variables can be set
    - RESTIC_NICE
    - RESTIC_IONICE
    - RSYNC_NICE
    - RSYNC_IONICE

- Systemd Slice
  * A user slice is created for each datastore that set:
    - CPUQuota
    - IOReadIOPSMax
    - IOWriteIOPSMax

    This requires delegation of io/cpu/cpuset controllers to oneadmin
    Also VM folder needs to be local (e.g. not an NFS volume).
  * Commands are passed specific environment (e.g. SSH agent socket)
  * The following variables can be set:
    - RESTIC_MAX_RIOPS
    - RESTIC_MAX_WIOPS
    - RESTIC_CPU_QUOTA
    - RSYNC_MAX_RIOPS
    - RSYNC_MAX_WIOPS
    - RSYNC_CPU_QUOTA

The new interface is added to file (qcow2/shared/ssh) and ceph TM
drivers.
2023-01-21 14:06:54 +01:00
2d2103ea16 B #6081: No render when have selected a vm (#2452)
(cherry picked from commit 05d17aa6b3)
2023-01-20 12:49:33 +01:00
8f365a30ae B #6086: Fix fs freeze value when QEMU Agent is selected (#2455)
Signed-off-by: Frederick Borges <fborges@opennebula.io>
(cherry picked from commit d42ee8a1e0)
2023-01-19 11:23:58 +01:00
35b43b32fc F #6054: GOCA - make AR representation more generic
Signed-off-by: Pierre Lafievre <pierre.lafievre@iguanesolutions.com>
(cherry picked from commit afc90f70fe)
(cherry picked from commit 462e888259)
2023-01-19 10:36:43 +01:00
4648c918b6 M #-: Fix the snapshot schemas (GOCA)
The schema for vm and snapshots does not correctly deserialize
the raw xml because the snapshot field in VM struct is not an array.

This change fixes the snapshot field, and adds DiskID to DiskSnapshot
struct so that after unmarshalling the snapshots are grouped by disk

Signed-off-by: Rafael Lopez <rafael.lopez@softiron.com>
(cherry picked from commit 278b14930b)
(cherry picked from commit 647a4851b8)
2023-01-19 10:36:43 +01:00
365d3d1082 B #-: Fixing bug with nested quotation marks when restoring backup (#2454)
Signed-off-by: Neal Hansen <nhansen@opennebula.io>
(cherry picked from commit 86160b66e7)
2023-01-19 09:14:30 +01:00
b79beea1df B-6081: fix other tables (#2448)
(cherry picked from commit 8b041fd06f)
2023-01-16 17:52:30 +01:00
9fe170d61c B #6081: fix get current content when select record in datatable (#2447)
(cherry picked from commit 04f22a6b3d)
2023-01-16 13:41:07 +01:00
30a79867cf L #-: Remove unneeded exceptions
(cherry picked from commit 46cca6d6cd)
2023-01-10 13:14:17 +01:00
6b28ac79d6 F #5998: Bigger label filter on FSunstone (#2441)
(cherry picked from commit 39f6d2765c)
2023-01-10 13:05:31 +01:00
6e294b3fa8 B #6061: Fix issue removing AR on vnet template (#2439)
(cherry picked from commit acba29efc2)
2023-01-10 12:16:39 +01:00
a34bf34573 B #6027: Fix schema for host.xsd
(cherry picked from commit 0784385caf)
2023-01-09 18:53:49 +01:00
b1502c1bb4 B #6027: Parse host NUMA monitoring (#2440)
Co-authored-by: Ruben S. Montero <rsmontero@opennebula.org>
(cherry picked from commit 0696693531)
2023-01-09 18:53:49 +01:00
638c00c340 M #~: Update lint for Bump year 2023 (#2442) (#2443) 2023-01-09 17:06:31 +01:00
8daf5de374 M #-: Bump year 2023 2023-01-09 13:42:55 +01:00
3943ca3b8a B #6073: add user for make_dst_path action (#2438)
Signed-off-by: Neal Hansen <nhansen@opennebula.io>
(cherry picked from commit 1035c6af9c)
2023-01-06 19:06:01 +01:00
8e1056626c M #~: lint-fix (#2437) 2023-01-05 14:40:27 +01:00
8fe3b8e5ae B #6051: Fix FireEdge endpoints should not be case sensitive (#2432)
(cherry picked from commit 18f9137de2)
2023-01-05 14:29:54 +01:00
14c11d6850 F #5974: FireEdge Sunstone Schedule Actions improvements (#2431)
(cherry picked from commit d6b89b6fe2)
2023-01-05 14:24:56 +01:00
6b3a80eb28 B #6067: Fix disk RECOVERY_SNAPSHOT_FREQ on instantiate (#2429)
(cherry picked from commit a1e9bcd675)
2023-01-05 14:21:13 +01:00
c5c248cbca L #-: YodaStyle new cop compliance
(cherry picked from commit abeccc507f)
2023-01-05 13:57:14 +01:00
c55d969d5f M #-: Add default zone in 6.6 (#2434) 2023-01-05 13:51:15 +01:00
b13d06d7da F #6039: Reset monitoring timers (#2430)
(cherry picked from commit 3de39f9340)
2023-01-04 16:15:17 +01:00
bec6e0b469 B #5916: Fix onevm instantiate --persistent (#2428)
(cherry picked from commit 0fe9eac8b5)
2023-01-04 16:13:00 +01:00
269ca271d2 B #6022: Fix lock override and --all flag (#2427)
* This commit syncs oned and API specification for the ALL flag. The internal defines were not consistent with the API specification.

(cherry picked from commit 82d2191dfd)
2023-01-04 15:55:02 +01:00
b7b662b5ff M #-: Point provision repo role to OpenNebula 6.6.0 release-6.6.0 2022-12-21 10:34:25 +01:00
df44921a19 L #-: Minor linting change 2022-12-20 19:11:46 +01:00
b25274323e M #-: Trim VM template error message (#2424) 2022-12-19 15:21:12 +01:00
a4d9a3e374 M #~: translates (#2422) 2022-12-16 09:59:21 +01:00
238b5d704c M #-: Bump version to 6.6.0 2022-12-15 18:07:06 +01:00
a9b528cf84 B #6037: there are no dedicated backup DS drivers
(cherry picked from commit 750909f9b1)
release-6.5.90
2022-12-15 15:18:56 +01:00
8e1607e276 M #-: Add +x to driver action (backup - rsync) 2022-12-15 12:15:28 +01:00
571ed63dde B #6012: Do not remove all images on cleanup
- Missing check (fails when no images are registered)
- Added additional check for image_name not empty
2022-12-14 12:20:15 +01:00
a07a2cf97a M #-: rsync/stat script to work with all Ruby versions 2022-12-14 11:30:32 +01:00
595d73ba32 B #6040: fix link backup in vm info (#2421) 2022-12-13 17:19:01 +01:00
c51c35f810 F #5681: disk source element depends on disk type
following the domain XML definition https://libvirt.org/formatdomain.html
```
_source_
  Representation of the _disk source_ depends on the _disk type_ attribute value as follows:
  _file_
    The _file_ attribute specifies the fully-qualified path to the file holding the disk. Since 0.0.3
  _block_
    The _dev_ attribute specifies the fully-qualified path to the host device to serve as the disk. Since 0.0.3
```

Also, I took the liberty to remove the _Image::FILE_ case form the switch as it is the default one.

(cherry picked from commit 83404b5ec2)
2022-12-13 16:40:44 +01:00
4a2f8193a8 Revert "B #5801: Correctly terminate oned, if init fails (#2396)" (#2420)
This reverts commit 0221dc187a.
2022-12-13 15:46:54 +01:00
f14b423e22 F OpenNebula/one#5516: add rsync config to oned.conf (#2419)
Signed-off-by: Neal Hansen <nhansen@opennebula.io>
2022-12-12 20:22:13 +01:00
d7dfbd8b8c M #-: Fix 956af4 (wrong variable reference used) 2022-12-12 18:35:31 +01:00
4df86811b9 F #5681: Support for block context devices
Add support for block context CD's. System Datastore can include
CONTEXT_DISK_TYPE to specify the type (FILER or BLOCK) of the context
CD's

co-authored-by: Victor Palma
2022-12-12 16:49:25 +01:00
8689d5d49b B #6034 Fix log rotation (#2415)
* Revert "F #5328: Update logrotate behavior to avoid long restarts (#2275)". This reverts commit 6b1127f180.

* B #5328: Don't wait for log compressing
* B #6034: Don't overwrite logs

While having already `copytruncate` in logroate we don't need to implement signaling and re-openning files.

* L #-: Linting
2022-12-12 11:50:54 +01:00
6aab99ec2e L #-: Linting for rsync driver 2022-12-12 11:10:25 +01:00
8e9f48d44d B #5939: Add PLAIN/provision_type in oneprovision (#2414) 2022-12-12 11:02:48 +01:00
956af4f8a9 M #-: Reset VM backups if the current active backup image is deleted 2022-12-12 10:51:01 +01:00
3beca2d9d3 B #5640: Fix NETRX and NETTX for accounting (#2417) 2022-12-12 09:28:46 +01:00
d0980991a4 F OpenNebula/one#5516: fix stat script (#2416)
Signed-off-by: Neal Hansen <nhansen@opennebula.io>
2022-12-09 20:16:13 +01:00