JoaoJandre commented on PR #9270:
URL: https://github.com/apache/cloudstack/pull/9270#issuecomment-2754388858

   > @JoaoJandre, these are probably corner cases but: delta max = 3 
incremental snapshots = enabled Case one: 1 - create 3 snapshots with copies to 
a second zone 2 - delete the first parent snapshot from the main zone 3 - copy 
again the snapshot from the second zone to the first 4 - try to delete any of 
the child snapshots or the parent from the first zone
   > 
   > ```
   > 2025-03-25 09:46:24,873 DEBUG [o.a.c.s.s.SnapshotObject] 
(API-Job-Executor-25:[ctx-a1686c7f, job-473, ctx-78ff04fd]) (logid:556be43c) 
Found parent snapshot references [{"dataStoreId":1,"id":
   > 
59,"installPath":"snapshots\/2\/70\/2e5d8a05-aa60-485d-ad0d-dbc88ad94769","kvmCheckpointPath":null,"snapshotId":24,"state":"Ready"},
 
{"dataStoreId":2,"id":60,"installPath":"snapshots\/2\/70\/2e5d8a05-aa60-485d-ad0d-dbc88ad94769","kvmCheckpointPath":null,"snapshotId":24,"state":"Ready"}],
 will filter to just one.
   > 
   > 2025-03-25 09:46:24,874 ERROR [o.a.c.s.s.DefaultSnapshotStrategy] 
(API-Job-Executor-25:[ctx-a1686c7f, job-473, ctx-78ff04fd]) (logid:556be43c) 
Failed to delete snapshot [SnapshotTO[datastore=NfsTO 
{"_role":"Image","_url":"nfs:\/\/10.2.128.5\/export\/secondary-a","nfsVersion":null,"uuid":null}|volume=volumeTO
 {"dataStore":"PrimaryDataStoreTO 
{\"id\":5,\"name\":\"nfs-a\",\"poolType\":\"NetworkFilesystem\",\"uuid\":\"7a2b426f-fd55-3d72-ad3c-3a3060d59623\"}","id":70,"name":"ROOT-53","path":"343a2776-7cd0-47ef-a43d-bbbe8a219086","uuid":"343a2776-7cd0-47ef-a43d-bbbe8a219086"}|pathsnapshots/2/70/2e5d8a05-aa60-485d-ad0d-dbc88ad94769]]
 on storage [Image {uuid: "703a4f8c-1c8c-473a-aa8e-1fcf9308ba2b", name: 
"secondary-a"}] due to [Could not find snapshot parent with id [24]. None of 
the records have a checkpoint path.]. 
com.cloud.utils.exception.CloudRuntimeException: Could not find snapshot parent 
with id [24]. None of the records have a checkpoint path.
   >         at 
org.apache.cloudstack.storage.snapshot.SnapshotObject.lambda$getCorrectIncrementalParent$1(SnapshotObject.java:145)
   > ```
   > 
   > Case two: 1- take 3 snapshots with copies to a second zone 2 - delete the 
last snapshot (that is the end of the chain) from the first zone 3 - copy the 
snapshot from the second zone to the first. The end of the chain is lost for 
this snapshot and will be set to the next created one
   > 
   > Case three - there isn't an issue here. I found where is the difference 
between the environments and will test it again I cannot find this related to 
your PR, but I cannot create a volume from a copied snapshot on another zone. I 
have tested this on another environment with the main and it is working. The 
problem is that CS cannot find storage for the new volume.
   
   Hi @slavkap,
   
   Thank you for testing, I'll look into these cases you've found and I'll 
report soon.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to