<div dir="ltr"><div class="gmail_default"><div class="gmail_default"><font face="arial, helvetica, sans-serif">The last workaround I can think of, is to set the quota mode to Audit,</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">create a new quota and use this new quota for the new disk</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">Please, can you open a bug and include steps how to get to this state?</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">Thanks</font></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 9 February 2018 at 13:28, Donny Davis <span dir="ltr"><<a href="mailto:donny@fortnebula.com" target="_blank">donny@fortnebula.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="color:rgb(54,54,54);font-family:"Open Sans",Helvetica,Arial,sans-serif;font-size:12px">Error while executing action: Cannot edit Quota. Quota is not valid.</span><br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 9, 2018 at 5:33 AM, Andrej Krejcir <span dir="ltr"><<a href="mailto:akrejcir@redhat.com" target="_blank">akrejcir@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default"><div class="gmail_default"><font face="arial, helvetica, sans-serif">The error can mean that a quota does not exist for the DC, or was saved in an invalid state.</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">Try these steps in the UI:</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">- Set the quota mode to Audit on the DC</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">- Check the DC details page, quota tab, if there is a quota defined</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"> - If not, create one</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"> - If it is, try editing it and save it. The UI will save a valid quota. </font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">- Set the quota mode back to Disabled.</font></div></div></div><div class="m_7909284982658054657HOEnZb"><div class="m_7909284982658054657h5"><div class="gmail_extra"><br><div class="gmail_quote">On 9 February 2018 at 00:00, Donny Davis <span dir="ltr"><<a href="mailto:donny@fortnebula.com" target="_blank">donny@fortnebula.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">So now when I create a new disk on the same domain with quota disabled, I get <ul style="box-sizing:border-box;margin-top:0px;margin-bottom:10px;color:rgb(54,54,54);font-family:"Open Sans",Helvetica,Arial,sans-serif;font-size:12px"><li style="box-sizing:border-box">Cannot edit Virtual Disk. Quota is not valid.</li></ul><div><font color="#363636" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px"><br></span></font></div><div><font color="#363636" face="Open Sans, Helvetica, Arial, sans-serif"><span style="font-size:12px">This is a new machine, created after the above issue was solved</span></font></div></div><div class="m_7909284982658054657m_-8776886238268693755HOEnZb"><div class="m_7909284982658054657m_-8776886238268693755h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 8, 2018 at 11:56 AM, Donny Davis <span dir="ltr"><<a href="mailto:donny@fortnebula.com" target="_blank">donny@fortnebula.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Disabling the quota for that DC did the trick. The funny part is it was never enabled. I put it in audit mode, tried a delete, got the error... and then disabled it. <div><br></div><div>Worked, I am a happy camper... Thanks guys. </div></div><div class="m_7909284982658054657m_-8776886238268693755m_3969121781036694721HOEnZb"><div class="m_7909284982658054657m_-8776886238268693755m_3969121781036694721h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 8, 2018 at 11:51 AM, Andrej Krejcir <span dir="ltr"><<a href="mailto:akrejcir@redhat.com" target="_blank">akrejcir@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default"><font face="arial, helvetica, sans-serif">Or, it should be enough to disable the quota in the data center, then change it for the disk and reenable it again.</font><br></div></div><div class="m_7909284982658054657m_-8776886238268693755m_3969121781036694721m_3564535468493274528HOEnZb"><div class="m_7909284982658054657m_-8776886238268693755m_3969121781036694721m_3564535468493274528h5"><div class="gmail_extra"><br><div class="gmail_quote">On 8 February 2018 at 17:42, Andrej Krejcir <span dir="ltr"><<a href="mailto:akrejcir@redhat.com" target="_blank">akrejcir@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default"><div class="gmail_default"><font face="arial, helvetica, sans-serif">Do the operations work in the UI?</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">If not, then the DB has to be changed manually:</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">$ psql engine</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><span style="font-family:arial,helvetica,sans-serif">UPDATE image_storage_domain_map sd_map</span></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">SET quota_id = NULL</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">FROM images</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">WHERE sd_map.image_id = images.image_guid</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"> AND images.image_group_id = 'ID_OF_THE_DISK';</font></div><div class="gmail_default"><br></div></div></div><div class="m_7909284982658054657m_-8776886238268693755m_3969121781036694721m_3564535468493274528m_3075440810055285710HOEnZb"><div class="m_7909284982658054657m_-8776886238268693755m_3969121781036694721m_3564535468493274528m_3075440810055285710h5"><div class="gmail_extra"><br><div class="gmail_quote">On 8 February 2018 at 17:06, Donny Davis <span dir="ltr"><<a href="mailto:donny@fortnebula.com" target="_blank">donny@fortnebula.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Any operation on the disk throws this error, to include changing the quota.</div><div class="m_7909284982658054657m_-8776886238268693755m_3969121781036694721m_3564535468493274528m_3075440810055285710m_4749396214822713429HOEnZb"><div class="m_7909284982658054657m_-8776886238268693755m_3969121781036694721m_3564535468493274528m_3075440810055285710m_4749396214822713429h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 8, 2018 at 11:03 AM, Andrej Krejcir <span dir="ltr"><<a href="mailto:akrejcir@redhat.com" target="_blank">akrejcir@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default"><div class="gmail_default"><font face="arial, helvetica, sans-serif">The error message means that the data center (storage pool) where the quota is defined is different from the data center where the disk is.</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">It seems like a bug, as it should not be possible to assign a quota to a disk from a different data center.</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">To fix it, try setting the quota of the disk to any quota from the same data center.</font></div></div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Regards,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Andrej</div><br></div><div><div class="m_7909284982658054657m_-8776886238268693755m_3969121781036694721m_3564535468493274528m_3075440810055285710m_4749396214822713429m_-6673388941631337544h5"><div class="gmail_extra"><br><div class="gmail_quote">On 8 February 2018 at 16:37, Martin Sivak <span dir="ltr"><<a href="mailto:msivak@redhat.com" target="_blank">msivak@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Andrej, this might be related to the recent fixes of yours in that<br>
area. Can you take a look please?<br>
<br>
Best regards<br>
<br>
Martin Sivak<br>
<div><div class="m_7909284982658054657m_-8776886238268693755m_3969121781036694721m_3564535468493274528m_3075440810055285710m_4749396214822713429m_-6673388941631337544m_5459600326200381378m_7696155255529976727m_4948470041397478652h5"><br>
On Thu, Feb 8, 2018 at 4:18 PM, Donny Davis <<a href="mailto:donny@fortnebula.com" target="_blank">donny@fortnebula.com</a>> wrote:<br>
> Ovirt 4.2 has been humming away quite nicely for me in the last few months,<br>
> and now I am hitting an issue when try to touch any api call that has to do<br>
> with a specific disk. This disk resides on a hyperconverged DC, and none of<br>
> the other disks seem to be affected. Here is the error thrown.<br>
><br>
> 2018-02-08 10:13:20,005-05 ERROR<br>
> [org.ovirt.engine.core.bll.sto<wbr>rage.disk.RemoveDiskCommand] (default task-22)<br>
> [7b48d1ec-53a7-497a-af8e-938f3<wbr>0a321cf] Error during ValidateFailure.:<br>
> org.ovirt.engine.core.bll.quot<wbr>a.InvalidQuotaParametersExcept<wbr>ion: Quota<br>
> 6156b8dd-50c9-4e8f-b1f3-4a6449<wbr>b02c7b does not match storage pool<br>
> 5a497956-0380-021e-0025-000000<wbr>00035e<br>
><br>
><br>
><br>
> Any ideas what can be done to fix this?<br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> Users mailing list<br>
> <a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
> <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/users</a><br>
><br>
</blockquote></div><br></div></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>