<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=utf-8">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:宋体;
        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:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@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:宋体;}
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;}
tt
        {mso-style-priority:99;
        font-family:宋体;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@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">Got it. Thanks for clarification!~<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-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""> Jay S Bryant [mailto:jsbryant@us.ibm.com]
<br>
<b>Sent:</b> Wednesday, February 26, 2014 11:08 AM<br>
<b>To:</b> OpenStack Development Mailing List (not for usage questions)<br>
<b>Cc:</b> Luohao (brian)<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>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial","sans-serif"">I would agree.  I don't think that Cinder should/could be able to act upon Nova's state for the VM.  Force-delete is really in place as a backup to clean-up after
 certain failures in Cinder.  Other mechanisms are in place to handle issues in Nova.<br>
</span><span lang="EN-US"><br>
<b><i><br>
Jay S. Bryant</i></b><br>
       <i>IBM Cinder Subject Matter Expert  &  Cinder Core Member</i><br>
Department 7YLA, Building 015-2, Office E125, Rochester, MN<br>
Telephone: (507) 253-4270, FAX (507) 253-6410<br>
TIE Line: 553-4270<br>
E-Mail:  <a href="mailto:jsbryant@us.ibm.com">jsbryant@us.ibm.com</a><br>
--------------------------------------------------------------------<br>
All the world's a stage and most of us are desperately unrehearsed.<br>
                  -- Sean O'Casey<br>
-------------------------------------------------------------------- <br>
<br>
<br>
<br>
</span><span lang="EN-US" style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F">From:        </span><span lang="EN-US" style="font-size:7.5pt;font-family:"Arial","sans-serif"">"zhangyu (AI)" <<a href="mailto:zhangyu11@huawei.com">zhangyu11@huawei.com</a>></span><span lang="EN-US">
<br>
</span><span lang="EN-US" style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F">To:        </span><span lang="EN-US" style="font-size:7.5pt;font-family:"Arial","sans-serif"">"OpenStack Development Mailing List (not for usage questions)" <<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>>,
</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F">Cc:        </span><span lang="EN-US" style="font-size:7.5pt;font-family:"Arial","sans-serif"">"Luohao \(brian\)" <<a href="mailto:brian.luohao@huawei.com">brian.luohao@huawei.com</a>></span><span lang="EN-US">
<br>
</span><span lang="EN-US" style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F">Date:        </span><span lang="EN-US" style="font-size:7.5pt;font-family:"Arial","sans-serif"">02/25/2014 08:20 PM</span><span lang="EN-US">
<br>
</span><span lang="EN-US" style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#5F5F5F">Subject:        </span><span lang="EN-US" style="font-size:7.5pt;font-family:"Arial","sans-serif"">Re: [openstack-dev] [Cinder] [Nova]Do you think volume force
 delete operation should not apply to the volume being used?</span><span lang="EN-US">
<o:p></o:p></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span lang="EN-US">
<hr size="2" width="100%" noshade="" style="color:#A0A0A0" align="center">
</span></div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US"><br>
<br>
<br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#004080">IMHO, Attach/detach operations can only be issued from the Nova side because they are in fact VM/instance management operations.
</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#004080">Meanwhile, volume create/delete are volume management stuffs, therefore Cinder exposes API for them.</span><span lang="EN-US">
<br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#004080"> </span><span lang="EN-US">
<br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#004080">Also, according to current Cinder code base, no nova detach-volume action is issued from the execution flow of a volume deletion.</span><span lang="EN-US">
<br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#004080"> </span><span lang="EN-US">
<br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#004080">Thank you for suggestions~</span><span lang="EN-US">
<br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#004080"> </span><span lang="EN-US">
<br>
</span><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""> Yuzhou (C) [</span><span lang="EN-US"><a href="mailto:vitas.yuzhou@huawei.com"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">mailto:vitas.yuzhou@huawei.com</span></a></span><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">]
<b><br>
Sent:</b> Wednesday, February 26, 2014 9:46 AM<b><br>
To:</b> OpenStack Development Mailing List (not for usage questions)<b><br>
Cc:</b> Luohao (brian)<b><br>
Subject:</b> Re: [openstack-dev] [Cinder] [Nova]Do you think volume force delete operation should not apply to the volume being used?</span><span lang="EN-US">
<br>
  <br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#004080">I think        force delete = nova detach volume,then cinder delete volume
</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#004080"> </span><span lang="EN-US">
<br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#004080">Volume status in db shoud be modified after nova detach volume.</span><span lang="EN-US">
<br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#004080"> </span><span lang="EN-US">
<br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#004080">Thanks!</span><span lang="EN-US">
<br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#004080"> </span><span lang="EN-US">
<br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#004080"> </span><span lang="EN-US">
<br>
</span><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) [</span><span lang="EN-US"><a href="mailto:zhangyu11@huawei.com"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">mailto:zhangyu11@huawei.com</span></a></span><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">]
<b><br>
Sent:</b> Wednesday, February 26, 2014 8:56 AM<b><br>
To:</b> OpenStack Development Mailing List (not for usage questions)<b><br>
Subject:</b> Re: [openstack-dev] [Cinder] [Nova]Do you think volume force delete operation should not apply to the volume being used?</span><span lang="EN-US">
<br>
  <br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#004080">If I understand your question correctly, the case you describe should be like the following:</span><span lang="EN-US">
<br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#004080"> </span><span lang="EN-US">
<br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#004080">Assume we have created both an instance and a volume, then we try to  attach that volume to the instance.</span><span lang="EN-US">
<br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#004080">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.</span><span lang="EN-US"> <br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#004080">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”.</span><span lang="EN-US">
<br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#004080">However, from the Nova side, we see that the status of the deleted volume remains to be “attaching”.</span><span lang="EN-US">
<br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#004080"> </span><span lang="EN-US">
<br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#004080">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.</span><span lang="EN-US"> <br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#004080">Is there any other suggestions?</span><span lang="EN-US">
<br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#004080"> </span><span lang="EN-US">
<br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#004080">Thanks!</span><span lang="EN-US">
<br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#004080"> </span><span lang="EN-US">
<br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#004080"> </span><span lang="EN-US">
<br>
</span><span lang="EN-US" style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#004080"> </span><span lang="EN-US">
<br>
</span><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 [</span><span lang="EN-US"><a href="mailto:yunlingzeng@hotmail.com"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">mailto:yunlingzeng@hotmail.com</span></a></span><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">]
<b><br>
Sent:</b> Monday, February 17, 2014 9:14 PM<b><br>
To:</b> </span><span lang="EN-US"><a href="mailto:openstack-dev@lists.openstack.org"><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">openstack-dev@lists.openstack.org</span></a></span><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""><br>
Subject:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> [openstack-dev] [Cinder]Do you think volume force delete operation should not apply to the volume being used?</span><span lang="EN-US">
<br>
  <br>
</span><span lang="EN-US" style="font-size:13.5pt;font-family:"Arial","sans-serif"">Hi stackers:
</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:10.0pt"> <br>
</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:13.5pt;font-family:"Arial","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 lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:13.5pt;font-family:"Arial","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 lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:10.0pt"> <br>
</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:13.5pt;font-family:"Arial","sans-serif"">How do you think?
</span><span lang="EN-US"><br>
</span><span lang="EN-US" style="font-size:7.5pt"> </span><span lang="EN-US"> <br>
</span><span lang="EN-US" style="font-size:7.5pt"> </span><span lang="EN-US"> <br>
</span><span lang="EN-US" style="font-size:13.5pt;font-family:"Arial","sans-serif"">thanks</span><tt><span lang="EN-US" style="font-size:10.0pt">_______________________________________________</span></tt><span lang="EN-US" style="font-size:10.0pt"><br>
<tt>OpenStack-dev mailing list</tt><br>
<tt><a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a></tt><br>
</span><span lang="EN-US"><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev"><tt><span style="font-size:10.0pt">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</span></tt></a><o:p></o:p></span></p>
</div>
</body>
</html>