<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:微软雅黑
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><DIV dir=ltr>
<DIV>From cinder code, we know that volume delete operation could be classify into three categories;</DIV>
<DIV>1. General delelte: delete volumes that are in the status of available, error, error_restoring, error_extending. </DIV>
<DIV>2. Force delete: delete volumes that are in the status of extending, attaching, detaching, await-transfering, backing or restoring. </DIV>
<DIV>3. Others: volumes that are attached or in the progress of migrate operation can't be force deleted. </DIV>
<DIV> </DIV>
<DIV>We know that volume's status in attaching/detaching also means that the volume is "in-use", not only in "attached" status and in the progress of volume migration.</DIV>
<DIV>Cinder force delete sometimes can delelte "in-use" volumes, and sometimes can not deleted "in-use" volumes.</DIV>
<DIV> </DIV>
<DIV>My question is as follows:</DIV>
<DIV>1. Do you think volume force delete operation should not apply to the volume being used?</DIV>
<DIV>eg. Should attaching/detaching/backing volume can't be force delete ?</DIV>
<DIV><BR></DIV>
<DIV>
<HR id=stopSpelling>
From: yunlingzeng@hotmail.com<BR>To: openstack-dev@lists.openstack.org<BR>Subject: [openstack-dev][Cinder]Do you think volume force delete operation should not apply to the volume being used?<BR>Date: Mon, 17 Feb 2014 13:13:45 +0000<BR><BR>
<STYLE><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:微软雅黑;
}
--></STYLE>
<DIV dir=ltr>
<DIV style="PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-FAMILY: 宋体, sans-serif; FONT-SIZE: 12px; PADDING-TOP: 0px" class="ecxOutlineElement ecxLtr ecxSCX96661126">
<P style="BACKGROUND-COLOR: transparent; WORD-WRAP: break-word; COLOR: windowtext; FONT-SIZE: 6pt; VERTICAL-ALIGN: baseline" class="ecxParagraph ecxSCX96661126"><SPAN style="PADDING-BOTTOM: 0px; LINE-HEIGHT: 25px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-FAMILY: 'Segoe UI', sans-serif; COLOR: windowtext; FONT-SIZE: 14pt; PADDING-TOP: 0px" class="ecxTextRun ecxSCX96661126">Hi stackers:</SPAN><SPAN style="PADDING-BOTTOM: 0px; LINE-HEIGHT: 25px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-FAMILY: 'Segoe UI', sans-serif; FONT-SIZE: 14pt; PADDING-TOP: 0px" class="ecxEOP ecxSCX96661126"> </SPAN></P></DIV>
<DIV style="PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-FAMILY: 宋体, sans-serif; FONT-SIZE: 12px; PADDING-TOP: 0px" class="ecxOutlineElement ecxLtr ecxSCX96661126">
<P style="BACKGROUND-COLOR: transparent; WORD-WRAP: break-word; COLOR: windowtext; FONT-SIZE: 6pt; VERTICAL-ALIGN: baseline" class="ecxParagraph ecxSCX96661126"><SPAN style="PADDING-BOTTOM: 0px; LINE-HEIGHT: 17px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; COLOR: windowtext; FONT-SIZE: 11pt; PADDING-TOP: 0px" class="ecxTextRun ecxEmptyTextRun ecxSCX96661126"></SPAN><SPAN style="PADDING-BOTTOM: 0px; LINE-HEIGHT: 17px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-SIZE: 11pt; PADDING-TOP: 0px" class="ecxLineBreakBlob ecxBlobObject ecxSCX96661126"><SPAN style="PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px" class=ecxSCX96661126> </SPAN><BR style="PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px" class=ecxSCX96661126></SPAN><SPAN style="PADDING-BOTTOM: 0px; LINE-HEIGHT: 17px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; COLOR: windowtext; FONT-SIZE: 11pt; PADDING-TOP: 0px" class="ecxTextRun ecxEmptyTextRun ecxSCX96661126"></SPAN><SPAN style="PADDING-BOTTOM: 0px; LINE-HEIGHT: 17px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-SIZE: 11pt; PADDING-TOP: 0px" class="ecxEOP ecxSCX96661126"> </SPAN></P></DIV>
<DIV style="PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-FAMILY: 宋体, sans-serif; FONT-SIZE: 12px; PADDING-TOP: 0px" class="ecxOutlineElement ecxLtr ecxSCX96661126">
<P style="BACKGROUND-COLOR: transparent; WORD-WRAP: break-word; COLOR: windowtext; FONT-SIZE: 6pt; VERTICAL-ALIGN: baseline" class="ecxParagraph ecxSCX96661126"><SPAN style="PADDING-BOTTOM: 0px; LINE-HEIGHT: 25px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-FAMILY: 'Segoe UI', sans-serif; COLOR: windowtext; FONT-SIZE: 14pt; PADDING-TOP: 0px" class="ecxTextRun ecxSCX96661126">I found that volume status become inconsistent (nova volume status is attaching, verus cinder volume status is deleted) </SPAN><SPAN style="PADDING-BOTTOM: 0px; LINE-HEIGHT: 25px; BACKGROUND-COLOR: transparent; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-FAMILY: 'Segoe UI', sans-serif; COLOR: windowtext; FONT-SIZE: 14pt; PADDING-TOP: 0px" class="ecxTextRun ecxSCX96661126">between nova and cinder when doing volume force delete operation on an attaching volume.</SPAN><SPAN style="PADDING-BOTTOM: 0px; LINE-HEIGHT: 25px; BACKGROUND-COLOR: transparent; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-FAMILY: 'Segoe UI', sans-serif; COLOR: windowtext; FONT-SIZE: 14pt; PADDING-TOP: 0px" class="ecxEOP ecxSCX96661126"> </SPAN></P></DIV>
<DIV style="PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-FAMILY: 宋体, sans-serif; FONT-SIZE: 12px; PADDING-TOP: 0px" class="ecxOutlineElement ecxLtr ecxSCX96661126">
<P style="BACKGROUND-COLOR: transparent; WORD-WRAP: break-word; COLOR: windowtext; FONT-SIZE: 6pt; VERTICAL-ALIGN: baseline" class="ecxParagraph ecxSCX96661126"><SPAN style="PADDING-BOTTOM: 0px; LINE-HEIGHT: 25px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-FAMILY: 'Segoe UI', sans-serif; COLOR: windowtext; FONT-SIZE: 14pt; PADDING-TOP: 0px" class="ecxTextRun ecxSCX96661126">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 style="PADDING-BOTTOM: 0px; LINE-HEIGHT: 25px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-FAMILY: 'Segoe UI', sans-serif; FONT-SIZE: 14pt; PADDING-TOP: 0px" class="ecxEOP ecxSCX96661126"> </SPAN></P></DIV>
<DIV style="PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-FAMILY: 宋体, sans-serif; FONT-SIZE: 12px; PADDING-TOP: 0px" class="ecxOutlineElement ecxLtr ecxSCX96661126">
<P style="BACKGROUND-COLOR: transparent; WORD-WRAP: break-word; COLOR: windowtext; FONT-SIZE: 6pt; VERTICAL-ALIGN: baseline" class="ecxParagraph ecxSCX96661126"><SPAN style="PADDING-BOTTOM: 0px; LINE-HEIGHT: 17px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; COLOR: windowtext; FONT-SIZE: 11pt; PADDING-TOP: 0px" class="ecxTextRun ecxEmptyTextRun ecxSCX96661126"></SPAN><SPAN style="PADDING-BOTTOM: 0px; LINE-HEIGHT: 17px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-SIZE: 11pt; PADDING-TOP: 0px" class="ecxLineBreakBlob ecxBlobObject ecxSCX96661126"><SPAN style="PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px" class=ecxSCX96661126> </SPAN><BR style="PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px" class=ecxSCX96661126></SPAN><SPAN style="PADDING-BOTTOM: 0px; LINE-HEIGHT: 17px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; COLOR: windowtext; FONT-SIZE: 11pt; PADDING-TOP: 0px" class="ecxTextRun ecxEmptyTextRun ecxSCX96661126"></SPAN><SPAN style="PADDING-BOTTOM: 0px; LINE-HEIGHT: 17px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-SIZE: 11pt; PADDING-TOP: 0px" class="ecxEOP ecxSCX96661126"> </SPAN></P></DIV>
<DIV style="PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-FAMILY: 宋体, sans-serif; FONT-SIZE: 12px; PADDING-TOP: 0px" class="ecxOutlineElement ecxLtr ecxSCX96661126">
<P style="BACKGROUND-COLOR: transparent; WORD-WRAP: break-word; COLOR: windowtext; FONT-SIZE: 6pt; VERTICAL-ALIGN: baseline" class="ecxParagraph ecxSCX96661126"><SPAN style="PADDING-BOTTOM: 0px; LINE-HEIGHT: 25px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-FAMILY: 'Segoe UI', sans-serif; COLOR: windowtext; FONT-SIZE: 14pt; PADDING-TOP: 0px" class="ecxTextRun ecxSCX96661126">How do you think?</SPAN><SPAN style="PADDING-BOTTOM: 0px; LINE-HEIGHT: 25px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-FAMILY: 'Segoe UI', sans-serif; FONT-SIZE: 14pt; PADDING-TOP: 0px" class="ecxEOP ecxSCX96661126"> </SPAN></P></DIV>
<DIV style="PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-FAMILY: 宋体, sans-serif; FONT-SIZE: 12px; PADDING-TOP: 0px" class="ecxOutlineElement ecxLtr ecxSCX96661126">
<P style="BACKGROUND-COLOR: transparent; WORD-WRAP: break-word; COLOR: windowtext; FONT-SIZE: 6pt; VERTICAL-ALIGN: baseline" class="ecxParagraph ecxSCX96661126"><SPAN style="PADDING-BOTTOM: 0px; LINE-HEIGHT: 17px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; COLOR: windowtext; FONT-SIZE: 11pt; PADDING-TOP: 0px" class="ecxTextRun ecxEmptyTextRun ecxSCX96661126"></SPAN><BR></P>
<P style="BACKGROUND-COLOR: transparent; WORD-WRAP: break-word; COLOR: windowtext; FONT-SIZE: 6pt; VERTICAL-ALIGN: baseline" class="ecxParagraph ecxSCX96661126"><BR></P></DIV>
<DIV style="PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-FAMILY: 宋体, sans-serif; FONT-SIZE: 12px; PADDING-TOP: 0px" class="ecxOutlineElement ecxLtr ecxSCX96661126">
<P style="BACKGROUND-COLOR: transparent; WORD-WRAP: break-word; COLOR: windowtext; FONT-SIZE: 6pt; VERTICAL-ALIGN: baseline" class="ecxParagraph ecxSCX96661126"><SPAN style="PADDING-BOTTOM: 0px; LINE-HEIGHT: 25px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; FONT-FAMILY: 'Segoe UI', sans-serif; COLOR: windowtext; FONT-SIZE: 14pt; PADDING-TOP: 0px" class="ecxTextRun ecxSCX96661126">thanks</SPAN></P></DIV></DIV></DIV></DIV> </div></body>
</html>