<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><pre>Hi,<br><br><br>I have modified standalone.xml and replaced 127.0.0.1 with the IP address of the server and the connection to optimizer:8080 works correctly.<br><br><br>Using Chrome I get "Waiting for data..."<br><br><br>Using Firefox I get "Status: Data refresh failed: undefined"<br><br>I inspected the page and when I click on the tab I get the following errors:<br><br><br><br><br>Blocked loading mixed active content "http://optimizer:8080/ovirt-optimizer/result/00000001-0001-0001-0001-0000000000a1"[Learn More] angular.js:8321<br>"/ovirt-engine/api/hosts" result.html:419<br>Exception { message: "", result: 2153644038, name: "", filename: "https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js", lineNumber: 8321, columnNumber: 0, inner: null, data: null, stack: "createHttpBackend/<@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:8321:6<br>sendReq@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:8180:0<br>$http/serverRequest@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:7921:15<br>qFactory/defer/deferred.promise.then/wrappedCallback@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:11319:30<br>qFactory/defer/deferred.promise.then/wrappedCallback@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:11319:30<br>qFactory/ref/<.then/<@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:11405:25<br>$RootScopeProvider/this.$get</Scope.prototype.$eval@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:12412:15<br>$RootScopeProvider/this.$get</Scope.prototype.$digest@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:12224:14<br>$RootScopeProvider/this.$get</Scope.prototype.$apply@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:12516:12<br>bootstrap/doBootstrap/<@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:1382:8<br>invoke@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:3869:13<br>bootstrap/doBootstrap@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:1380:0<br>bootstrap@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:1394:0<br>angularInit@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:1307:4<br>@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:21459:4<br>trigger@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:2509:6<br>createEventHandler/eventHandler/<@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:2780:6<br>forEach@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:330:10<br>createEventHandler/eventHandler@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:2779:4<br>" } angular.js:9778<br><br>"Updating host 1c3b7899-bd75-4e26-aaf6-983b54c54be9" result.html:384<br>"Updating host fd0ea29e-2022-4a0f-8a5a-30c9b4497515" result.html:384<br>"Updating host 7c44018d-4517-4cda-8b21-cda31fc534d2" result.html:384<br>"Updating host 18152471-55d8-4cc0-8846-2071f29290df" result.html:384<br>"Error: $scope.result.hosts is undefined<br>$scope.recomputeResources@https://ovm/ovirt-engine/webadmin/plugin/oVirtOptimizer/result.html#00000001-0001-0001-0001-0000000000a1:354:13<br>$scope.refreshHostInfo/<@https://ovm/ovirt-engine/webadmin/plugin/oVirtOptimizer/result.html#00000001-0001-0001-0001-0000000000a1:387:17<br>$http/promise.success/<@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:7946:11<br>qFactory/defer/deferred.promise.then/wrappedCallback@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:11319:31<br>qFactory/defer/deferred.promise.then/wrappedCallback@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:11319:31<br>qFactory/ref/<.then/<@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:11405:26<br>$RootScopeProvider/this.$get</Scope.prototype.$eval@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:12412:16<br>$RootScopeProvider/this.$get</Scope.prototype.$digest@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:12224:15<br>$RootScopeProvider/this.$get</Scope.prototype.$apply@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:12516:13<br>done@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:8204:34<br>completeRequest@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:8412:7<br>createHttpBackend/</xhr.onreadystatechange@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:8351:1<br>" angular.js:9778<br><br>"Updating vm 315f674b-24da-42d7-9580-aeed5703c20c" result.html:399<br>"Updating vm e5074245-e3cc-4423-bc08-ddaa32f876d4" result.html:399<br>"Updating vm f2c61fb9-ffd6-4b96-b7bc-645a328371b3" result.html:399<br>"Updating vm 0c114b32-1d9f-43a1-bf75-723a4a3a4735" result.html:399<br>"Updating vm b62219e2-59bd-4ee8-8ec9-fd3031403aa9" result.html:399<br>"Updating vm dfabf11c-6ddf-4d36-a8b4-64dd8d7eb986" result.html:399<br>"Updating vm 69536040-09be-40df-8a46-51a737edadb6" result.html:399<br>"Updating vm 9b00724b-0719-4b3b-b5c1-e304e3d14428" result.html:399<br>"Updating vm e980d298-6dfd-4daf-adfe-32ada4375815" result.html:399<br>"Updating vm 0aa48214-3377-41eb-9f29-2e0d926ab929" result.html:399<br>"Updating vm fd9da855-7ef0-4d13-abac-bf29d8c23193" result.html:399<br>"Updating vm fb333c71-1e4a-48bc-aa02-0acdc2efbd18" result.html:399<br>"Updating vm dfccdc33-0260-4f0e-8a4d-3c54e754f293" result.html:399<br>"Updating vm 7eb0f154-f70e-442c-9719-eebea0714646" result.html:399<br>"Updating vm 91af75e8-9bac-45e1-8cba-1c1f5e0056f4" result.html:399<br>"Updating vm 4320fd1c-e793-4b44-afda-a9b8d6caade8" result.html:399<br>"Updating vm acb28de9-f2d5-46cf-bb13-4dd77af516d5" result.html:399<br>"Updating vm 68a46af9-09e0-48d8-a8ec-c3c162cdc0f1" result.html:399<br>"Updating vm 2755eb4a-81a8-4470-870a-786a538b53da" result.html:399<br>"Updating vm 2d8d45b9-6b26-4de6-9093-6f3c3381b3be" result.html:399<br>"Updating vm 941bedb8-d0ba-4b39-a59e-fc3bfce465ec" result.html:399<br>"Updating vm 2fa8c60f-45a4-48ba-aa4b-7108185cb38b" result.html:399<br>"Updating vm 7ce8d941-646d-440f-ad57-27e5bb936db0" result.html:399<br>"Updating vm ade810f2-5e98-4a35-b09d-f76027985f1a" result.html:399<br>"Updating vm 0e5949ae-0c11-43a2-8110-ff3e6940416d" result.html:399<br>"Updating vm 1e20e2c5-f97d-4612-bd34-c291b2da5dd4" result.html:399<br>"Updating vm 88a36a05-cca0-425b-a285-b527ce6fa1c6" result.html:399<br>"Updating vm 10c225ee-542c-477f-8a88-31a8804e75b7" result.html:399<br>"Updating vm 10c65984-8f53-4a22-b28f-30562b002f51" result.html:399<br>"Updating vm 9b6fcbbf-dffc-405b-8380-78cbd2268c6e" result.html:399<br>"Updating vm 7824fa7f-8a2f-46fe-a88f-e0fd770b0d1f" result.html:399<br>"Updating vm d6cfdd5c-e4d7-4eef-bb15-6e235ff5a4e7" result.html:399<br>"Updating vm 209cda34-fc7a-4976-9075-4dd3ca71e9cd" result.html:399<br>"Updating vm 1d22c70d-3d3e-4b75-afae-b782451e073f" result.html:399<br>"Updating vm e18d33a4-5cf2-4bfc-b70e-6d0a89e74f5d" result.html:399<br>"Updating vm 1282c0ed-f753-4484-bb4e-82d41febbba4" result.html:399<br>"Updating vm a196d738-d76c-4e97-8669-bd85f6bea5da" result.html:399<br>"Updating vm 7d462f41-fd72-4a0f-ba8d-9dc7bf23b581" result.html:399<br>"Updating vm cb1c4af3-887e-4fee-b74d-6315ed12c056" result.html:399<br>"Updating vm 6b2a185b-2d4b-4382-922e-9635466dcb3a" result.html:399<br>"Updating vm 9b1f8743-c602-4924-8a14-7cae25e77900" result.html:399<br>"Updating vm aebdede3-b00a-4565-833e-1eb86ee36ff0" result.html:399<br>"Updating vm 6e42567b-30b7-4486-b9af-b5c9f426ec0f" result.html:399<br>"Updating vm bf691404-3cd8-4484-9c60-c3c6f9bdbbbb" result.html:399<br>"Updating vm 79ee24d4-502a-4e6c-b6db-ee6b9f41d2f1" result.html:399<br>"Updating vm 00bd150e-911f-432c-9e2c-caecfe944944" result.html:399<br>"Updating vm 8aa3422b-ad2c-4753-9784-3ded1ac5d89e" result.html:399<br>"Updating vm 6fb3683e-b8c1-45dd-9c1b-1a86ae810890" result.html:399<br>"Error: $scope.result.hosts is undefined<br>$scope.recomputeResources@https://ovm/ovirt-engine/webadmin/plugin/oVirtOptimizer/result.html#00000001-0001-0001-0001-0000000000a1:354:13<br>$scope.refreshVmInfo/<@https://ovm/ovirt-engine/webadmin/plugin/oVirtOptimizer/result.html#00000001-0001-0001-0001-0000000000a1:402:17<br>$http/promise.success/<@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:7946:11<br>qFactory/defer/deferred.promise.then/wrappedCallback@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:11319:31<br>qFactory/defer/deferred.promise.then/wrappedCallback@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:11319:31<br>qFactory/ref/<.then/<@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:11405:26<br>$RootScopeProvider/this.$get</Scope.prototype.$eval@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:12412:16<br>$RootScopeProvider/this.$get</Scope.prototype.$digest@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:12224:15<br>$RootScopeProvider/this.$get</Scope.prototype.$apply@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:12516:13<br>done@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:8204:34<br>completeRequest@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:8412:7<br>createHttpBackend/</xhr.onreadystatechange@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:8351:1<br>" angular.js:9778<br><br>Blocked loading mixed active content "http://optimizer:8080/ovirt-optimizer/result/00000001-0001-0001-0001-0000000000a1/score"[Learn More] angular.js:8321<br>Exception { message: "", result: 2153644038, name: "", filename: "https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js", lineNumber: 8321, columnNumber: 0, inner: null, data: null, stack: "createHttpBackend/<@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:8321:6<br>sendReq@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:8180:0<br>$http/serverRequest@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:7921:15<br>qFactory/defer/deferred.promise.then/wrappedCallback@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:11319:30<br>qFactory/defer/deferred.promise.then/wrappedCallback@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:11319:30<br>qFactory/ref/<.then/<@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:11405:25<br>$RootScopeProvider/this.$get</Scope.prototype.$eval@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:12412:15<br>$RootScopeProvider/this.$get</Scope.prototype.$digest@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:12224:14<br>$RootScopeProvider/this.$get</Scope.prototype.$apply@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:12516:12<br>timeout/timeoutId<@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:14023:24<br>completeOutstandingRequest@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:4300:6<br>Browser/self.defer/timeoutId<@https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js:4601:6<br>" } angular.js:9778<br><br><br><br><br>By the way, the server.log file on the optimizer server is in debug mode and constantly writes the following lines:<br><br><br><br>DEBUG [org.apache.http.impl.conn.PoolingClientConnectionManager] (Thread-76) Closing expired connections<br>DEBUG [org.apache.http.impl.conn.PoolingClientConnectionManager] (Thread-76) Closing connections idle longer than 30 SECONDS<br><br><br>the file is getting very big (1GB per day) and I tried to change the log level but I couldn't. Can you please tell me how can I switch it?<br><br>Thanks,<br><br>Sokratis<br><br><br><br>----- Original Message -----<br>><br>>Hi,
>
>Please check the browser's debug console for error messages. Then check the firewall and jboss configuration on the Optimizer server.
>
>The JBoss log on the optimizer machine will tell you whether it does some computations (you will see score lines).
>Then try manually connecting (telnet) to optimizer:8080 from your machine (the same where the webadmin is running).
>
>We need more data to be able to give you more specific instructions.
>
>--
>Martin Sivák
<a href="http://lists.ovirt.org/mailman/listinfo/users">>msivak at redhat.com</a>
>Red Hat Czech
>RHEV-M SLA / Brno, CZ
>
----- Original Message -----
><i> What is your web browser? In my case , if i use the Chrome then the status
</i>><i> would be "Waiting for data..." forever,
</i>><i> but when i use Firefox then everything is ok.
</i>><i>
</i>><i> by the way, please make sure that you optimizer can be connected from
</i>><i> ovirt-engine firstly.
</i>><i> e.g. if you use jboss, you need to run the following command:
</i>><i> ./standalone.sh -b 0.0.0.0
</i>><i> if you have no -b option in your command line, then only localhost can access
</i>><i> the optimizer.
</i>><i>
</i>><i>
</i>><i> <a href="http://lists.ovirt.org/mailman/listinfo/users">like.ma at cs2c.com.cn</a>
</i>><i>
</i>><i>
</i>><i>
</i>><i> From: s k
</i>><i> Date: 2014-11-18 16:34
</i>><i> To: Doron Fediuck
</i>><i> CC: <a href="http://lists.ovirt.org/mailman/listinfo/users">users at ovirt.org</a>
</i>><i> Subject: Re: [ovirt-users] Optaplanner Problem
</i>><i> Network access is working both sides and i don't see any errors in the logs.
</i>><i> You can see a screenshot of the tab in the below link:
</i>><i>
</i>><i> <a href="http://picpaste.com/Optimizer_1-9UdHfclq.png">http://picpaste.com/Optimizer_1-9UdHfclq.png</a>
</i>><i>
</i>><i> > Date: Mon, 17 Nov 2014 11:14:16 -0500
</i>><i> > From: <a href="http://lists.ovirt.org/mailman/listinfo/users">dfediuck at redhat.com</a>
</i>><i> > To: <a href="http://lists.ovirt.org/mailman/listinfo/users">sokratis123k at outlook.com</a>
</i>><i> > CC: <a href="http://lists.ovirt.org/mailman/listinfo/users">users at ovirt.org</a>; <a href="http://lists.ovirt.org/mailman/listinfo/users">msivak at redhat.com</a>
</i>><i> > Subject: Re: [ovirt-users] Optaplanner Problem
</i>><i> >
</i>><i> >
</i>><i> >
</i>><i> > ----- Original Message -----
</i>><i> > > From: "s k" <<a href="http://lists.ovirt.org/mailman/listinfo/users">sokratis123k at outlook.com</a>>
</i>><i> > > To: <a href="http://lists.ovirt.org/mailman/listinfo/users">users at ovirt.org</a>
</i>><i> > > Sent: Monday, November 17, 2014 1:52:42 PM
</i>><i> > > Subject: [ovirt-users] Optaplanner Problem
</i>><i> > >
</i>><i> > > Hello,
</i>><i> > >
</i>><i> > >
</i>><i> > > I upgraded oVirt to version 3.5.0 today and I also installed Optaplanner
</i>><i> > > in a
</i>><i> > > separate VM. While the installation was successful the Optimizer tab in
</i>><i> > > oVirt Engine doesn't report the correct information. Although there are
</i>><i> > > VMs
</i>><i> > > that are shutdown and the hosts are not balanced in terms of memory usage
</i>><i> > > the Optimized tab reports the following:
</i>><i> > >
</i>><i> > >
</i>><i> > > SOLUTION STATUS
</i>><i> > >
</i>><i> > > Status: Waiting for data...
</i>><i> > >
</i>><i> > > Solution is being refreshed every 30 seconds.
</i>><i> > >
</i>><i> > > Freeze solution
</i>><i> > >
</i>><i> > > VMS THAT SHOULD BE STARTED
</i>><i> > >
</i>><i> > > No VM starts are requested at this moment.
</i>><i> > >
</i>><i> > > MIGRATION / START STEPS
</i>><i> > >
</i>><i> > > No migrations are needed at this moment. The state is stable.
</i>><i> > >
</i>><i> > > TARGET STATE
</i>><i> > >
</i>><i> > > host vm memory [all in GB]
</i>><i> > > used available
</i>><i> > >
</i>><i> > >
</i>><i> > >
</i>><i> > > No information is displayed in TARGET STATE.
</i>><i> > >
</i>><i> >
</i>><i> > Hi,
</i>><i> > it seems that the optimizer is not getting information
</i>><i> > from the engine DB, or the UI plugin cannot connect the
</i>><i> > Optimizer.
</i>><i> > Do you see any meaningful information in the UI?
</i>><i>
</i>><i> _______________________________________________
</i>><i> Users mailing list
</i>><i> <a href="http://lists.ovirt.org/mailman/listinfo/users">Users at ovirt.org</a>
</i>><i> <a href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a>
</i>><i> </i></pre>                                            </div></body>
</html>