<div dir="ltr"><div>If the engine user is not accessible directly, why then in this command you use it?:<br><pre class="gmail-highlight gmail-plaintext"><code> psql -U engine engine -c "UPDATE vdc_options set option_value = 'false'
WHERE option_name = 'SSLEnabled';"</code></pre>I am not really good in managing databases, I also didn't have postgresql installed after finishing oVirt engine installation and even managing to deploy everything. Does it mean that no database was created at all? I have chosen automatic and local creation in all fields related to database while installing oVirt engine. <br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-05-07 11:00 GMT+03:00 Martin Sivak <span dir="ltr"><<a href="mailto:msivak@redhat.com" target="_blank">msivak@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I think what you are looking for is mostly this:<br>
<a href="https://github.com/oVirt/vdsm/blob/master/lib/vdsm/api/vdsm-api.yml" rel="noreferrer" target="_blank">https://github.com/oVirt/vdsm/<wbr>blob/master/lib/vdsm/api/vdsm-<wbr>api.yml</a><br>
<br>
The best way to see what the traffic is is to disable SSL. The<br>
postgres database is installed and accessible using the postgres user<br>
(the engine user is not allowed to access it directly).<br>
<br>
You might also be interested in the vdsm fake project we use as node<br>
simulator. Its readme will tell you exactly how to do this:<br>
<a href="https://github.com/oVirt/ovirt-vdsmfake" rel="noreferrer" target="_blank">https://github.com/oVirt/<wbr>ovirt-vdsmfake</a><br>
<br>
I wrote an article some time ago that explained how to setup a<br>
development environment without real hosts:<br>
<a href="https://www.ovirt.org/blog/2016/11/testing-ovirt-changes-without-cluster/" rel="noreferrer" target="_blank">https://www.ovirt.org/blog/<wbr>2016/11/testing-ovirt-changes-<wbr>without-cluster/</a><br>
<br>
Might I ask what you goal is?<br>
<br>
Best regards<br>
<br>
--<br>
Martin Sivak<br>
SLA / oVirt<br>
<div><div class="h5"><br>
On Sun, May 6, 2018 at 6:26 AM, Anastasiya Ruzhanskaya<br>
<<a href="mailto:anastasiya.ruzhanskaya@frtk.ru">anastasiya.ruzhanskaya@frtk.<wbr>ru</a>> wrote:<br>
> Hello everyone!<br>
> Currently I want to determine what information is included in messages<br>
> passing from oVirt engine to VDSM on ovirt-node.<br>
><br>
> I made up a really simple configuration with one VM representing engine,<br>
> another - node, a managed to successfully launch a single VM on this node.<br>
> However, I have chosen to configure everything automatically. Currently<br>
> traffic is encrypted with default certificates.<br>
> So, there are three options for me and no one of them really works.<br>
><br>
> 1) Find the format of messages ( what the fields are, session id for<br>
> example) in docs, but I didn't manage to find it;<br>
> 2) Use wireshark to decrypt the traffic and the apply maybe a json<br>
> -dissector to the decrypted data. I have tried many solutions ( thanks god I<br>
> have rsa private and public keys but there is another session key which is<br>
> generated every time engine starts to communicate with vdsm, which I cannot<br>
> get with the help of sslkeylog file or ld_preload technology.<br>
> Maybe someone knows the exact methodology how to do this correctly?<br>
><br>
> 3) Turn off ssl in oVirt. It is simple to do that for vdsm, but for engine,<br>
> according to answers on oVirt site, I should do 2 requests to the database.<br>
> I was really surprised that psql was not installed by oVirt on my system.<br>
> How did it then created a default database? ( I have chosen to create all<br>
> locally and with default configurations).<br>
> I mean these two commands :<br>
> <a href="https://www.ovirt.org/develop/developer-guide/vdsm/connecting-development-vdsm-to-engine/" rel="noreferrer" target="_blank">https://www.ovirt.org/develop/<wbr>developer-guide/vdsm/<wbr>connecting-development-vdsm-<wbr>to-engine/</a><br>
> . I have a following error there :<br>
> psql: FATAL: Peer authentication failed for user "engine"<br>
><br>
> Could you please guide my what method is the best and how should I correct<br>
> my faults there?<br>
><br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> Devel mailing list<br>
> <a href="mailto:Devel@ovirt.org">Devel@ovirt.org</a><br>
> <a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/devel</a><br>
</blockquote></div><br></div>