<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="GENERATOR" content="GtkHTML/4.6.4">
</head>
<body>
mån 2013-08-19 klockan 07:28 -0400 skrev Ofri Masad:
<blockquote type="CITE">
<pre>
Hi Karli
I've tried to reproduce this bug in 3.2 but couldn't.
Here is what I did. tell me where you did something different.
- created a DC called dc_a
- granted VmCreator roll to my_user
</pre>
</blockquote>
<br>
Granted where? System? DC?<br>
<br>
<blockquote type="CITE">
<pre>
- added a quota called quota_a to dc_a (unlimited resources for cpu, memory and storage). quota covers all clusters and all storage domains.
- added my_user as a consumer of quota_a
logged on to user portal as my_user:
- created a new VM (consuming quota_a)
</pre>
</blockquote>
<br>
Was the new VM blank, from a template, or both?<br>
<br>
<blockquote type="CITE">
<pre>
- added a disk to the VM (consuming quota_a)
- created snapshot from that vm
everything looks ok. the snapshot was created
</pre>
</blockquote>
<br>
What I did different was to grant VmCreator to my_group (where my_user is member). And then added my_group as consumer of quota. Please try that and see if it still works.<br>
<br>
/Karli<br>
<br>
<blockquote type="CITE">
<pre>
thanks
ofri
----- Original Message -----
<font color="#737373">> From: "Karli Sjöberg" <<a href="mailto:Karli.Sjoberg@slu.se">Karli.Sjoberg@slu.se</a>></font>
<font color="#737373">> To: "Ofri Masad" <<a href="mailto:omasad@redhat.com">omasad@redhat.com</a>></font>
<font color="#737373">> Cc: <a href="mailto:users@ovirt.org">users@ovirt.org</a></font>
<font color="#737373">> Sent: Monday, August 19, 2013 8:26:06 AM</font>
<font color="#737373">> Subject: Re: [Users] oVirt-3.2 users creating snapshots fail</font>
<font color="#737373">> </font>
<font color="#737373">> sön 2013-08-18 klockan 03:01 -0400 skrev Ofri Masad:</font>
<font color="#737373">> </font>
<font color="#737373">> </font>
<font color="#737373">> Hi Karli,</font>
<font color="#737373">> </font>
<font color="#737373">> First of all, thank you for your feedback.</font>
<font color="#737373">> I am not quite sure the thread you are referring to is relevant to the bug</font>
<font color="#737373">> you are witnessing.</font>
<font color="#737373">> </font>
<font color="#737373">> The bug in the thread was fixed only in 3.3 because it was only introduced in</font>
<font color="#737373">> 3.3 (the behavior may be the same).</font>
<font color="#737373">> anyway, I will try to reproduce your bug.</font>
<font color="#737373">> </font>
<font color="#737373">> meanwhile, try to verify the following:</font>
<font color="#737373">> - a storage quota exist which apply to the SD that the VM disks are located</font>
<font color="#737373">> on.</font>
<font color="#737373">> - the user is defined a consumer of that quota</font>
<font color="#737373">> - the disks of the VM are consuming that quota</font>
<font color="#737373">> </font>
<font color="#737373">> </font>
<font color="#737373">> Yes, yes and yes:) Still won´t let anyone snapshot.</font>
<font color="#737373">> </font>
<font color="#737373">> No one can snapshot even if I assign to an unlimited quota, as long as it´s</font>
<font color="#737373">> active(tried both audit and enforcing), no one is allowed to snapshot:(</font>
<font color="#737373">> </font>
<font color="#737373">> </font>
<font color="#737373">> </font>
<font color="#737373">> </font>
<font color="#737373">> when creating a snapshot the user is consuming quota (the same quota the disk</font>
<font color="#737373">> is consuming). so, if the user does not have consumer permission</font>
<font color="#737373">> for that quota, he cannot create a snapshot.</font>
<font color="#737373">> </font>
<font color="#737373">> </font>
<font color="#737373">> thanks</font>
<font color="#737373">> Ofri</font>
<font color="#737373">> </font>
<font color="#737373">> ----- Original Message -----</font>
<font color="#737373">> > From: "Karli Sjöberg" <<a href="mailto:Karli.Sjoberg@slu.se">Karli.Sjoberg@slu.se</a><<a href="mailto:Karli.Sjoberg@slu.se">mailto:Karli.Sjoberg@slu.se</a>>></font>
<font color="#737373">> > To: <a href="mailto:users@ovirt.org">users@ovirt.org</a><<a href="mailto:users@ovirt.org">mailto:users@ovirt.org</a>></font>
<font color="#737373">> > Sent: Wednesday, August 14, 2013 4:25:50 PM</font>
<font color="#737373">> > Subject: Re: [Users] oVirt-3.2 users creating snapshots fail</font>
<font color="#737373">> ></font>
<font color="#737373">> > Well, well, looki here, the issue is reported by at least two more users:</font>
<font color="#737373">> > <a href="http://lists.ovirt.org/pipermail/users/2013-June/014813.html">http://lists.ovirt.org/pipermail/users/2013-June/014813.html</a></font>
<font color="#737373">> ></font>
<font color="#737373">> > Reported fixed already for 3.3... Whereas I´ve just been able to upgrade to</font>
<font color="#737373">> > 3.2 after five months of bang-head-against-wall:ing:(</font>
<font color="#737373">> ></font>
<font color="#737373">> > I would very much like to see an oVirt-3.2.3 that includes this fix for</font>
<font color="#737373">> > Quotas, because sure enough just disabling quota made users able to take</font>
<font color="#737373">> > snapshots again, when quotas are something we plan on using quite heavily.</font>
<font color="#737373">> ></font>
<font color="#737373">> > /Karli</font>
<font color="#737373">> ></font>
<font color="#737373">> > ons 2013-08-14 klockan 12:45 +0000 skrev Karli Sjöberg:</font>
<font color="#737373">> ></font>
<font color="#737373">> ></font>
<font color="#737373">> > Hi!</font>
<font color="#737373">> ></font>
<font color="#737373">> > After upgrading from oVirt-3.1 to oVirt-3.2, users´s ability to create</font>
<font color="#737373">> > snapshots has disappeared. The only way to give users permission to take</font>
<font color="#737373">> > snapshots that I´ve found so far is to give them "DataCenterAdmin" or</font>
<font color="#737373">> > "Super</font>
<font color="#737373">> > User" in either System or DataCenter, and any other given Role is met by</font>
<font color="#737373">> > this lonely line in engine.log:</font>
<font color="#737373">> > 2013-08-14 14:27:01,106 WARN</font>
<font color="#737373">> > [org.ovirt.engine.core.bll.CreateAllSnapshotsFromVmCommand]</font>
<font color="#737373">> > (ajp--127.0.0.1-8702-19) CanDoAction of action CreateAllSnapshotsFromVm</font>
<font color="#737373">> > failed.</font>
<font color="#737373">> > Reasons:VAR__ACTION__CREATE,VAR__TYPE__SNAPSHOT,USER_NOT_AUTHORIZED_TO_PERFORM_ACTION</font>
<font color="#737373">> ></font>
<font color="#737373">> > I even tried to create an admin Role with everything checked, all</font>
<font color="#737373">> > permissions</font>
<font color="#737373">> > granted, but a user or group associated with that Role still couldn´t take</font>
<font color="#737373">> > snapshots. Only the built-in Admin roles seems to function correctly. How</font>
<font color="#737373">> > can I start to troubleshoot this issue?</font>
<font color="#737373">> ></font>
<font color="#737373">> ></font>
<font color="#737373">> > --</font>
<font color="#737373">> ></font>
<font color="#737373">> > Med Vänliga Hälsningar</font>
<font color="#737373">> > -------------------------------------------------------------------------------</font>
<font color="#737373">> > Karli Sjöberg</font>
<font color="#737373">> > Swedish University of Agricultural Sciences</font>
<font color="#737373">> > Box 7079 (Visiting Address Kronåsvägen 8)</font>
<font color="#737373">> > S-750 07 Uppsala, Sweden</font>
<font color="#737373">> > Phone: +46-(0)18-67 15 66</font>
<font color="#737373">> > <a href="mailto:karli.sjoberg@slu.se">karli.sjoberg@slu.se</a><<a href="mailto:karli.sjoberg@slu.se">mailto:karli.sjoberg@slu.se</a>></font>
<font color="#737373">> ></font>
<font color="#737373">> > --</font>
<font color="#737373">> ></font>
<font color="#737373">> > Med Vänliga Hälsningar</font>
<font color="#737373">> > -------------------------------------------------------------------------------</font>
<font color="#737373">> > Karli Sjöberg</font>
<font color="#737373">> > Swedish University of Agricultural Sciences</font>
<font color="#737373">> > Box 7079 (Visiting Address Kronåsvägen 8)</font>
<font color="#737373">> > S-750 07 Uppsala, Sweden</font>
<font color="#737373">> > Phone: +46-(0)18-67 15 66</font>
<font color="#737373">> > <a href="mailto:karli.sjoberg@slu.se">karli.sjoberg@slu.se</a><<a href="mailto:karli.sjoberg@slu.se">mailto:karli.sjoberg@slu.se</a>></font>
<font color="#737373">> ></font>
<font color="#737373">> > _______________________________________________</font>
<font color="#737373">> > Users mailing list</font>
<font color="#737373">> > <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><<a href="mailto:Users@ovirt.org">mailto:Users@ovirt.org</a>></font>
<font color="#737373">> > <a href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a></font>
<font color="#737373">> ></font>
<font color="#737373">> </font>
<font color="#737373">> </font>
<font color="#737373">> --</font>
<font color="#737373">> </font>
<font color="#737373">> Med Vänliga Hälsningar</font>
<font color="#737373">> -------------------------------------------------------------------------------</font>
<font color="#737373">> Karli Sjöberg</font>
<font color="#737373">> Swedish University of Agricultural Sciences</font>
<font color="#737373">> Box 7079 (Visiting Address Kronåsvägen 8)</font>
<font color="#737373">> S-750 07 Uppsala, Sweden</font>
<font color="#737373">> Phone: +46-(0)18-67 15 66</font>
<font color="#737373">> <a href="mailto:karli.sjoberg@slu.se">karli.sjoberg@slu.se</a><<a href="mailto:karli.sjoberg@adm.slu.se">mailto:karli.sjoberg@adm.slu.se</a>></font>
<font color="#737373">> </font>
</pre>
</blockquote>
<br>
<table cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td>-- <br>
<br>
Med Vänliga Hälsningar<br>
-------------------------------------------------------------------------------<br>
Karli Sjöberg<br>
Swedish University of Agricultural Sciences<br>
Box 7079 (Visiting Address Kronåsvägen 8)<br>
S-750 07 Uppsala, Sweden<br>
Phone: +46-(0)18-67 15 66<br>
<a href="mailto:karli.sjoberg@adm.slu.se">karli.sjoberg@slu.se</a> </td>
</tr>
</tbody>
</table>
</body>
</html>