<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 30, 2022 at 2:42 PM Jonathan Proulx <<a href="mailto:jon@csail.mit.edu">jon@csail.mit.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, Mar 30, 2022 at 08:16:12AM +0000, Derek O keeffe wrote:<br>
:Hi all,<br>
:We are having an issue with a volume. The volume was created and attached to an instance that was then deleted. We now need to attach the volume to another instance to rescue the data on it but it still thinks it's attached to the deleted instance and we can't "manage attachments" or view the details of the volume.<br>
<br>
When you say<br>
<br>
:We have tried forcing it from the cli to detach but with no luck. We were thinking of doing it through the DB but said we'd askhere first in case anyone has experienced the same and has a better way of approaching the issue. Thanks in advance.<br>
<br>
is this what you tried?<br>
<br>
cinder reset-state --attach-status detached <UUID><br></blockquote><div><br></div><div>Assuming your cloud is based on Queens or later, these commands may also help:</div><div><br></div><div> cinder --os-volume-api-version 3.44 attachment-list</div><div>cinder --os-volume-api-version 3.44 attachment-delete <attachment ID></div><div><br></div><div>Alan<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
I've had the stale attachement problem a number of times and that<br>
one's always worked for me so here's hoping it's not what you tried...<br>
<br>
-Jon<br>
<br>
</blockquote></div></div>