<div dir="ltr">Hi Eli,<div><br></div><div>Yes this is newly created 3.5 environment with engine-setup.</div><div class="gmail_extra"><br><div class="gmail_quote">2014-12-11 17:13 GMT+08:00 Eli Mesika <span dir="ltr">&lt;<a href="mailto:emesika@redhat.com" target="_blank">emesika@redhat.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br>
<br>
----- Original Message -----<br>
&gt; From: &quot;Oved Ourfali&quot; &lt;<a href="mailto:ovedo@redhat.com">ovedo@redhat.com</a>&gt;<br>
&gt; To: &quot;plysan&quot; &lt;<a href="mailto:plysab@gmail.com">plysab@gmail.com</a>&gt;, &quot;Eli Mesika&quot; &lt;<a href="mailto:emesika@redhat.com">emesika@redhat.com</a>&gt;<br>
&gt; Cc: &quot;<a href="mailto:Users@ovirt.org">Users@ovirt.org</a> List&quot; &lt;<a href="mailto:users@ovirt.org">users@ovirt.org</a>&gt;<br>
&gt; Sent: Thursday, December 11, 2014 9:48:32 AM<br>
&gt; Subject: Re: [ovirt-users] Problems while adding external event to ovirt<br>
&gt;<br>
&gt; According to the log he is looking for the INJECT_EXTERNAL_EVENTS action<br>
&gt; group, on the System.<br>
&gt; I guess it means this action group isn&#39;t part of the SuperUser role.<br>
&gt;<br>
&gt; Eli - you commit ecd7658c42b799d8632372de9fc6695a22705435 shows you added<br>
&gt; this action group, but not added to the SuperUser role.<br>
&gt; What was the reason for that?<br>
&gt; I also don&#39;t see an option to add this action group to roles.<br>
&gt; Maybe only the API supports creating a new custom role with this action<br>
&gt; group.<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Oved<br>
&gt;<br>
&gt; ----- Original Message -----<br>
&gt; &gt; From: &quot;plysan&quot; &lt;<a href="mailto:plysab@gmail.com">plysab@gmail.com</a>&gt;<br>
&gt; &gt; To: &quot;<a href="mailto:Users@ovirt.org">Users@ovirt.org</a> List&quot; &lt;<a href="mailto:users@ovirt.org">users@ovirt.org</a>&gt;<br>
&gt; &gt; Sent: Thursday, December 11, 2014 9:20:34 AM<br>
&gt; &gt; Subject: Re: [ovirt-users] Problems while adding external event to ovirt<br>
&gt; &gt;<br>
&gt; &gt; Oh, forgot the environment:<br>
&gt; &gt;<br>
&gt; &gt; ovirt-engine-backend-3.5.1-0.0.master.20141112062025.git2c24911.el6.noarch<br>
&gt; &gt; ovirt-engine-restapi-3.5.1-0.0.master.20141112062025.git2c24911.el6.noarch<br>
&gt; &gt;<br>
&gt; &gt; 2014-12-11 15:18 GMT+08:00 plysan &lt; <a href="mailto:plysab@gmail.com">plysab@gmail.com</a> &gt; :<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Hi,<br>
&gt; &gt;<br>
&gt; &gt; When I try to add an external event to ovirt using curl, I get permission<br>
&gt; &gt; issue:<br>
&gt; &gt;<br>
&gt; &gt; $ curl -X POST --insecure -u admin@internal:abc123 -H &quot;Content-Type:<br>
&gt; &gt; application/json&quot; <a href="https://192.168.3.226/ovirt-engine/api/events" target="_blank">https://192.168.3.226/ovirt-engine/api/events</a> --data<br>
&gt; &gt; &#39;{&quot;origin&quot;:&quot;thirdParty&quot;,&quot;severity&quot;:&quot;normal&quot;,&quot;custom_id&quot;:&quot;123&quot;,&quot;description&quot;:&quot;hello<br>
&gt; &gt; external event.&quot;}&#39;<br>
&gt; &gt; &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;<br>
&gt; &gt; &lt;fault&gt;<br>
&gt; &gt; &lt;reason&gt;Operation Failed&lt;/reason&gt;<br>
&gt; &gt; &lt;detail&gt;[User is not authorized to perform this action.]&lt;/detail&gt;<br>
&gt; &gt; &lt;/fault&gt;<br>
&gt; &gt;<br>
&gt; &gt; The engine.log says:<br>
&gt; &gt;<br>
&gt; &gt; 2014-12-11 14:52:33,725 INFO<br>
&gt; &gt; [org.ovirt.engine.core.bll.aaa.LoginUserCommand]<br>
&gt; &gt; (ajp--127.0.0.1-8702-7) Running command: LoginUserCommand internal: false.<br>
&gt; &gt; 2014-12-11 14:52:33,732 INFO<br>
&gt; &gt; [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]<br>
&gt; &gt; (ajp--127.0.0.1-8702-7) Correlation ID: null, Call Stack: null, Custom<br>
&gt; &gt; Event<br>
&gt; &gt; ID: -1, Message: User admin logged in.<br>
&gt; &gt; 2014-12-11 14:52:33,750 INFO<br>
&gt; &gt; [org.ovirt.engine.core.bll.AddExternalEventCommand] (ajp--127.0.0.1-8702-7)<br>
&gt; &gt; [6947ffae] No permission found for user<br>
&gt; &gt; fdfc627c-d875-11e0-90f0-83df133b58cc<br>
&gt; &gt; or one of the groups he is member of, when running action AddExternalEvent,<br>
&gt; &gt; Required permissions are: Action type: ADMIN Action group:<br>
&gt; &gt; INJECT_EXTERNAL_EVENTS Object type: System Object ID:<br>
&gt; &gt; aaa00000-0000-0000-0000-123456789aaa.<br>
&gt; &gt; 2014-12-11 14:52:33,751 WARN<br>
&gt; &gt; [org.ovirt.engine.core.bll.AddExternalEventCommand] (ajp--127.0.0.1-8702-7)<br>
&gt; &gt; [6947ffae] CanDoAction of action AddExternalEvent failed.<br>
&gt; &gt; Reasons:USER_NOT_AUTHORIZED_TO_PERFORM_ACTION<br>
&gt; &gt; 2014-12-11 14:52:33,765 ERROR<br>
&gt; &gt; [org.ovirt.engine.api.restapi.resource.AbstractBackendResource]<br>
&gt; &gt; (ajp--127.0.0.1-8702-7) Operation Failed: [User is not authorized to<br>
&gt; &gt; perform<br>
&gt; &gt; this action.]<br>
&gt; &gt; 2014-12-11 14:52:33,779 INFO<br>
&gt; &gt; [org.ovirt.engine.core.bll.aaa.LogoutBySessionCommand]<br>
&gt; &gt; (ajp--127.0.0.1-8702-7) [21c639e1] Running command: LogoutBySessionCommand<br>
&gt; &gt; internal: false.<br>
&gt; &gt; 2014-12-11 14:52:33,780 INFO<br>
&gt; &gt; [org.ovirt.engine.core.bll.aaa.LogoutUserCommand] (ajp--127.0.0.1-8702-7)<br>
&gt; &gt; [6de8f467] Running command: LogoutUserCommand internal: false.<br>
&gt; &gt; 2014-12-11 14:52:33,790 INFO<br>
&gt; &gt; [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector]<br>
&gt; &gt; (ajp--127.0.0.1-8702-7) [6de8f467] Correlation ID: 6de8f467, Call Stack:<br>
&gt; &gt; null, Custom Event ID: -1, Message: User admin logged out.<br>
&gt; &gt;<br>
&gt; &gt; Is this the expected behavior? Or is there anything i missed?<br>
<br>
</div></div>Is this a newly created 3.5 DB ???<br>
I suspect that maybe this is a result of 3.2 DB squashing work<br>
If this is an upgraded env please specify from and target versions<br>
<br>
Thanks<br>
<div class="HOEnZb"><div class="h5"><br>
&gt; &gt;<br>
&gt; &gt; thanks<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; Users mailing list<br>
&gt; &gt; <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
&gt; &gt; <a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
&gt; &gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div></div>