<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-forward-container"><br>
<br>
-------- Message original --------
<table class="moz-email-headers-table" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Sujet: </th>
<td>Re: [Users] Disk state - Illegal?</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Date : </th>
<td>Mon, 14 Oct 2013 16:02:29 +0200</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">De : </th>
<td>Nathanaël Blanchet <a class="moz-txt-link-rfc2396E" href="mailto:blanchet@abes.fr"><blanchet@abes.fr></a></td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Pour : </th>
<td>Liron Aravot <a class="moz-txt-link-rfc2396E" href="mailto:laravot@redhat.com"><laravot@redhat.com></a></td>
</tr>
</tbody>
</table>
<br>
<br>
<pre>Le 14/10/2013 09:19, Liron Aravot a écrit :
>
> ----- Original Message -----
>> From: "Andrew Lau" <a class="moz-txt-link-rfc2396E" href="mailto:andrew@andrewklau.com"><andrew@andrewklau.com></a>
>> To: "Dan Ferris" <a class="moz-txt-link-rfc2396E" href="mailto:dferris@prometheusresearch.com"><dferris@prometheusresearch.com></a>
>> Cc: <a class="moz-txt-link-abbreviated" href="mailto:Users@ovirt.org">Users@ovirt.org</a>
>> Sent: Monday, October 14, 2013 4:53:51 AM
>> Subject: Re: [Users] Disk state - Illegal?
>>
>> I was just wondering, did anyone ever find the root cause of this issue?
> Hi,
> Disk will be in illegal status in case that ovirt failed to initiate the delete task for it,
> as the engine can't tell what's the exact disk state at this stage (on what phase the delete operation has failed) - the disk status is shown is illegal.
> Therefore there might be many possible reasons, each issue that will fail the creation of the delete task would cause the disk to remain in that status (along permissions issues)
> The disk deletion won't succeed till those issues would be resolved.
That's okay, but how can I see the reason of the issue? I've been
looking for into /var/log/ovirt-engine/engine.log on the engine but I
haven't found anything about it. I failed to remove this disk with the
webadmin or the API. It's very annoying because it is a 100GB disk on a
SAN and ovirt considers that there is no left space enough on the
relevant storage domain to create any more vms...
>> Mine still seems to be doing the same thing, is it a permission issue or a
>> bug?
>>
>>
>> On Fri, Sep 27, 2013 at 12:28 PM, Dan Ferris < <a class="moz-txt-link-abbreviated" href="mailto:dferris@prometheusresearch.com">dferris@prometheusresearch.com</a>
>>> wrote:
>>
>> I was off today, so I just saw this. I will try it out tomorrow.
>>
>> Thanks!
>>
>> Dan
>>
>>
>> On 9/25/2013 8:53 PM, Andrew Lau wrote:
>>
>>
>>
>> I noticed that too, I wasn't sure if it was a bug or just how I had
>> setup my NFS share..
>>
>> There were three steps I did to remove the disk images, I'm sure there's
>> a 100% easier solution..:
>>
>> I found the easiest way (graphically) was go to your
>> <a class="moz-txt-link-freetext" href="https://ovirtengine/api/disks">https://ovirtengine/api/disks</a> and so a search for the illegal disk.
>> Append the extra ID eg. <diskhref="/api/disks/lk342- dfsdf...
>>
>> into your URL this'll give you your image ID.
>>
>> Go to your storage share:
>> cd /data/storage-id/master/vms/ storage-id
>> grep -ir 'vmname' *
>> You'll find the image-id reference here too.
>>
>> Then the image you will want to remove is in the
>> /data/storage-id/images/image- id
>> I assume you could safely remove this whole folder if you wanted to
>> delete the disk.
>>
>> To remove the illegal state I did it through the API so again with the
>> URL above <a class="moz-txt-link-freetext" href="https://ovirtengine/disks/">https://ovirtengine/disks/</a> disk-id send a DELETE using HTTP/CURL
>>
>> Again, this was a poor mans solution but it worked for me.
>>
>> On Thu, Sep 26, 2013 at 4:04 AM, Dan Ferris
>> < dferris@prometheusresearch. com
>> <mailto: dferris@ prometheusresearch.com >>wrote:
>>
>>
>> Hi,
>>
>> I have another hopefully simple question.
>>
>> One VM that I am trying to remove says that it's disk state is
>> "illegal" and when I try to remove the disk it says that it failed
>> to initiate the removing of the disk.
>>
>> Is there an easy way to get rid of these illegal disk images?
>>
>> Dan
>> ______________________________ ___________________
>> Users mailing list
>> <a class="moz-txt-link-abbreviated" href="mailto:Users@ovirt.org">Users@ovirt.org</a> <mailto: <a class="moz-txt-link-abbreviated" href="mailto:Users@ovirt.org">Users@ovirt.org</a> >
>> <a class="moz-txt-link-freetext" href="http://lists.ovirt.org/__">http://lists.ovirt.org/__</a> mailman/listinfo/users
>> <a class="moz-txt-link-rfc2396E" href="http://lists.ovirt.org/mailman/listinfo/users">< http://lists.ovirt.org/ mailman/listinfo/users ></a>
>>
>>
>> ______________________________ _________________
>> Users mailing list
>> <a class="moz-txt-link-abbreviated" href="mailto:Users@ovirt.org">Users@ovirt.org</a>
>> <a class="moz-txt-link-freetext" href="http://lists.ovirt.org/">http://lists.ovirt.org/</a> mailman/listinfo/users
>>
>>
>> _______________________________________________
>> Users mailing list
>> <a class="moz-txt-link-abbreviated" href="mailto:Users@ovirt.org">Users@ovirt.org</a>
>> <a class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a>
>>
> _______________________________________________
> Users mailing list
> <a class="moz-txt-link-abbreviated" href="mailto:Users@ovirt.org">Users@ovirt.org</a>
> <a class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a>
--
Nathanaël Blanchet
Supervision réseau
Pôle exploitation et maintenance
Département des systèmes d'information
227 avenue Professeur-Jean-Louis-Viala
34193 MONTPELLIER CEDEX 5         
Tél. 33 (0)4 67 54 84 55
Fax 33 (0)4 67 54 84 14
<a class="moz-txt-link-abbreviated" href="mailto:blanchet@abes.fr">blanchet@abes.fr</a>
</pre>
<br>
</div>
<br>
</body>
</html>