Hello,
please find enclosed the server.log file.
There is no /var/log/ovirt-optimizer/jboss/ovirt-optimizer.log even not in
/usr/share/ovirt-engine-jboss-as/standalone/log/
Hans-Joachim
> Sent: Tuesday, June 23, 2015 at 10:10 AM
> From: "Roy Golan" <rgolan(a)redhat.com>
> To: "Doron Fediuck" <dfediuck(a)redhat.com>
> Cc: Hans-Joachim <rni(a)chef.net>, users(a)ovirt.org, "Martin Sivak"
<msivak(a)redhat.com>
> Subject: Re: [ovirt-users] Problem connecting to ovirt-optimizer machine
>
> On 06/21/2015 12:18 PM, Doron Fediuck wrote:
>> On 18/06/15 17:56, Hans-Joachim wrote:
>>> Hello,
>>>
>>> I'm playing around with the optimizer. For a full CentOS 6 oVIRT 3.5.3
cluster, I've installed a CentOS7 ovirt-optimizer machine as described in "Trying
out oVirt's Probabilistic Optimizer".
>>>
>>> All works fine... the only thing is, I can't get a connection form the
engine.
>>> "Status: Data refresh failed: 0"
>>>
>>> When I try from this host a:
>>>> telnet ovirt-optimizer 8080
>>> GET /ovirt-optimizer/result/
>>> .....
>>> The requested resource (Could not find resource for full path:
http://ovirt.optimizer:8080/ovirt-optimizer/result/) is not available.
>>> .....
>>>
>>> server.log shows
>>> ...
>>> 16:44:01,841 FEIN [org.jboss.resteasy.core.SynchronousDispatcher]
(http--0.0.0.0-8080-1) PathInfo: /result/
>>> 16:44:01,842 FEIN [org.jboss.resteasy.core.SynchronousDispatcher]
(http--0.0.0.0-8080-1) Failed executing GET /result/:
org.jboss.resteasy.spi.NotFoundException: Could not find resource for full path:
http://ovirt-optimizer:8080/ovirt-optimizer/result/
>>> at org.jboss.resteasy.core.registry.Segment.match(Segment.java:81)
[resteasy-jaxrs-2.3.2.Final.jar:]
>>> at
org.jboss.resteasy.core.registry.SimpleSegment.matchSimple(SimpleSegment.java:33)
[resteasy-jaxrs-2.3.2.Final.jar:]
>>> at
org.jboss.resteasy.core.registry.RootSegment.matchChildren(RootSegment.java:327)
[resteasy-jaxrs-2.3.2.Final.jar:]
>>> ......
>>>
>>> Any tips, how to solve this?
>>>
>>> Thank you
>>>
>>> Hans-Joachim
>> Hi Hans,
>> Some general notes;
>> First of all it would be best to separate the optimizer to a different
>> machine, even if a VM. This is needed since the optimizer is based on
>> OptaPlanner which uses all the memory it can get for optimizations.
>>
>> To the point this is either something going wrong in the installation or
>> an access issue. Access can be caused due to root certificate not
>> trusted by the browser. If you use
>> wget
https://ovirt.optimizer:8080/ovirt-optimizer/result/
>> do you get an issue / warning on unknown certificate?
>>
>
> can you supply the whole server.log? it seems the optimizer didn't load
> or some other boot issue.
I saw the problem on the docker image on my machine as well.
I updated the docker image[1] and it works without error. can you give
it a try?
[1] docker pull rgolangh/ovirt-optimizer