<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Wed, 2 May 2018 at 23:27 Jamie Lawrence &lt;<a href="mailto:jlawrence@squaretrade.com">jlawrence@squaretrade.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
I&#39;ve been down this road. Postgres won&#39;t lie about its version for you.  If you want to do this, you have to patch the Ovirt installer[1]. I stopped trying to use my PG cluster at some point -  the relationship between the installer and the product combined with the overly restrictive requirements baked into the installer[2]) makes doing so  an ongoing hassle. So I treat Ovirt&#39;s PG as an black box; disappointing, considering that we are a very heavy PG shop with a lot of expertise and automation I can&#39;t use with Ovirt.<br>
<br>
If nothing has changed (my notes are from a few versions ago), everything you need to correct is in<br>
<br>
/usr/share/ovirt-engine/setup/ovirt_engine_setup/engine_common/constants.py<br>
<br>
Aside from the version, you&#39;ll also have to make the knobs for vacuuming match those of your current installation, and I think there was another configurable for something else I&#39;m not remembering right now.<br>
<br>
Be aware that doing so is accepting an ongoing commitment to monkeying with the installer a lot. At one time I thought doing so was the right tradeoff, but it turns out I  was wrong.<br>
<br>
-j<br>
<br>
[1] Or you could rebuild PG with a fake version. That option was unavailable here.<br>
[2] Not criticizing, just stating a technical fact. How folks apportion their QA resources is their business.<br>
<br>
&gt; On May 2, 2018, at 12:49 PM, ~Stack~ &lt;<a href="mailto:i.am.stack@gmail.com" target="_blank">i.am.stack@gmail.com</a>&gt; wrote:<br>
&gt; <br>
&gt; Greetings,<br>
&gt; <br>
&gt; Exploring hosting my engine and ovirt_engine_history db&#39;s on my<br>
&gt; dedicated PostgreSQL server.<br>
&gt; <br>
&gt; This is a 9.5 install on a beefy box from the <a href="http://postgresql.org" rel="noreferrer" target="_blank">postgresql.org</a> yum repos<br>
&gt; that I&#39;m using for other SQL needs too. 9.5.12 to be exact. I set up the<br>
&gt; database just as the documentation says and I&#39;m doing a fresh install of<br>
&gt; my engine-setup.<br>
&gt; <br>
&gt; During the install, right after I give it the details for the remote I<br>
&gt; get this error:<br>
&gt; [ ERROR ] Please set:<br>
&gt;          server_version = 9.5.9<br>
&gt;         in postgresql.conf on &#39;None&#39;. Its location is usually<br>
&gt; /var/lib/pgsql/data , or somewhere under /etc/postgresql* .<br>
&gt; <br>
&gt; Huh?<br>
&gt; <br></blockquote><div><br></div><div>Yes it&#39;s annoying and I think <a class="GWVZpf gW" id="IloFPc-5" href="mailto:ylavi@redhat.com" tabindex="-1">+Yaniv Dary</a> opened a bug for it after both of got mad at it. Yaniv?<br><br></div><div>Meanwhile let us know if you were able to patch constants.py as suggested.<br><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
&gt; Um. OK.<br>
&gt; $ grep ^server_version postgresql.conf<br>
&gt; server_version = 9.5.9<br>
&gt; <br>
&gt; $ systemctl restart postgresql-9.5.service<br>
&gt; <br>
&gt; LOG:  syntax error in file &quot;/var/lib/pgsql/9.5/data/postgresql.conf&quot;<br>
&gt; line 33, n...n &quot;.9&quot;<br>
&gt; FATAL:  configuration file &quot;/var/lib/pgsql/9.5/data/postgresql.conf&quot;<br>
&gt; contains errors<br>
&gt; <br>
&gt; <br>
&gt; Well that didn&#39;t work. Let&#39;s try something else.<br>
&gt; <br>
&gt; $ grep ^server_version postgresql.conf<br>
&gt; server_version = 9.5.9<br>
&gt; <br>
&gt; $ systemctl restart postgresql-9.5.service<br>
&gt; LOG:  parameter &quot;server_version&quot; cannot be changed<br>
&gt; FATAL:  configuration file &quot;/var/lib/pgsql/9.5/data/postgresql.conf&quot;<br>
&gt; contains errors<br>
&gt; <br>
&gt; Whelp. That didn&#39;t work either. I can&#39;t seem to find anything in the<br>
&gt; oVirt docs on setting this.<br>
&gt; <br>
&gt; How am I supposed to do this?<br>
&gt; <br>
&gt; Thanks!<br>
&gt; ~Stack~<br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
&gt; <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
</blockquote></div></div>