1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-23 17:33:56 +03:00
one/include
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
..
AclManager.h F #6103: More CppCheck issues solved (#2477) 2023-02-02 12:54:45 +01:00
AclRule.h F #6063: Backup Jobs for OpenNebula 2023-07-03 18:15:52 +02:00
ActionSet.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
AddressRange.h F #6103: CppCheck version 2.10 - solved issues (#2492) 2023-02-14 09:51:04 +01:00
AddressRangeInternal.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
AddressRangeIPAM.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
AddressRangePool.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
Attribute.h M #-: Add more build warnings, const version of vector_value method (#2534) 2023-03-08 15:52:20 +01:00
AuthManager.h F #6103: CppCheck version 2.10 - solved issues (#2492) 2023-02-14 09:51:04 +01:00
AuthRequest.h M #-: Add CppCheck to smoke tests (#2464) 2023-01-31 13:46:09 +01:00
BackupIncrements.h F #6029, #6074: Retention and restore opetions for incremental backups 2023-02-07 13:19:03 +01:00
BackupJob.h F #6063: Backup Jobs for OpenNebula 2023-07-03 18:15:52 +02:00
BackupJobPool.h F #6063: Backup Jobs for OpenNebula 2023-07-03 18:15:52 +02:00
Backups.h F #6063: Backup Jobs for OpenNebula 2023-07-03 18:15:52 +02:00
BitMap.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
CachePool.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
Callbackable.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
Client.h M #-: Add CppCheck to smoke tests (#2464) 2023-01-31 13:46:09 +01:00
Cluster.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
Clusterable.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
ClusterableSingle.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
ClusterPool.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
ClusterTemplate.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
Datastore.h F #6029: Prevent backup removal VM is in BACKUP 2023-02-09 19:40:44 +01:00
DatastorePool.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
DatastoreTemplate.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
DefaultQuotas.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
DispatchManager.h F #6030: Cancel backup operation 2023-03-16 13:11:27 +01:00
Document.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
DocumentPool.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
DocumentTemplate.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
Driver.h F #6103: More CppCheck issues solved (#2477) 2023-02-02 12:54:45 +01:00
DriverManager.h M #-: Add more build warnings, const version of vector_value method (#2534) 2023-03-08 15:52:20 +01:00
EnumString.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
ExecuteHook.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
ExtendedAttribute.h M #-: Add more build warnings, const version of vector_value method (#2534) 2023-03-08 15:52:20 +01:00
FedReplicaManager.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
Group.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
GroupPool.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
GroupTemplate.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
History.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
Hook.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
HookAPI.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
HookImplementation.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
HookLog.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
HookManager.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
HookPool.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
HookStateHost.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
HookStateImage.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
HookStateVirtualNetwork.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
HookStateVM.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
Host.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
HostMonitoringTemplate.h B #6027: Parse host NUMA monitoring (#2440) 2023-01-09 18:29:09 +01:00
HostPool.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
HostShare.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
HostShareCapacity.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
HostShareDatastore.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
HostShareNUMA.h F #6185: Support huge pages without CPU pinning 2023-04-24 20:45:45 +02:00
HostSharePCI.h F #6103: More CppCheck issues solved (#2477) 2023-02-02 12:54:45 +01:00
HostTemplate.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
Image.h F #6029, #6074: Retention and restore opetions for incremental backups 2023-02-07 13:19:03 +01:00
ImageManager.h F #6029, #6074: Retention and restore opetions for incremental backups 2023-02-07 13:19:03 +01:00
ImagePool.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
ImageTemplate.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
InformationManager.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
IPAMManager.h F #6103: CppCheck version 2.10 - solved issues (#2492) 2023-02-14 09:51:04 +01:00
IPAMRequest.h F #6103: More CppCheck issues solved (#2477) 2023-02-02 12:54:45 +01:00
LibVirtDriver.h B #4045: Add pci root ports config on q35 vms 2023-06-19 12:59:55 +02:00
LifeCycleManager.h F #6063: Backup Jobs for OpenNebula 2023-07-03 18:15:52 +02:00
Listener.h M #-: Add CppCheck to smoke tests (#2464) 2023-01-31 13:46:09 +01:00
Log.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
LogDB.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
LoginToken.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
MarketPlace.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
MarketPlaceApp.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
MarketPlaceAppPool.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
MarketPlaceAppTemplate.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
MarketPlaceManager.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
MarketPlacePool.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
MarketPlaceTemplate.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
mem_collector.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
Message.h F #6103: CppCheck version 2.10 - solved issues (#2492) 2023-02-14 09:51:04 +01:00
MySqlDB.h F #6103: CppCheck version 2.10 - solved issues (#2492) 2023-02-14 09:51:04 +01:00
Nebula.h F #6063: Backup Jobs for OpenNebula 2023-07-03 18:15:52 +02:00
NebulaLog.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
NebulaService.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
NebulaTemplate.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
NebulaUtil.h F #6063: Backup Jobs for OpenNebula 2023-07-03 18:15:52 +02:00
ObjectCollection.h F #6063: Backup Jobs for OpenNebula 2023-07-03 18:15:52 +02:00
ObjectSQL.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
ObjectXML.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
OneDB.h F #6063: Backup Jobs for OpenNebula 2023-07-03 18:15:52 +02:00
OpenNebulaTemplate.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
PoolObjectAuth.h F #6103: More CppCheck issues solved (#2477) 2023-02-02 12:54:45 +01:00
PoolObjectSQL.h F #6063: Backup Jobs for OpenNebula 2023-07-03 18:15:52 +02:00
PoolSQL.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
PoolSQLCache.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
PostgreSqlDB.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
ProtocolMessages.h F #6030: Cancel backup operation 2023-03-16 13:11:27 +01:00
Quota.h M #-: Add more build warnings, const version of vector_value method (#2534) 2023-03-08 15:52:20 +01:00
QuotaDatastore.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
QuotaImage.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
QuotaNetwork.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
Quotas.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
QuotasSQL.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
QuotaVirtualMachine.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
RaftManager.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
RankScheduler.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
ReplicaManager.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
ReplicaRequest.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
ReplicaThread.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
Request.h F #6063: Backup Jobs for OpenNebula 2023-07-03 18:15:52 +02:00
RequestManager.h M #-: Add CppCheck to smoke tests (#2464) 2023-01-31 13:46:09 +01:00
RequestManagerAcl.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
RequestManagerAllocate.h F #6063: Backup Jobs for OpenNebula 2023-07-03 18:15:52 +02:00
RequestManagerAllocateDB.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
RequestManagerBackupJob.h F #6063: Backup Jobs for OpenNebula 2023-07-03 18:15:52 +02:00
RequestManagerChmod.h F #6063: Backup Jobs for OpenNebula 2023-07-03 18:15:52 +02:00
RequestManagerChown.h F #6063: Backup Jobs for OpenNebula 2023-07-03 18:15:52 +02:00
RequestManagerClone.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
RequestManagerCluster.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
RequestManagerConnection.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
RequestManagerDatastore.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
RequestManagerDelete.h F #6063: Backup Jobs for OpenNebula 2023-07-03 18:15:52 +02:00
RequestManagerDropDB.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
RequestManagerGroup.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
RequestManagerHook.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
RequestManagerHost.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
RequestManagerImage.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
RequestManagerInfo.h F #6063: Backup Jobs for OpenNebula 2023-07-03 18:15:52 +02:00
RequestManagerLock.h F #6063: Backup Jobs for OpenNebula 2023-07-03 18:15:52 +02:00
RequestManagerMarketPlace.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
RequestManagerMarketPlaceApp.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
RequestManagerPoolInfoFilter.h F #6063: Backup Jobs for OpenNebula 2023-07-03 18:15:52 +02:00
RequestManagerProxy.h M #-: Add CppCheck to smoke tests (#2464) 2023-01-31 13:46:09 +01:00
RequestManagerRename.h F #6063: Backup Jobs for OpenNebula 2023-07-03 18:15:52 +02:00
RequestManagerSchedAction.h F #6239: Update VMAction permissions (#2642) 2023-06-21 09:40:03 +02:00
RequestManagerSecurityGroup.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
RequestManagerSystem.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
RequestManagerUpdateDB.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
RequestManagerUpdateTemplate.h F #6063: Backup Jobs for OpenNebula 2023-07-03 18:15:52 +02:00
RequestManagerUser.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
RequestManagerVdc.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
RequestManagerVirtualMachine.h F #6063: Backup Jobs for OpenNebula 2023-07-03 18:15:52 +02:00
RequestManagerVirtualNetwork.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
RequestManagerVirtualRouter.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
RequestManagerVMTemplate.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
RequestManagerVNTemplate.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
RequestManagerZone.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
ScheduledAction.h F #6063: Backup Jobs for OpenNebula 2023-07-03 18:15:52 +02:00
ScheduledActionManager.h F #6063: Backup Jobs for OpenNebula 2023-07-03 18:15:52 +02:00
ScheduledActionPool.h F #6063: Backup Jobs for OpenNebula 2023-07-03 18:15:52 +02:00
SecurityGroup.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
SecurityGroupPool.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
Snapshots.h F OpenNebula/one#6265: Delete of snapshots in the middle of the chain 2023-07-20 19:04:28 +02:00
SqlDB.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
SqliteDB.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
SSLUtil.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
StreamManager.h F #6103: More CppCheck issues solved (#2477) 2023-02-02 12:54:45 +01:00
StringBuffer.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
SyncRequest.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
SystemDB.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
Template.h F #6063: Backup Jobs for OpenNebula 2023-07-03 18:15:52 +02:00
TransferManager.h F #6030: Cancel backup operation 2023-03-16 13:11:27 +01:00
User.h M #-: Add CppCheck to smoke tests (#2464) 2023-01-31 13:46:09 +01:00
UserPool.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
UserTemplate.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
Vdc.h M #-: Add CppCheck to smoke tests (#2464) 2023-01-31 13:46:09 +01:00
VdcPool.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
VirtualMachine.h F OpenNebula/one#6265: Delete of snapshots in the middle of the chain 2023-07-20 19:04:28 +02:00
VirtualMachineAttribute.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
VirtualMachineDisk.h F OpenNebula/one#6265: Delete of snapshots in the middle of the chain 2023-07-20 19:04:28 +02:00
VirtualMachineManager.h F #6030: Cancel backup operation 2023-03-16 13:11:27 +01:00
VirtualMachineManagerDriver.h F #6030: Cancel backup operation 2023-03-16 13:11:27 +01:00
VirtualMachineMonitorInfo.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
VirtualMachineNic.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
VirtualMachinePool.h F #6063: Backup Jobs for OpenNebula 2023-07-03 18:15:52 +02:00
VirtualMachineTemplate.h M #-: Add more build warnings, const version of vector_value method (#2534) 2023-03-08 15:52:20 +01:00
VirtualNetwork.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
VirtualNetworkPool.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
VirtualNetworkTemplate.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
VirtualRouter.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
VirtualRouterPool.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
VMActions.h F #6239: Update VMAction permissions (#2642) 2023-06-21 09:40:03 +02:00
VMGroup.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
VMGroupPool.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
VMGroupRole.h M #-: Add more build warnings, const version of vector_value method (#2534) 2023-03-08 15:52:20 +01:00
VMGroupRule.h M #-: Add CppCheck to smoke tests (#2464) 2023-01-31 13:46:09 +01:00
VMTemplate.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
VMTemplatePool.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
VNTemplate.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
VNTemplatePool.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
XenDriver.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
XMLDriver.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
Zone.h M #-: Bump year 2023 2023-01-09 12:23:19 +01:00
ZonePool.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00
ZoneServer.h F #6103: Last set of CppCheck issues (#2481) 2023-02-07 08:56:52 +01:00