1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-22 13:33:52 +03:00
Commit Graph

36 Commits

Author SHA1 Message Date
Tino Vázquez
05d147c524
M #-: Bump version 6.10.0
Also bump copyright year to 2024
2024-07-29 14:27:11 +02:00
Pavel Czerný
2fe396ae15
L #-: Add Astyle linting
* Add AStyle to smoke tests
* Format C++ files using AStyle
2024-06-03 11:40:24 +02:00
Ruben S. Montero
156cd04ba5
F OpenNebula/one#6265: Delete of snapshots in the middle of the chain
- Add suport for delete snapshots in the middle of the chain in qcow2
  (ALLOW_ORPHANS=NO). Example, snapshot 2 below:
                     0 <- 1 <- 2 <- 3

- It supports removing the last snapshot and active (blockpull) and
  first one (snapshot 0). The first snapshot cannot be deleted in
  persistent images because of the underlying link setting.

- Snapshots are deleted by blockcommit. For example to delete 2, 3 is
  committed into 2:
                    0 <- 1 <- 2: (2+3)
  A new file 3.current is created in the filesystem to look for the
  actual file name supporting snapshot 3.

- qcow2/shared operations snap_delete, snap_revert and cpds
  (disk-saveas) has been updated to react to the .current files

- The kvm/deploy action has been updated to resolve links in source file
  attributes. This is needed so the <backingStore> of the libvirt domain
  does not contain the sysmlinks that changes on the revert/create
  operations.

- The kvm/migrate action also includes a minor modification to resolv
  the VM disk

- Snapshots with more than 1 child (or their relatives) cannot be deleted to not
  break backing chains.

- It has been found that the snap-delete operation in suspend state is
  insecure as the guest caches may not be updated accordingly. The
  operation is now not allowed in this state.

- The associated state has been removed from oned. It needs to be
  removed in CLI/Sunstone and APIs

- The changes are for VM disk-snapshots. A similar update can be made
  for images in the datastore/fs snap_delete action. This operation is
  not implemented in this commit.

Note: Output of xmllint may or may not include new lines when multiple matches
of an xpath expression occurs. Parsing of xmllint output adds additional new lines
to deal with different versions.
2023-07-20 19:04:28 +02:00
Tino Vázquez
3376afdaf0
M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
Tino Vazquez
f7d53e75ff M #-: Bump version 6.3.85 2022-04-07 19:49:58 +02:00
Jan Orel
86f174d469
F #5381: Join qcow2 + shared TM drivers (#1217) 2021-05-26 18:21:13 +02:00
Vlastimil Holer
096754b63f
M #-: Bump year to 2021 (#778) 2021-02-09 16:07:56 +01:00
Pavel Czerný
daaf132a43
F #4936: Remove 'using namespace std' from headers (#60) 2020-07-02 22:42:10 +02:00
Vlastimil Holer
f3c50a5d89
M #-: Year bump to 2020 (#4634) 2020-04-30 15:00:02 +02:00
Pavel Czerný
2c0416fdfa
B 3468: Don't automatically set active snapshot in mixed mode (#3497)
* L #-: use nullptr

* B #3468: Don't set active snapshot in mixed mode

(cherry picked from commit 95e24ab26c)
2019-07-10 19:38:04 +02:00
Vlastimil Holer
441cf1f7f9 Bump version to 5.7.85, year to 2019 2019-01-16 11:47:59 +01:00
Ruben S. Montero
6b6904a6c0 B #2052: Add mixed mode for ALLOW_ORPHANS to accomodate Ceph snapshots
dependencies
Co-authored-by: Christian González <cgonzalez@opennebula.systems>
2018-12-24 14:00:38 +01:00
Abel Coronado
2e410af2ce F #1147: Permit to rename disk snapshot names in Sunstone
Author:  Abel Coronado <acoronado@opennebula.systems>
 Author: Christian González <cgonzalez@opennebula.systems>
2018-10-11 17:04:07 +02:00
Ruben S. Montero
fbb1ba8d18 B #2189: Store NEXT_SNAPSHOT id in the snapshot metadata to not reuse ID's 2018-06-26 10:07:17 +02:00
Ruben S. Montero
0c2dcba089 B #1863: Added clear snapshot method. Removed all snapshot from image if snapshot_pool is empty.
(cherry picked from commit 9d2f439cb0)
2018-03-19 17:08:19 +01:00
Vlastimil Holer
a4c0447ccf Bump year to 2018 (#1623) 2018-01-02 18:27:37 +01:00
Ruben S. Montero
ebc165f70f F #4885: Enable TM mads to define orphan snapshots. This is control
under TM_MAD_CONF for each MAD. By default orphans are not allowed
2017-07-05 18:13:47 +02:00
Javi Fontan
8de979e42c Bump version 5.3.80 2017-05-25 16:07:35 +02:00
Javi Fontan
e1f6dee180 Update copyright notice year 2016-05-04 12:33:23 +02:00
Jaime Melis
e20fb5c4c4 Fix copyright in banners 2015-09-23 16:51:10 +02:00
Carlos Martín
b233487967 Feature #1727: Make snapshot size a long long, to be the same as image size 2015-07-23 12:44:17 +02:00
Carlos Martín
27e3ac289f Feature #3782: Rename disk snapshot tag to name 2015-07-09 13:13:07 +02:00
Carlos Martín
1411e4adbb Feature #3782: Use int instead of unsigned int for snapshot IDs 2015-07-01 17:57:26 +02:00
Ruben S. Montero
9964cb27e2 feature #3782: Quotas for single snapshot deletion 2015-06-17 17:45:37 +02:00
Ruben S. Montero
dac9db95d2 feature #3782: Size for snapshots (Virtual size). Renamed is* functions to is_* in VirtualMachine. 2015-06-16 23:59:12 +02:00
Ruben S. Montero
08356ed8c3 feature #3782: Flatten action for Images 2015-06-05 16:01:06 +02:00
Ruben S. Montero
0bbb99a240 feature #3782: Image are in LOCKED state while performing snapshot
operations
2015-06-05 13:32:00 +02:00
Ruben S. Montero
5510b56bd5 feature #3782: Delete operations are now two-phase. More checks on
disk-snapshots actions. Improve const-ness of Snapshot class
2015-06-04 20:17:45 +02:00
Ruben S. Montero
82eac63f12 feature #3782: Assignment copy constructor for Snapshots. Clear disk_id 2015-06-01 19:25:02 +02:00
Ruben S. Montero
c2bf13fe00 feature #3782: Copy constructor for Snapshots. Used to transfer the
snapshot lisk from VM disk to Image objects
2015-05-30 13:31:25 +02:00
Ruben S. Montero
036862b1ad feature #3782: Add children list. Rename PARENT_ID to PARENT 2015-05-26 13:52:40 +02:00
Ruben S. Montero
4f473093e6 feature #3782: Deal with snapshot id=0 2015-05-26 12:52:55 +02:00
Ruben S. Montero
a5c04b47e6 feature #3782: Re-design of revert operation. New action for drivers, and new state. 2015-05-26 11:24:34 +02:00
Ruben S. Montero
904b3248e9 feature #3782: Remove SOURCE and PARENT from snapshots. Drivers MUST
generate internal snapshot references from snapshot_id, parent_id
2015-05-21 14:12:35 +02:00
Ruben S. Montero
20fac744a7 feature #3782: Generate snapshot files for TransferManager 2015-05-20 17:48:58 +02:00
Ruben S. Montero
98f76cf3fe feature #3782: Create and Revert operations for Disk Snapshots. Core and
OCA levels
2015-05-19 18:41:23 +02:00