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

20186 Commits

Author SHA1 Message Date
Frederick Borges
ee58f310f2 B OpenNebula/one#6144: Fix scheduled action leases bug (#2512)
preventing to show VM information

(cherry picked from commit 5e80b63356136b0a12fa7d626ff4e771d1c4a54e)
2023-02-20 16:03:39 +01:00
Jan Orel
a01c641471
F #6116: Bump Ceph to Quincy in oneprovison (#2508)
* Bump Ceph to Quincy in oneprovison
* Ceph provision: bluefs_buffered_io = false

(cherry picked from commit e79120f828d52275ef2e4f91be212c1559226a04)
2023-02-17 09:51:10 +01:00
Frederick Borges
0cf8712cc2 M #~: Allow VNC when VM is in BACKUP (#2511)
(cherry picked from commit fa8ddeeebb9bf64df08c2ee4d7a9f4bc21401a85)
2023-02-16 18:16:37 +01:00
Frederick Borges
6a8938b7b0 M #~: Allow VNC when VM is in BACKUP (#2510)
(cherry picked from commit c1f48a4c683c8ee2b5daef637351867b57a8f641)
2023-02-16 18:15:10 +01:00
Jorge Miguel Lobo Escalona
d1fa56ff34 B #6088: sunstone reset backup dialog (#2509)
(cherry picked from commit 110347420f7931413eb72bc2bbdafb943cad20ac)
2023-02-16 18:12:02 +01:00
Ruben S. Montero
377db9653e
F #6029: Signal increment flatten with an attribute
Extending the BACKUP state may lead to unneed wait times to perform VM
management operations

Fixes reset of backup chains for poweroff state
2023-02-16 16:12:35 +01:00
Jorge Miguel Lobo Escalona
b38c816ae3 B #6135: remove duplicates values in Machine type and CPU model (#2504)
(cherry picked from commit 287a873de00a2c02cef830433c2caa78f6a61e83)
2023-02-16 12:31:45 +01:00
Frederick Borges
7591cf0dd3 F OpenNebula/one#6029: Add NAME and INCREMENT_ID on FSunstone (#2505)
(cherry picked from commit ef6faaa0cdf9a72b65830e6e01441099c8c7daa7)
2023-02-16 12:31:40 +01:00
Ruben S. Montero
f47bfa4a5c
M #-: Set grace period to setup backup slice
(cherry picked from commit b067ea9d8baa12777be5ef32f7f735a637c27cf9)
2023-02-16 11:45:54 +01:00
Ruben S. Montero
3bbb9c7ffc
M #-: Fix SSH configuration options (tm_action.rb) 2023-02-16 11:33:52 +01:00
Frederick Borges
5095d67b48
F OpenNebula/one#6029: Fix inputs Ruby Sunstone (#2506)
(cherry picked from commit 5bf504d71f8e0c9a845a925891f4728ad4a9ec6f)
2023-02-15 18:02:20 +01:00
Pavel Czerný
3a4c0d8293
M #-: Fix CppCheck issues in master (#2499)
(cherry picked from commit 7f74db189e3a18cf19ce8d35c72f39303e3b51a1)
2023-02-14 17:36:19 +01:00
Michal Opala
694ff377aa
F #6029: Create Restic repo per VM (#2495) 2023-02-14 17:10:32 +01:00
Jorge Miguel Lobo Escalona
20f6c39a8a
B #5903: add recover switch in commit modal (#2502)
(cherry picked from commit 95342c3fa50c083d7c2ba1fa7025df71e22c8858)
2023-02-14 15:59:30 +01:00
Ruben S. Montero
e6c7c51c30
F #6029: Extend BACKUP state to include increment_flatten action
This prevents a race condition on when flatten and backup actions are triggered
simultaneously.
2023-02-14 13:25:42 +01:00
Pavel Czerný
a688801ef4
M #-: Fix oned build (#2501)
(cherry picked from commit 941207f85bee847d67773bcec72f2128b64ed2e9)
2023-02-14 10:49:27 +01:00
Pavel Czerný
aa1775616b
F #6103: CppCheck version 2.10 - solved issues (#2492)
* Update smoke test checkout action

(cherry picked from commit 466d336d7e264b22e19576e42e39252921f1f0a6)
2023-02-14 09:51:21 +01:00
Pavel Czerný
9cb1bbde27
B #6114: Fix NETTX and NETRX host monitoring (#2494)
(cherry picked from commit eecbfe351ca4f995a45b0e55fe61cb148a7f3aa6)
2023-02-13 17:33:23 +01:00
Jan Orel
2efd46f163
B #-: Don't fail docker build if resolv.conf is RO (#2486)
(cherry picked from commit dbf1e882b14d0b0b49b0ad41a2987ab628047043)
2023-02-13 17:21:09 +01:00
Jan Orel
1c938fe928
B #6078: intoduce retry_if/retry_if_no_error (#2478) (#2497)
(cherry picked from commit bb75e5fd29012be74d4a7333022e923bbe40e4f7)
2023-02-13 17:19:23 +01:00
Jorge Miguel Lobo Escalona
b94a12d8d0
B #5903: fix vms datatable in securyty groups (#2496)
(cherry picked from commit a1d807710e0c187e7f72daf51145c80de1f17b75)
2023-02-13 12:46:13 +01:00
Tino Vázquez
b2118b74a4
L #-: Linting for new rubocop version
(cherry picked from commit 4fe742b86330b1d10e95fe9c57a7f7ae567ae0b9)
2023-02-10 11:12:47 +01:00
Frederick Borges
c559a9c6f9
F OpenNebula/one#6029: Add NAME and INCREMENT_ID (#2493)
to restore dialog

(cherry picked from commit 50cd668765574f2239999538ed102a5e72742c14)
2023-02-10 10:56:22 +01:00
Ruben S. Montero
940c1d7d63
F #6029: Prevent backup removal VM is in BACKUP
Some backup drivers may not allow delete (forget) operations while an
active backup is being performed. This commits fails the
one.image.delete API call in that case.

A new configuration attribute to describe the related driver behavior has been
added CONCURRENT_FORGET for DS_MAD_CONF.
2023-02-09 19:37:00 +01:00
Jan Orel
81648c449f
Revert "F #5591: Custom role attributes in oneflow added (#2465)" (#2491)
This reverts commit 8aae36824d904f5a3e1d132525a6320761cbfc5d.

(cherry picked from commit b82ca031a70ce2310f7d5f68dc42e298c2d0f2f3)
2023-02-09 11:02:11 +01:00
Frederick Borges
bf3f646424
M #~: Modify vcpu decimal text (#2490)
(cherry picked from commit fa1c9f1348a223332067baa58ec80985a10ddfc8)
2023-02-08 18:49:02 +01:00
Jorge Miguel Lobo Escalona
6daac5193c
M #~: fix info sec group when no exist rule (#2489)
(cherry picked from commit 68b2b985fbc4d3b3de5afc6257579317b8ea78c4)
2023-02-08 18:40:32 +01:00
Frederick Borges
26e18f6bdc
B OpenNebula/one#6106: Show all IPs from nic on FSunstone (#2487)
(cherry picked from commit 65e1549d9290b53c1e577d1a3128ce79f3a6804f)
2023-02-08 18:40:22 +01:00
Pavel Czerný
56f090fe4d
B #6113: Fix DB encoding for onedb upgrade (#2488)
(cherry picked from commit 0b958f46b472d3af903218b5ecc1a0331f99bc66)
2023-02-08 13:13:19 +01:00
Ruben S. Montero
f376c3580c
M #-: Improve resilience of prebackup step
- Keep last 2 checkpoints to be able to retry failed operations
- Bitmap are managed in an equivalent way for RUNNING and POWEROFF VMs.

(cherry picked from commit d008ae343f771e6d2ee9ffbad024c551f71b2164)
2023-02-07 18:34:12 +01:00
Ruben S. Montero
7917df5046
M #-: Fix Debian10 Compilation 2023-02-07 15:52:13 +01:00
Ruben S. Montero
52b34e4333
M #-: Fix quotas for backup callback 2023-02-07 14:11:43 +01:00
Tino Vázquez
f0d462649d
L #-: Change percentage for brackets
in ruby word array definitions

(cherry picked from commit 27a97b4ea6c7e97c2657c9693d06ea23d61821be)
2023-02-07 13:28:27 +01:00
Ruben S. Montero
e83ce716bb
F #6029, #6074: Retention and restore opetions for incremental backups
* Introduce support to follow KEEP_LAST for incremental backups.
  - New increment_flatten action added for backup datastores.
  - increment_flatten will consolidate KEEP_LAST increments into the
    current first increment in the chain.
  - increment_flatten MUST return the new chain (inc1:source1,...) and size
    of the new first increment (FULL) in the chain.

* Downloader logic for restore has been extracted from downloader.sh to
  reuse the increment flatten logic. A new command restic_downloader.rb
  process restic:// pseudo-urls.

* Restore process uses two new attributes to customize the restore
  process:
  - NAME to be used as base name for images and VM Template
  - INCREMENT_ID to restore disks from a given increment (not always the
    last one)

* Common logic has been added to BackupImage class (backup.rb)

* Includes the following fixes:
  - Fix when increment includes blocks larger than max qemu-io request size
  - Fix IMAGE counter for quotas on backup images
  - Fix rsync restore NO_IP / NO_NIC attributes

TODO:
* Mimic increment_flatten logic and restore images on the backup server
* Suntone restore options

co-authored-by:Michal Opala <mopala@opennebula.io>
2023-02-07 13:17:34 +01:00
Tino Vázquez
cbcf309979
L #-: Enforce brackets for ruby word arrays 2023-02-07 12:57:45 +01:00
Pavel Czerný
c70a239033
M #-: Fix CppCheck issues in 6.6 branch (#2485) 2023-02-07 12:33:31 +01:00
Jorge Miguel Lobo Escalona
c9a4340b0a
M #~ lint-fix fireedge (#2484)
(cherry picked from commit ef5d0c60d433865c356d6c56b5c995f2b5e3aa81)
2023-02-07 11:26:04 +01:00
Pavel Czerný
d7b7303f8f
F #6103: Last set of CppCheck issues (#2481)
(cherry picked from commit 4a9662a5510fb238ff77086ce554845a26d59a38)
2023-02-07 08:54:35 +01:00
Jan Orel
dd01710590
B #6078: intoduce retry_if/retry_if_no_error (#2478)
(cherry picked from commit 41ed5fa477adabae7f51b96b1b42fa77383fdc8d)
2023-02-07 08:16:43 +01:00
Ruben S. Montero
496ac20e0a
L #5591: Linting (line-length) 2023-02-07 07:47:29 +01:00
Victor Palma
90aac4b5f3
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.
2023-02-07 07:41:03 +01:00
Jorge Miguel Lobo Escalona
c10d4ea5e5
M #~: add user and password when import marketapp (#2483)
(cherry picked from commit 2b4d472a4dae5a5c27fd5752183e550b63dae429)
2023-02-06 19:47:47 +01:00
Jan Orel
e152160a7b
B #-: Use new repo2.key in oneprovision (#2480)
(cherry picked from commit 5318bb8a6f595ae594532dd04827673afffc946f)
2023-02-03 13:20:26 +01:00
Pavel Czerný
6b5f78fc1a
F #6103: More CppCheck issues solved (#2477)
(cherry picked from commit 3fd059c54307722d484ea3d4b6f245bbe799978a)
2023-02-02 12:56:03 +01:00
Frederick Borges
7af73ca851
B OpenNebula/one#6106: Show IPv6 on FSunstone (#2474)
(cherry picked from commit da30d27e45b858e9c29a3458e49ec857e03deff2)
2023-02-01 16:54:17 +01:00
not24get
2c4e7be77e
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:32:08 +01:00
Jorge Miguel Lobo Escalona
31a47e37a7
M #~: remove external (#2473)
(cherry picked from commit 880f1adc6e63f0eb3db33c7179d226d58d943f14)
2023-01-31 17:54:27 +01:00
Tino Vázquez
1086764446
L #-: Deprecate File.exists?
(cherry picked from commit da57aa1349354579b8e8909d59b781af610b0a62)
2023-01-31 13:47:12 +01:00
Pavel Czerný
d37104974e
M #-: Add CppCheck to smoke tests (#2464)
(cherry picked from commit a5c57b69b37ffae93468127021ea953e1498aaea)
2023-01-31 13:46:20 +01:00
Pavel Czerný
aeb9b15ea0
B #5913: Check if CLI *.yaml exists (#2469)
(cherry picked from commit f0c01ca2380ef523094453d50d2f512557eaa3f6)
2023-01-31 13:34:31 +01:00