<font size=2 face="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>
</font>
<br><font size=3><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: jsbryant@us.ibm.com<br>
--------------------------------------------------------------------<br>
All the world's a stage and most of us are desperately unrehearsed.<br>
-- Sean
O'Casey<br>
--------------------------------------------------------------------</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">From:
</font><font size=1 face="sans-serif">"zhangyu (AI)"
<zhangyu11@huawei.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">To:
</font><font size=1 face="sans-serif">"OpenStack Development
Mailing List (not for usage questions)" <openstack-dev@lists.openstack.org>,
</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Cc:
</font><font size=1 face="sans-serif">"Luohao \(brian\)"
<brian.luohao@huawei.com></font>
<br><font size=1 color=#5f5f5f face="sans-serif">Date:
</font><font size=1 face="sans-serif">02/25/2014 08:20 PM</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Subject:
</font><font size=1 face="sans-serif">Re: [openstack-dev]
[Cinder] [Nova]Do you think volume force delete operation should not apply
to the volume being used?</font>
<br>
<hr noshade>
<br>
<br>
<br><font size=2 color=#004080 face="Calibri">IMHO, Attach/detach operations
can only be issued from the Nova side because they are in fact VM/instance
management operations. </font>
<br><font size=2 color=#004080 face="Calibri">Meanwhile, volume create/delete
are volume management stuffs, therefore Cinder exposes API for them.</font>
<br><font size=2 color=#004080 face="Calibri"> </font>
<br><font size=2 color=#004080 face="Calibri">Also, according to current
Cinder code base, no nova detach-volume action is issued from the execution
flow of a volume deletion.</font>
<br><font size=2 color=#004080 face="Calibri"> </font>
<br><font size=2 color=#004080 face="Calibri">Thank you for suggestions~</font>
<br><font size=2 color=#004080 face="Calibri"> </font>
<br><font size=2 face="Tahoma"><b>From:</b> Yuzhou (C) [</font><a href=mailto:vitas.yuzhou@huawei.com><font size=2 face="Tahoma">mailto:vitas.yuzhou@huawei.com</font></a><font size=2 face="Tahoma">]
<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?</font>
<br><font size=3> </font>
<br><font size=2 color=#004080 face="Calibri">I think
force delete = nova detach volume,then cinder delete volume </font>
<br><font size=2 color=#004080 face="Calibri"> </font>
<br><font size=2 color=#004080 face="Calibri">Volume status in db shoud
be modified after nova detach volume.</font>
<br><font size=2 color=#004080 face="Calibri"> </font>
<br><font size=2 color=#004080 face="Calibri">Thanks!</font>
<br><font size=2 color=#004080 face="Calibri"> </font>
<br><font size=2 color=#004080 face="Calibri"> </font>
<br><font size=2 face="Tahoma"><b>From:</b> zhangyu (AI) [</font><a href=mailto:zhangyu11@huawei.com><font size=2 color=blue face="Tahoma"><u>mailto:zhangyu11@huawei.com</u></font></a><font size=2 face="Tahoma">]
<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?</font>
<br><font size=3> </font>
<br><font size=2 color=#004080 face="Calibri">If I understand your question
correctly, the case you describe should be like the following:</font>
<br><font size=2 color=#004080 face="Calibri"> </font>
<br><font size=2 color=#004080 face="Calibri">Assume we have created both
an instance and a volume, then we try to attach that volume to the
instance.</font>
<br><font size=2 color=#004080 face="Calibri">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.</font>
<br><font size=2 color=#004080 face="Calibri">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”.</font>
<br><font size=2 color=#004080 face="Calibri">However, from the Nova side,
we see that the status of the deleted volume remains to be “attaching”.</font>
<br><font size=2 color=#004080 face="Calibri"> </font>
<br><font size=2 color=#004080 face="Calibri">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.</font>
<br><font size=2 color=#004080 face="Calibri">Is there any other suggestions?</font>
<br><font size=2 color=#004080 face="Calibri"> </font>
<br><font size=2 color=#004080 face="Calibri">Thanks!</font>
<br><font size=2 color=#004080 face="Calibri"> </font>
<br><font size=2 color=#004080 face="Calibri"> </font>
<br><font size=2 color=#004080 face="Calibri"> </font>
<br><font size=2 face="Tahoma"><b>From:</b> yunling [</font><a href=mailto:yunlingzeng@hotmail.com><font size=2 color=blue face="Tahoma"><u>mailto:yunlingzeng@hotmail.com</u></font></a><font size=2 face="Tahoma">]
<b><br>
Sent:</b> Monday, February 17, 2014 9:14 PM<b><br>
To:</b> </font><a href="mailto:openstack-dev@lists.openstack.org"><font size=2 color=blue face="Tahoma"><u>openstack-dev@lists.openstack.org</u></font></a><font size=2 face="Tahoma"><b><br>
Subject:</b> [openstack-dev] [Cinder]Do you think volume force delete operation
should not apply to the volume being used?</font>
<br><font size=3> </font>
<br><font size=4 face="sans-serif">Hi stackers: </font>
<br><font size=2> <br>
</font>
<br><font size=4 face="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. </font>
<br><font size=4 face="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. </font>
<br><font size=2> <br>
</font>
<br><font size=4 face="sans-serif">How do you think? </font>
<br><font size=1> </font>
<br><font size=1> </font>
<br><font size=4 face="sans-serif">thanks</font><tt><font size=2>_______________________________________________<br>
OpenStack-dev mailing list<br>
OpenStack-dev@lists.openstack.org<br>
</font></tt><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev"><tt><font size=2>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</font></tt></a><tt><font size=2><br>
</font></tt>
<br>