<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 25, 2016 at 7:17 PM, 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">Hi,<br>
<span class=""><br>
> The connection to optimizer is being done by client's browser and not the<br>
> engine...<br>
> I used a private network which was not accessible from the browser.<br>
<br>
</span>That is exactly the case. Glad to see you were able to fix it.<br></blockquote><div><br></div><div>Perhaps worth adding a one-liner to the oVirt website mentioning this.</div><div>Y.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
--<br>
Martin Sivak<br>
SLA / oVirt<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Wed, May 25, 2016 at 5:38 PM, Kapetanakis Giannis<br>
<<a href="mailto:bilias@edu.physics.uoc.gr">bilias@edu.physics.uoc.gr</a>> wrote:<br>
> On 25/05/16 14:32, Kapetanakis Giannis wrote:<br>
>><br>
>> On 25/05/16 14:28, Kapetanakis Giannis wrote:<br>
>>><br>
>>> Hi,<br>
>>><br>
>>> I've just setup optimizer service following<br>
>>><br>
>>> <a href="http://www.ovirt.org/develop/release-management/features/sla/optaplanner/" rel="noreferrer" target="_blank">http://www.ovirt.org/develop/release-management/features/sla/optaplanner/</a><br>
>>> and<br>
>>> <a href="https://github.com/oVirt/ovirt-optimizer" rel="noreferrer" target="_blank">https://github.com/oVirt/ovirt-optimizer</a><br>
>>><br>
>>> I can access optimizer's interface and get the the solution result from<br>
>>> both http and https.<br>
>>> I can access it from both my pc and from ovirt-engine host with a browser<br>
>>> at url<br>
>>> ovirt-optimizer/result/Cluster_ID<br>
>>><br>
>>> However in ovirt-engine interface I see<br>
>>> Status: Could not connect to the optimizer service [status code: 0]<br>
>>><br>
>>> Also I see no connection attempt from ovirt-engine to optimizer (with<br>
>>> logging on optimizer's firewall).<br>
>>><br>
>>> Engine is loading the conf:<br>
>>> 2016-05-25 13:54:40,395 INFO<br>
>>> [org.ovirt.engine.ui.frontend.server.gwt.plugin.PluginDataManager] (default<br>
>>> task-20) [] Reading UI plugin configuration<br>
>>> '/etc/ovirt-engine/ui-plugins/ovirt-optimizer-config.json'<br>
>>><br>
>>> /etc/ovirt-engine/ui-plugins/ovirt-optimizer-config.json:<br>
>>> "config": { "baseurl":<br>
>>> "<a href="https://optimizer.example.com/ovirt-optimizer/result/" rel="noreferrer" target="_blank">https://optimizer.example.com/ovirt-optimizer/result/</a>"<br>
>>><br>
>>> tried also<br>
>>> "config": { "baseurl":<br>
>>> "<a href="http://optimizer.example.com/ovirt-optimizer/result/" rel="noreferrer" target="_blank">http://optimizer.example.com/ovirt-optimizer/result/</a>"<br>
>>> incase there was a problem with optimizer's certificate.<br>
>>><br>
>>> Any ideas? How can I debug why the engine is not doing any attempt to get<br>
>>> optimizer's result?<br>
>>><br>
>>> best regards,<br>
>>><br>
>>> Giannis<br>
>>><br>
>><br>
>> Forgot to mention versions:<br>
>><br>
>> optimizer is Centos 7 ovirt-optimizer-jboss-0.9.1-2.el7.centos.noarch<br>
>> engine is Centos 6 ovirt-engine-3.6.6.2-1.el6.noarch,<br>
>> ovirt-optimizer-ui-0.9.1-2.el6.noarch<br>
>><br>
>> G<br>
><br>
><br>
> I think I figured this out.<br>
> The connection to optimizer is being done by client's browser and not the<br>
> engine...<br>
> I used a private network which was not accessible from the browser.<br>
><br>
><br>
> G<br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
> <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div></div>