<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 18, 2016 at 1:32 PM, David Caro <span dir="ltr"><<a href="mailto:dcaro@redhat.com" target="_blank">dcaro@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><br>
Hi everyone!<br>
<br>
<br>
I'm having some issues when trying to run the ovirt system tests from ovirt<br>
master branch, and I need some help from you guys.<br></blockquote><div><br></div><div><a href="https://bugzilla.redhat.com/show_bug.cgi?id=1328011">https://bugzilla.redhat.com/show_bug.cgi?id=1328011</a></div><div>Y.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<br>
The issue is that when trying to migrate a vm through the api, I get the error:<br>
<br>
RequestError:<br>
status: 400<br>
reason: Bad Request<br>
detail: User is not authorized to perform this action.<br>
<br>
<br>
That does not happen when doing the same through the ui, the vm is migrated<br>
correctly.<br>
<br>
The engine logs don't add much more details:<br>
<br>
2016-04-18 06:04:15,393 INFO [org.ovirt.engine.core.bll.MigrateVmToServerCommand] (default task-15) [29237280] No permission found for user '0000001a-001a-001a-001a-0000000002dd' or one of the groups he is member of, when running action 'MigrateVmToServer', Required permissions are: Action type: 'USER' Action group: 'CREATE_VM' Object type: 'Cluster' Object ID: 'null'.<br>
2016-04-18 06:04:15,393 WARN [org.ovirt.engine.core.bll.MigrateVmToServerCommand] (default task-15) [29237280] Validation of action 'MigrateVmToServer' failed for user admin@internal-authz. Reasons: VAR__ACTION__MIGRATE,VAR__TYPE__VM,USER_NOT_AUTHORIZED_TO_PERFORM_ACTION<br>
2016-04-18 06:04:15,413 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (default task-15) [] Operation Failed: [User is not authorized to perform this action.]<br>
<br>
<br>
Something that looks odd to me too, is that in the roles, when you edit the<br>
'SuperUser' role (the one the admin user belongs to) there there's one<br>
permission missing, the 'VM->Provisioning Operations->Create Instance', and<br>
can't be added (it's greyed out), not sure if it's related though, I can pass<br>
you a screenshot if you want.<br>
<br>
<br>
I can give you access to an environment where that happens and more<br>
details/logs/etc if you want to look deeper into it.<br>
<br>
<br>
Thanks!<br>
<span class=""><font color="#888888"><br>
<br>
--<br>
David Caro<br>
<br>
Red Hat S.L.<br>
Continuous Integration Engineer - EMEA ENG Virtualization R&D<br>
<br>
Tel.: <a href="tel:%2B420%20532%20294%20605" value="+420532294605">+420 532 294 605</a><br>
Email: <a href="mailto:dcaro@redhat.com">dcaro@redhat.com</a><br>
IRC: dcaro|dcaroest@{freenode|oftc|redhat}<br>
Web: <a href="http://www.redhat.com" rel="noreferrer" target="_blank">www.redhat.com</a><br>
RHT Global #: 82-62605<br>
</font></span></blockquote></div><br></div></div>