[ovirt-users] Problem connecting to ovirt-optimizer machine

Roy Golan rgolan at redhat.com
Wed Jun 24 05:21:12 UTC 2015


On 06/23/2015 10:14 PM, Martin Sivak wrote:
> Hi everybody,
>
> sorry to answer so late.
>
> 1) ovirt-optimizer 0.9 uses ovirt-engine-wildfly as the container. All log files should be in /var/log/ovirt-optimizer/jboss (as you probably know by now). The weird thing is that there is no ovirt-optimizer.log (it should have been there because of deployment descriptor that is present in /usr/share/java/ovirt-optimizer/jboss.war/WEB-INF or thereabout).
>
> 2) ovirt-optimizer will always report 404 for /ovirt-optimizer/result, you have to test with cluster ID: /ovirt-optimizer/result/<cluster uuid>
I didn't mention yesterday that I was testing it on my env with a 
cluster and I got the same 404. only after rebasing and using the latest 
I got it fixed.
> 3) I see working optimizer in server-log:

the optimizer is indeed working. the resteasy for some reason didn't 
like the domain/result/clusterId path
>
> 11:40:40,019 INFO  [org.ovirt.optimizer.service.ClusterOptimizer] (Thread-63) New solution for 99408929-82cf-4dc7-a532-9d998063fa95 available (score 0hard/-859soft)
>
> 4) The deployment seems to be correct:
>
> 11:40:04,915 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-2) Starting Coyote HTTP/1.1 on http--0.0.0.0-8080
> 11:40:11,067 INFO  [org.jboss.web] (MSC service thread 1-2) JBAS018210: Registering web context: /ovirt-optimizer
>
>
> Can you recheck with the cluster UUID or check the browser's errors (javascript and network) console?
>
> --
> Martin Sivák
> msivak at redhat.com
> Red Hat Czech
> RHEV-M SLA / Brno, CZ
>
> ----- Original Message -----
>> On 06/23/2015 02:00 PM, Hans-Joachim wrote:
>>> 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 at redhat.com>
>>>> To: "Doron Fediuck" <dfediuck at redhat.com>
>>>> Cc: Hans-Joachim <rni at chef.net>, users at ovirt.org, "Martin Sivak"
>>>> <msivak at 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
>>
>>




More information about the Users mailing list