<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div>Dear Jaime,</div>
<div><br>
</div>
<div>Sorry for the delayed response.</div>
<div>(I returned from a log vacation.)</div>
<div><br>
</div>
<div>If using read link in order to check if the two(SRC and DST) are identical is intentional, I will need to think more on this issue.</div>
<div>I guess that as far as the original image file does not get corrupted by the link file, I think it is ok to us.</div>
<div>Anyway, let me think more on this issue.</div>
<div><br>
</div>
<div>Thanks for the response.</div>
<div><br>
</div>
<div>Hyunwoo Kim</div>
<div>FermiCloud Project</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Jaime Melis <<a href="mailto:jmelis@opennebula.org">jmelis@opennebula.org</a>><br>
<span style="font-weight:bold">Date: </span>Thursday, March 28, 2013 10:08 AM<br>
<span style="font-weight:bold">To: </span>Hyunwoo Kim <<a href="mailto:hyunwoo@fnal.gov">hyunwoo@fnal.gov</a>><br>
<span style="font-weight:bold">Cc: </span>"<a href="mailto:users@lists.opennebula.org">users@lists.opennebula.org</a>" <<a href="mailto:users@lists.opennebula.org">users@lists.opennebula.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [one-users] onevm cancel for a persistent image via TM_ shared<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">Dear Hyun,
<div><br>
</div>
<div>I don't quite understand what you mean. The step 3 doesn't do anything because it's the same file, so "it's already done". What would you have it do instead?</div>
<div><br>
</div>
<div>cheers,<br>
Jaime</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Mon, Mar 18, 2013 at 4:17 PM, Hyun Woo Kim <span dir="ltr">
<<a href="mailto:hyunwoo@fnal.gov" target="_blank">hyunwoo@fnal.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word">
<div>Dear ON Developers,</div>
<div><br>
</div>
<div>Our ON configuration is a bit different from what ON manual assumes.</div>
<div>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.</div>
<div><br>
</div>
<div>I believe the following two variables are assumed in ON standard deployment.</div>
<div>SRC=$IMAGE_REPOSITORY_PATH/</div>
<div>DST=$VM_DIR/vmid/images</div>
<div><br>
</div>
<div>In this case, onevm cancel will do</div>
<div><br>
</div>
<div>1. tm_mv.sh : mv $DST/disk.0 /var/log/one/vmid/disk.0</div>
<div> Note here that $DST/disk.0 is actually a link to $IMAGE_REPOSITORY_PATH/original_file</div>
<div>2. tm_delete.sh : rm –f $DST</div>
<div>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</div>
<div> which will not happen because Image Drive will realize that these two are identical when running readlink command.</div>
<div><br>
</div>
<div>My guess is that, if this is true, this step "3" appears to be a bug.</div>
<div>In other words, in step "3", the mv should not be prevented because they have the same pathname.</div>
<div><br>
</div>
<div>Could ON developers check this?</div>
<div>(I might be wrong.)</div>
<div><br>
</div>
<div><br>
</div>
<div>Thank you.</div>
<div>Hyunwoo</div>
<div>FermiCloud Project</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
Jaime Melis<br>
Project Engineer<br>
OpenNebula - The Open Source Toolkit for Cloud Computing<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org" target="_blank">
jmelis@opennebula.org</a> </div>
</div>
</div>
</span>
</body>
</html>