Is there an existing issue for this?
What are you currently unable to do
Incus in combination with ceph allows for the convenient option to use cloning of images rather than copying. This offers the advantage, that images don't have to be unpacked again for new instances, if a smaller or eual sized image already exists in ceph, making instance deployment very fast.
The downside of this is, that ceph is unable to report the proper size used by the cloned image, as some blocks of the image belong to the parent image it was cloned of. This effect worsens if the cloned image has snapshots.
Unfortunately getting the disk utilization via the agent is not an option for us, as it's potentially unreliable because the agent can be deactivated from within the instance.
What do you think would need to be added
A bool configuration key in the device section of the instance like flatten or postFlatten that causes the link between the cloned image and its parent to be severed after the clone in ceph has been created. In ceph this can be achieved via the rbd flatten command
This would offer the time advantage of instance deployment by utilizing cloning, and at the same time allow ceph to report correct disk utilization of the image.
If this is an acceptable feature to be added, I'd be happy to implement it :)
Is there an existing issue for this?
What are you currently unable to do
Incus in combination with ceph allows for the convenient option to use cloning of images rather than copying. This offers the advantage, that images don't have to be unpacked again for new instances, if a smaller or eual sized image already exists in ceph, making instance deployment very fast.
The downside of this is, that ceph is unable to report the proper size used by the cloned image, as some blocks of the image belong to the parent image it was cloned of. This effect worsens if the cloned image has snapshots.
Unfortunately getting the disk utilization via the agent is not an option for us, as it's potentially unreliable because the agent can be deactivated from within the instance.
What do you think would need to be added
A bool configuration key in the device section of the instance like
flattenorpostFlattenthat causes the link between the cloned image and its parent to be severed after the clone in ceph has been created. In ceph this can be achieved via therbd flattencommandThis would offer the time advantage of instance deployment by utilizing cloning, and at the same time allow ceph to report correct disk utilization of the image.
If this is an acceptable feature to be added, I'd be happy to implement it :)