[one-users] onevm cancel for a persistent image via TM_ shared

Hyun Woo Kim hyunwoo at fnal.gov
Mon Mar 18 13:17:48 PDT 2013


Dear ON Developers,

Our ON configuration is a bit different from what ON manual assumes.
The following is my guess of how onevm cancel VM where this VM is from a persistent image and running in a host via shared transfer manager.

I believe the following two variables are assumed in ON standard deployment.
SRC=$IMAGE_REPOSITORY_PATH/
DST=$VM_DIR/vmid/images

In this case, onevm cancel will do

1. tm_mv.sh : mv $DST/disk.0 /var/log/one/vmid/disk.0
    Note here that $DST/disk.0 is actually a link to $IMAGE_REPOSITORY_PATH/original_file
2. tm_delete.sh : rm –f $DST
3. Image Driver will invoke var/remote/image/fs/mv to try to /var/log/one/vmid/disk.0 to the same image in IMAGE_REPOSITORY_PATH
    which will not happen because Image Drive will realize that these two are identical when running readlink command.

My guess is that, if this is true, this step "3" appears to be a bug.
In other words, in step "3", the mv should not be prevented because they have the same pathname.

Could ON developers check this?
(I might be wrong.)


Thank you.
Hyunwoo
FermiCloud Project


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20130318/6eb1ec51/attachment.htm>


More information about the Users mailing list