1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-31 01:47:11 +03:00

20401 Commits

Author SHA1 Message Date
Jorge Miguel Lobo Escalona
7c38bd3493
B #6142: Add default zone in federation (#2514) 2023-02-21 18:09:24 +01:00
Ruben S. Montero
ebc4070b10
L #-: Line too long 2023-02-21 18:02:01 +01:00
Jorge Miguel Lobo Escalona
56447e2ec3
B #6142: Add default zone fireedge (#2515) 2023-02-21 17:48:14 +01:00
Neal
3363a7be8f
F #6044 + #6048: Improving backup attribute filtering (#2476)
* Removed DEV_PREFIX from DISK filter list
* Added OS/UUID to prevent conflicts
* Moved MAC from NIC filtered list to no_ip option

Signed-off-by: Neal Hansen <nhansen@opennebula.io>
Co-authored-by: Ruben S. Montero <rsmontero@opennebula.org>
2023-02-21 17:30:19 +01:00
Michal Opala
1458fd7ca4
F #6029: Add rsync incremental backups (#2516)
* Fix rsync datastore monitoring
* Add increment flatten for rsync backups
* Fix/Refactor rsync restore action handler
* Fix/Refactor rsync rm action handler
* Add dedicated downloader code for rsync

(cherry picked from commit f4eee21924ebb7d97239064afd3e35778a76eb83)
2023-02-21 17:19:35 +01:00
Jan Orel
7ae44ec4ca
M #-: Define ansible version in provision yaml (#2513) 2023-02-21 17:11:57 +01:00
Jan Orel
61f254bd5a
B #-: Add aliases:true for newer psych (#2507)
https://bugs.ruby-lang.org/issues/17866
https://stackoverflow.com/questions/71191685/visit-psych-nodes-alias-unknown-alias-default-psychbadalias
2023-02-21 17:10:42 +01:00
Ruben S. Montero
9a3c11c1f4
F #6029: Sparsify backup file after flatten files
The result of a flatten operation can be optionally sparsify to free
space. This needs 'virt-sparsify' tool from libguestfs package.

Note: if not present the sparsify step will be skipped.
(cherry picked from commit de10e618c92f480acb589f690b4366ec14b610a8)
2023-02-21 17:00:55 +01:00
Tino Vázquez
4102a35a17 L #-: Break long comment line 2023-02-20 16:09:25 +01:00
Frederick Borges
5e80b63356
B OpenNebula/one#6144: Fix scheduled action leases bug (#2512)
preventing to show VM information
2023-02-20 16:03:23 +01:00
Jan Orel
e79120f828
F #6116: Bump Ceph to Quincy in oneprovison (#2508)
* Bump Ceph to Quincy in oneprovison
* Ceph provision: bluefs_buffered_io = false
2023-02-17 09:50:26 +01:00
Frederick Borges
fa8ddeeebb
M #~: Allow VNC when VM is in BACKUP (#2511) 2023-02-16 18:16:08 +01:00
Frederick Borges
c1f48a4c68
M #~: Allow VNC when VM is in BACKUP (#2510) 2023-02-16 18:14:51 +01:00
Jorge Miguel Lobo Escalona
110347420f
B #6088: sunstone reset backup dialog (#2509) 2023-02-16 18:11:31 +01:00
Ruben S. Montero
238e520bc9
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

(cherry picked from commit 377db9653e5c4e022f02d8edb0764f7e874a0f2b)
2023-02-16 16:13:00 +01:00
Jorge Miguel Lobo Escalona
287a873de0
B #6135: remove duplicates values in Machine type and CPU model (#2504) 2023-02-16 12:31:33 +01:00
Ruben S. Montero
b067ea9d8b
M #-: Set grace period to setup backup slice 2023-02-16 11:45:00 +01:00
Ruben S. Montero
381c101a70
M #-: Fix SSH configuration options (tm_action.rb)
(cherry picked from commit 3bbb9c7ffc1abe508496f1f94ee405cf0eab73d9)
2023-02-16 11:34:27 +01:00
Frederick Borges
ef6faaa0cd
F OpenNebula/one#6029: Add NAME and INCREMENT_ID on FSunstone (#2505) 2023-02-15 18:09:46 +01:00
Frederick Borges
5bf504d71f
F OpenNebula/one#6029: Fix inputs Ruby Sunstone (#2506) 2023-02-15 18:02:06 +01:00
Michal Opala
063789c1d6
F #6029: Create Restic repo per VM (#2495)
(cherry picked from commit 694ff377aac5c886cf98c1533c93ac7bbfc4a3ed)
2023-02-14 17:11:05 +01:00
Jorge Miguel Lobo Escalona
95342c3fa5
B #5903: add recover switch in commit modal (#2502) 2023-02-14 15:58:46 +01:00
Ruben S. Montero
db3b920d8b
F #6029: Extend BACKUP state to include increment_flatten action
This prevents a race condition on when flatten and backup actions are triggered
simultaneously.

(cherry picked from commit e6c7c51c307edea4b138b22e6af326b180981cba)
2023-02-14 13:27:47 +01:00
Pavel Czerný
03c28c1e51
M #-: Fix oned build (#2501)
(cherry picked from commit 941207f85bee847d67773bcec72f2128b64ed2e9)
2023-02-14 10:49:39 +01:00
Pavel Czerný
03add6d9ac
F #6103: CppCheck version 2.10 - solved issues (#2492)
* Update smoke test checkout action

(cherry picked from commit 466d336d7e264b22e19576e42e39252921f1f0a6)
2023-02-14 09:51:04 +01:00
Jorge Miguel Lobo Escalona
5b8bafcd6e
M #~: add views security groups master (#2500) 2023-02-13 18:36:03 +01:00
Pavel Czerný
7f74db189e
M #-: Fix CppCheck issues in master (#2499) 2023-02-13 17:55:50 +01:00
Pavel Czerný
265df5169d
B #6114: Fix NETTX and NETRX host monitoring (#2494)
(cherry picked from commit eecbfe351ca4f995a45b0e55fe61cb148a7f3aa6)
2023-02-13 17:33:42 +01:00
Jan Orel
dbf1e882b1
B #-: Don't fail docker build if resolv.conf is RO (#2486) 2023-02-13 17:20:12 +01:00
Jan Orel
bb75e5fd29
B #6078: intoduce retry_if/retry_if_no_error (#2478) (#2497) 2023-02-13 17:18:41 +01:00
Jorge Miguel Lobo Escalona
a1d807710e
B #5903: fix vms datatable in securyty groups (#2496) 2023-02-13 12:45:56 +01:00
Tino Vázquez
4fe742b863
L #-: Linting for new rubocop version 2023-02-10 11:12:19 +01:00
Frederick Borges
50cd668765
F OpenNebula/one#6029: Add NAME and INCREMENT_ID (#2493)
to restore dialog
2023-02-10 10:56:00 +01:00
Ruben S. Montero
c68c81a86e
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.

(cherry picked from commit 940c1d7d637141c75226b1545f7cda3fd27feee8)
2023-02-09 19:40:44 +01:00
Jan Orel
b82ca031a7
Revert "F #5591: Custom role attributes in oneflow added (#2465)" (#2491)
This reverts commit 8aae36824d904f5a3e1d132525a6320761cbfc5d.
2023-02-09 10:58:02 +01:00
Frederick Borges
fa1c9f1348
M #~: Modify vcpu decimal text (#2490) 2023-02-08 18:48:50 +01:00
Jorge Miguel Lobo Escalona
68b2b985fb
M #~: fix info sec group when no exist rule (#2489) 2023-02-08 18:39:53 +01:00
Pavel Czerný
934fd8678a
B #6113: Fix DB encoding for onedb upgrade (#2488)
(cherry picked from commit 0b958f46b472d3af903218b5ecc1a0331f99bc66)
2023-02-08 13:13:35 +01:00
Frederick Borges
65e1549d92
B OpenNebula/one#6106: Show all IPs from nic on FSunstone (#2487) 2023-02-08 12:05:19 +01:00
Ruben S. Montero
d008ae343f
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.
2023-02-07 18:29:13 +01:00
Ruben S. Montero
304199ac80
M #-: Fix Debian10 Compilation
(cherry picked from commit 7917df5046b67490aec99179fd10a4cc707558dd)
2023-02-07 15:52:47 +01:00
Ruben S. Montero
0f5d9bcf77
M #-: Fix quotas for backup callback
(cherry picked from commit 52b34e43330cee077cc6903637c5137480212cf1)
2023-02-07 14:12:19 +01:00
Tino Vázquez
fae34eee26
L #-: Change percentage for brackets
in ruby word array definitions

(cherry picked from commit 27a97b4ea6c7e97c2657c9693d06ea23d61821be)
(cherry picked from commit f0d462649d4444cbd26a6240d1847477190d2647)
2023-02-07 13:28:47 +01:00
Ruben S. Montero
8cb3a360b8
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:19:03 +01:00
Tino Vázquez
26c76a7307
L #-: Enforce brackets for ruby word arrays
(cherry picked from commit cbcf309979542ca1aa4fb980faf2c7a361de019f)
2023-02-07 12:57:56 +01:00
Pavel Czerný
19f18e2877
M #-: Fix CppCheck issues in 6.6 branch (#2485)
(cherry picked from commit c70a2390339d7820bf440899b8deed661a0b6f4e)
2023-02-07 12:34:04 +01:00
Jorge Miguel Lobo Escalona
ef5d0c60d4
M #~ lint-fix fireedge (#2484) 2023-02-07 11:24:00 +01:00
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