1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-25 06:03:36 +03:00

20254 Commits

Author SHA1 Message Date
Pavel Czerný
8e7ff2ed36
F #6103: Last set of CppCheck issues (#2481)
(cherry picked from commit 4a9662a5510fb238ff77086ce554845a26d59a38)
(cherry picked from commit d7b7303f8f8c040e3018f77c5f4136b1596b700e)
2023-02-07 08:56:52 +01:00
Jan Orel
81512242e3
B #6064: Replace dicttoxml by dict2xml (#2482) 2023-02-07 08:26:45 +01:00
Jan Orel
41ed5fa477
B #6078: intoduce retry_if/retry_if_no_error (#2478) 2023-02-07 08:16:16 +01:00
Ruben S. Montero
88cf47e401
L #5591: Linting (line-length)
(cherry picked from commit 496ac20e0ad9b048461d8b14934777fd5b139777)
2023-02-07 07:48:32 +01:00
Victor Palma
8aae36824d
F #5591: Custom role attributes in oneflow added (#2465)
Custom attributes have been added at the role level.
In this way, roles can be individually customized during instantiation.
Added parameters:
- custom_attrs: contains user-defined custom attributes.
- custom_attrs_values: contains the values of the custom_attrs.
  In case of overlapping role and service level attributes, role level attributes will take precedence.

Example:
roles: [
    {
        "name": "role_1",
        ...
        "custom_attrs": {
            "MEMORY": "M|range|memory (mb)|100..500|200",
            "DISK_SIZE": "M|range|disk size (mb)|100..500|250"
        }
    }
]

In order to be used from CLI, the vm_template_contents in the service template must be filled manually.

(cherry picked from commit 90aac4b5f3e4a98b3a5064da95d4385057c9170c)
2023-02-07 07:48:31 +01:00
Jorge Miguel Lobo Escalona
2b4d472a4d
M #~: add user and password when import marketapp (#2483) 2023-02-06 19:47:16 +01:00
Jan Orel
5318bb8a6f
B #-: Use new repo2.key in oneprovision (#2480) 2023-02-03 13:19:25 +01:00
Pavel Czerný
6ee3a5ef5b
F #6103: More CppCheck issues solved (#2477)
(cherry picked from commit 3fd059c54307722d484ea3d4b6f245bbe799978a)
2023-02-02 12:54:45 +01:00
Frederick Borges
da30d27e45
B OpenNebula/one#6106: Show IPv6 on FSunstone (#2474) 2023-02-01 16:53:29 +01:00
not24get
7b34220c89
F #1289 Add support for nested group in LDAP
This permit to use the the LDAP_MATCHING_RULE_IN_CHAIN for nested group membership

Here is "ldap_auth.conf" config related 👍

    :group_field: 'member:1.2.840.113556.1.4.1941'
    :rfc2307bis: false

This fix #1289

Signed-off-by: Alexandre ROTA <alex@not24get.fr>
(cherry picked from commit 608189fb756e0b039aed2cf7bc9874c527022d9c)
2023-02-01 10:31:43 +01:00
Jorge Miguel Lobo Escalona
880f1adc6e
M #~: remove external (#2473) 2023-01-31 17:54:10 +01:00
Pavel Czerný
a5c57b69b3
M #-: Add CppCheck to smoke tests (#2464) 2023-01-31 13:46:09 +01:00
Tino Vázquez
da57aa1349
L #-: Deprecate File.exists? 2023-01-31 13:45:40 +01:00
Pavel Czerný
6421160a68
B #5913: Check if CLI *.yaml exists (#2469)
(cherry picked from commit f0c01ca2380ef523094453d50d2f512557eaa3f6)
2023-01-31 13:34:45 +01:00
Frederick Borges
62cdf5b946
B #6027: Fix numa usage on FSunstone (#2471) 2023-01-31 13:07:02 +01:00
Frederick Borges
9a1886f9bb
B #6027: Fix numa usage on RSunstone (#2470) 2023-01-31 13:05:26 +01:00
Pavel Czerný
8f99e99236
B #6068: Fix authorization for onevm disk-resize (#2468)
Also fix error code for onevm create-chart

(cherry picked from commit 18a4796ea16704966ba34a04f08dbb2068479ab8)
2023-01-31 12:27:31 +01:00
Ruben S. Montero
3c9bfecbd1
Revert "B #5909: Add /usr/sbin/ipset to sudoers (#2466)"
This reverts commit 8a0d892f398065a9b4ccbd4caf0c3437ed1856c5.
2023-01-30 13:49:59 +01:00
Frederick Borges
e0e3f9cc41
B #6100: Add support to https_proxy (#2467) 2023-01-30 11:54:26 +01:00
Jan Orel
8a0d892f39
B #5909: Add /usr/sbin/ipset to sudoers (#2466)
(cherry picked from commit f96338c0c871034486ffc6d94edca7649fc02117)
(cherry picked from commit 1cc63325364af22eec72a9f522deca8ca48a8182)
2023-01-30 11:43:28 +01:00
Jan Orel
1eb8e75c46
B #6090 Pass $FORMAT to mkfs_command (#2462) 2023-01-27 18:42:05 +01:00
Frederick Borges
dd9620f92e
B #~: Add missing changes to files tab (#2463) 2023-01-27 14:31:20 +01:00
Pavel Czerný
d7f1e1e0fc
B #6085: Fix trim of VNC/SPICE password (#2460)
(cherry picked from commit 726a6a854751f37d130b8516197978707a8dd202)
2023-01-26 10:03:09 +01:00
Frederick Borges
85832d9089
B #6096: Fix typo causing errors (#2459) 2023-01-25 11:25:16 +01:00
Frederick Borges
7c514bd401
M #~: Enhance issue templates (#2458) 2023-01-25 10:45:01 +01:00
Tino Vázquez
ccf9acafbb
L #-: Remove unneeded parenthesis
(cherry picked from commit 2ee4a31f395e20927ce6d85084e23c7968038a2e)
2023-01-24 11:38:17 +01:00
Frederick Borges
6c42dfed9e
F #6057: Add I/O limit options to backup DS (#2456) 2023-01-24 11:20:20 +01:00
Ruben S. Montero
dff7a2ca16
F #6057: Make it comptible with RHEL 8 systemd version
systemd-run fails with: unrecognized option '--same-dir' in RHEL8.
Removed the option.
2023-01-22 15:40:03 +01:00
Ruben S. Montero
9489d0aac2
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.

(cherry picked from commit 276f093073cb732e011c63d3fda381a0b674d857)
2023-01-21 14:08:43 +01:00
Jorge Miguel Lobo Escalona
05d17aa6b3
B #6081: No render when have selected a vm (#2452) 2023-01-20 12:49:08 +01:00
Frederick Borges
d42ee8a1e0
B #6086: Fix fs freeze value when QEMU Agent is selected (#2455)
Signed-off-by: Frederick Borges <fborges@opennebula.io>
2023-01-19 11:23:14 +01:00
Pierre Lafievre
462e888259
F #6054: GOCA - make AR representation more generic
Signed-off-by: Pierre Lafievre <pierre.lafievre@iguanesolutions.com>
(cherry picked from commit afc90f70fe54f0f2b63df147fe23662faa2c9732)
2023-01-19 10:31:23 +01:00
Raf Lopez
647a4851b8
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 278b14930bf1409f4dc5c844bad47e359240f3ca)
2023-01-19 10:30:36 +01:00
Neal
86160b66e7
B #-: Fixing bug with nested quotation marks when restoring backup (#2454)
Signed-off-by: Neal Hansen <nhansen@opennebula.io>
2023-01-19 09:11:08 +01:00
Tino Vázquez
61b56b0275
Revert "M #-: Prevent change in conf file"
This reverts commit 990830982e1e03952415dca20c4412ee58720a90.
2023-01-17 10:52:45 +01:00
Tino Vázquez
990830982e
M #-: Prevent change in conf file 2023-01-17 10:52:08 +01:00
Jorge Miguel Lobo Escalona
8b041fd06f
B-6081: fix other tables (#2448) 2023-01-16 17:52:11 +01:00
Jorge Miguel Lobo Escalona
04f22a6b3d
B #6081: fix get current content when select record in datatable (#2447) 2023-01-16 13:40:52 +01:00
Tino Vázquez
46cca6d6cd
L #-: Remove unneeded exceptions 2023-01-10 13:13:46 +01:00
Frederick Borges
39f6d2765c
F #5998: Bigger label filter on FSunstone (#2441) 2023-01-10 13:05:16 +01:00
Frederick Borges
acba29efc2
B #6061: Fix issue removing AR on vnet template (#2439) 2023-01-10 12:15:24 +01:00
Ruben S. Montero
0784385caf
B #6027: Fix schema for host.xsd 2023-01-09 18:52:40 +01:00
Pavel Czerný
0696693531
B #6027: Parse host NUMA monitoring (#2440)
Co-authored-by: Ruben S. Montero <rsmontero@opennebula.org>
2023-01-09 18:29:09 +01:00
Jorge Miguel Lobo Escalona
bc0caa82f3
M #~: Update lint for Bump year 2023 (#2442) 2023-01-09 13:10:12 +01:00
Tino Vázquez
3376afdaf0
M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
Neal
1035c6af9c
B #6073: add user for make_dst_path action (#2438)
Signed-off-by: Neal Hansen <nhansen@opennebula.io>
2023-01-06 19:05:09 +01:00
Jorge Miguel Lobo Escalona
4f71e1f266
M #-: Add default zone in federation (#2433) 2023-01-05 14:35:16 +01:00
Frederick Borges
18f9137de2
B #6051: Fix FireEdge endpoints should not be case sensitive (#2432) 2023-01-05 14:29:46 +01:00
Frederick Borges
d6b89b6fe2
F #5974: FireEdge Sunstone Schedule Actions improvements (#2431) 2023-01-05 14:24:46 +01:00
Frederick Borges
a1e9bcd675
B #6067: Fix disk RECOVERY_SNAPSHOT_FREQ on instantiate (#2429) 2023-01-05 14:20:53 +01:00