<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Valerio,<br>
<br>
The problem was fixed. Please checkout latest master to test it.<br>
<div class="moz-forward-container"><br>
<br>
-------- Original Message --------
<table class="moz-email-headers-table" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Subject:
</th>
<td>Re: [PATCH 1/2] dog: fix cluster-wide snapshot
inconsistency due to vdi deleted</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date: </th>
<td>Tue, 2 Sep 2014 09:53:34 +0800</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">From: </th>
<td>Liu Yuan <a class="moz-txt-link-rfc2396E" href="mailto:namei.unix@gmail.com"><namei.unix@gmail.com></a></td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">To: </th>
<td>Ruoyu <a class="moz-txt-link-rfc2396E" href="mailto:liangry@ucweb.com"><liangry@ucweb.com></a></td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">CC: </th>
<td><a class="moz-txt-link-abbreviated" href="mailto:sheepdog@lists.wpkg.org">sheepdog@lists.wpkg.org</a></td>
</tr>
</tbody>
</table>
<br>
<br>
<pre>On Mon, Sep 01, 2014 at 02:04:51PM +0800, Ruoyu wrote:
> Once vdi snapshot is deleted before executing 'dog cluster snapshot
> save', error messsage just like as below is seen.
>
> Failed to read object 807c2b2500000000 No object found
> Failed to read inode header
>
> Once a vdi is deleted, cluster snapshot save will not backup it to
> farm so that cluster snapshot load cannot restore it to new cluster.
> However, the vdi id is marked as in use for safety, vdi list
> will try to read all vdis in use. Therefore, dog cannot read the object.
>
> The solution is saving the deleted vdi object too. To achieve it,
> a parameter, no_deleted, is added to the function parse_vdi.
> The default value is true. But for cluster snapshot save, it is false.
>
> Reported-by: Valerio Pachera <a class="moz-txt-link-rfc2396E" href="mailto:sirio81@gmail.com"><sirio81@gmail.com></a>
> Cc: Liu Yuan <a class="moz-txt-link-rfc2396E" href="mailto:namei.unix@gmail.com"><namei.unix@gmail.com></a>
> Signed-off-by: Ruoyu <a class="moz-txt-link-rfc2396E" href="mailto:liangry@ucweb.com"><liangry@ucweb.com></a>
> ---
> v2:
> - use no_deleted instead of include_deleted, advised by Yuan.
>
Applied thanks
Yuan
</pre>
<br>
</div>
<br>
</body>
</html>