<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hi,<br>
<br>
I'm trying to set up VDSM-Fake
(git://gerrit.ovirt.org/ovirt-vdsmfake.git) for some tests, however,
I'm a bit confused about how does it actually work. As the
instructions say, I was able to build the project with Maven
(however, the org.ovirt.vdsm-jsonrpc-java dependency version had to
be changed to 1.1.5 instead of 1.1.2-SNAPSHOT in pom.xml as this
latter is no longer provided at the repository).<br>
<br>
Once built, I run mvn jetty:run and the server started correctly:<br>
<blockquote>2016-02-02 11:01:51.957:<a class="moz-txt-link-freetext" href="INFO::jetty-6.1.26">INFO::jetty-6.1.26</a><br>
2016-02-02 11:01:52.804:<a class="moz-txt-link-freetext" href="INFO::No">INFO::No</a> Transaction manager found - if
your webapp requires one, please configure one.<br>
2016-02-02 11:01:53,424 Application initialized. <br>
2016-02-02 11:01:53,442 Opening a Stomp server localhost:54322 <br>
2016-02-02 11:01:53.702:<a class="moz-txt-link-freetext" href="INFO::Started">INFO::Started</a>
<a class="moz-txt-link-abbreviated" href="mailto:SelectChannelConnector@0.0.0.0:54321">SelectChannelConnector@0.0.0.0:54321</a><br>
[INFO] Started Jetty Server<br>
[INFO] Starting scanner at interval of 10 seconds.<br>
</blockquote>
I could indeed verify it's listening on the VDSM port:<br>
<blockquote>[root@host ovirt-vdsmfake]# netstat -atpn | grep 54321<br>
tcp6 0 0 :::54321
:::* LISTEN 44870/java<br>
</blockquote>
So the next step is to add a fake host via REST. I used scripts
provided <a
href="http://www.ovirt.org/REST_API_Using_BASH_Automation">here</a>
and I successfully added the host, however, it starts installing all
the VDSM packages as it were a normal host and therefore it tries to
start vdsmd as well, which throws an error as the Jetty Server is
already listening on the 54321 port. I shut down the Jetty Server
and allowed oVirt Manager to install all the packages properly, then
stopped vdsmd and started the Jetty Server, but expectedly oVirt
Engine fails with message "Host xxx is non responsive", so what I
actually got is a real VDSM host and not a fake one.<br>
<br>
FWIW, the fake VDSM runs on a different host, ports are reacheable
from the oVirt engine, proper /etc/hosts has been added to the
engine to reach the host, and no further customization of web.xml
has been done.<br>
<br>
I feel like I'm missing something here. Could someone shed some
light on what's wrong?<br>
<br>
Thanks.<br>
<br>
Nicolás<br>
</body>
</html>