[one-dev] Why linked and not cloned?

Fabian Zimmermann dev.faz at gmail.com
Wed May 28 11:33:09 PDT 2014


Hi,

i'm just trying to add sheepdog support to the storage backend.

My current system is working (so far), but it tries to delete
CDROM-images on cleanup, which doesn't exist.

I try to explain a little bit:

ln_target="NONE", so images should be symlinked if persistent.
clone_target="SELF", so images should be cloned if non-persistent.

Now it looks like the problem is already in the ceph-scripts (which I
used to develop my sheepdog-scripts), because these scripts do not
really link (well, ceph/sheep is unable to link) - instead they just
ignore the request and generate a suitable libvirt-XML, oned is trying
to delete these links on cleanup. This is catched by checking if image
is "PERSISTENT", but CDROM-images aren't marked as PERSISTENT.

So, do I have to check for Image-TYPE and ignore the delete if it's a
CDROM-image or what's the best solution here?


Thanks a lot,

Fabian Zimmermann


More information about the Dev mailing list