<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Segoe UI";
panose-1:2 11 5 2 4 2 4 2 2 3;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:SimSun;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:SimSun;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"\6279\6CE8\6846\6587\672C Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:9.0pt;
font-family:SimSun;}
span.textrun
{mso-style-name:textrun;}
span.eop
{mso-style-name:eop;}
span.linebreakblob
{mso-style-name:linebreakblob;}
span.scx96661126
{mso-style-name:scx96661126;}
span.EmailStyle22
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.Char
{mso-style-name:"\6279\6CE8\6846\6587\672C Char";
mso-style-priority:99;
mso-style-link:\6279\6CE8\6846\6587\672C;
font-family:SimSun;}
span.EmailStyle25
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="ZH-CN" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D">I think force delete = nova detach volume,then cinder delete volume
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D">Volume status in db shoud be modified after nova detach volume.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D">Thanks!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> zhangyu (AI) [mailto:zhangyu11@huawei.com]
<br>
<b>Sent:</b> Wednesday, February 26, 2014 8:56 AM<br>
<b>To:</b> OpenStack Development Mailing List (not for usage questions)<br>
<b>Subject:</b> Re: [openstack-dev] [Cinder] [Nova]Do you think volume force delete operation should not apply to the volume being used?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D">If I understand your question correctly, the case you describe should be like the following:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D">Assume we have created both an instance and a volume, then we try to attach that volume to the instance.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D">Before that operation is completed (the status of the volume is “attaching” now), for whatever reasons we decide to apply a “force delete” operation
on that volume.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D">Then, after we applied that force delete, we come to see that, from the Cinder side, the volume has been successfully deleted and the status is
surely “deleted”.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D">However, from the Nova side, we see that the status of the deleted volume remains to be “attaching”.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D">If this is truly your case, I think it is a bug. The reason might lie in that, Cinder forgets to refresh the attach_status attribute of a volume
in DB when applying a “force delete” operation.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D">Is there any other suggestions?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D">Thanks!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> yunling [<a href="mailto:yunlingzeng@hotmail.com">mailto:yunlingzeng@hotmail.com</a>]
<br>
<b>Sent:</b> Monday, February 17, 2014 9:14 PM<br>
<b>To:</b> <a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a><br>
<b>Subject:</b> [openstack-dev] [Cinder]Do you think volume force delete operation should not apply to the volume being used?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<div>
<p class="MsoNormal" style="vertical-align:baseline"><span class="textrun"><span lang="EN-US" style="font-size:14.0pt;font-family:"Segoe UI","sans-serif"">Hi stackers:</span></span><span class="eop"><span lang="EN-US" style="font-size:14.0pt;font-family:"Segoe UI","sans-serif""> </span></span><span lang="EN-US" style="font-size:6.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="vertical-align:baseline;word-wrap: break-word"><span class="scx96661126"><span lang="EN-US" style="font-size:11.0pt"> </span></span><span lang="EN-US" style="font-size:11.0pt"><br>
<span class="eop"> </span></span><span lang="EN-US" style="font-size:6.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="vertical-align:baseline;word-wrap: break-word"><span class="textrun"><span lang="EN-US" style="font-size:14.0pt;font-family:"Segoe UI","sans-serif"">I found that volume status become inconsistent (nova volume status is attaching,
verus cinder volume status is deleted) between nova and cinder when doing volume force delete operation on an attaching volume.</span></span><span class="eop"><span lang="EN-US" style="font-size:14.0pt;font-family:"Segoe UI","sans-serif""> </span></span><span lang="EN-US" style="font-size:6.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="vertical-align:baseline;word-wrap: break-word"><span class="textrun"><span lang="EN-US" style="font-size:14.0pt;font-family:"Segoe UI","sans-serif"">I think volume force delete operation should not apply to the volume being used,
which included the attached status of attaching, attached and detached.</span></span><span class="eop"><span lang="EN-US" style="font-size:14.0pt;font-family:"Segoe UI","sans-serif""> </span></span><span lang="EN-US" style="font-size:6.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="vertical-align:baseline;word-wrap: break-word"><span class="scx96661126"><span lang="EN-US" style="font-size:11.0pt"> </span></span><span lang="EN-US" style="font-size:11.0pt"><br>
<span class="eop"> </span></span><span lang="EN-US" style="font-size:6.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="vertical-align:baseline;word-wrap: break-word"><span class="textrun"><span lang="EN-US" style="font-size:14.0pt;font-family:"Segoe UI","sans-serif"">How do you think?</span></span><span class="eop"><span lang="EN-US" style="font-size:14.0pt;font-family:"Segoe UI","sans-serif""> </span></span><span lang="EN-US" style="font-size:6.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="vertical-align:baseline;word-wrap: break-word"><span lang="EN-US" style="font-size:6.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal" style="vertical-align:baseline;word-wrap: break-word"><span lang="EN-US" style="font-size:6.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="vertical-align:baseline;word-wrap: break-word"><span class="textrun"><span lang="EN-US" style="font-size:14.0pt;font-family:"Segoe UI","sans-serif"">thanks</span></span><span lang="EN-US" style="font-size:6.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</body>
</html>