OpenNebula / one

The open source Cloud & Edge Computing Platform bringing real freedom to your Enterprise Cloud 🚀
http://opennebula.io
Apache License 2.0
1.24k stars 480 forks source link

First element of the backup chain got wrong size after first rotation (increment_flatten) #6465

Open nachowork90 opened 9 months ago

nachowork90 commented 9 months ago

Description When the increment chain reach the KEEP_LAST value, the code of increment_flatten is executed, The code work as espected, but in some scenarios when the filesystem is not to fast, the size of the image is not the correct, because the task of merge and info run too quickly.

To Reproduce Do an incremental backup of a VM and do more backups than the KEEP_LAST value configured. The rsync server must be one server with slow disk response.

Expected behavior when we do an incremental backup of a VM and we do more backups than the KEEP_LAST value configured, the rsync server have slow disk response. The value for size computed must be the right one.

Details

Additional context Add any other context about the problem here.

Progress Status

I sorted the problem doing sleep inside the script:

image

Franco-Sparrow commented 9 months ago

Thanks @nachowork90

I confirm this issue and your solution works.