[ovirt-users] Answer file key for "nonlocal postgres"

Yedidyah Bar David didi at redhat.com
Sun Mar 26 05:57:05 UTC 2017


On Fri, Mar 24, 2017 at 3:08 AM, Jamie Lawrence
<jlawrence at squaretrade.com> wrote:
> Hello,
>
> I’m working on an answerfile for an unattended Ovirt install. The engine and the data warehouse DBs live remotely. I think I have most of the relevant keys defined, but appear to be missing one, because the installer is attempting to manage a local Postgres.  Log and error below. Keys I’ve defined so far are:
>
> OVESETUP_DB/secured=bool:False
> OVESETUP_DB/user=str:engine
> OVESETUP_DB/password=str:[SNIP]
> OVESETUP_DB/dumper=str:pg_custom
> OVESETUP_DB/database=str:ovirt_engine
> OVESETUP_DB/fixDbViolations=none:None
> OVESETUP_DB/host=str:[SNIP]
> OVESETUP_DB/port=int:5435
> OVESETUP_DB/filter=none:None
> OVESETUP_DB/restoreJobs=int:2
> OVESETUP_DB/securedHostValidation=bool:False
>
> And a similar set for the DWH.
>
> Anyone know what I am missing?

Probably OVESETUP_PROVISIONING/postgresProvisioningEnabled
and OVESETUP_DWH_PROVISIONING/postgresProvisioningEnabled .

That said, I strongly recommend to not try and write the answer file
by hand. Instead, do an interactive setup with the exact conditions
you want it for eventually (including remote DBs etc), and use the
generated one. You are of course welcome to review it and edit if
you think it's needed, but that's much easier than guessing what
needs to be added (or removed). See also:

https://www.ovirt.org/develop/developer-guide/engine/engine-setup/
http://www.ovirt.org/develop/developer-guide/engine/otopi/

And also:

https://bugzilla.redhat.com/show_bug.cgi?id=1396925

If eventually getting into 4.2 (no promises), it will not really
help you to _guess_, but will help better understand the relation
between the interaction and the generated answerfile.

>
>
> Thanks in advance,
>
> -j
>
> - - - -
> The user error is:
>
> [ INFO  ] Creating PostgreSQL 'ovirt_engine' database
> [ ERROR ] Failed to execute stage 'Misc configuration': Failed to start service 'postgresql'
> [ INFO  ] Yum Performing yum transaction rollback
>
>
>
> From the installer log, it obviously still thinks it is supposed to set up PG locally:

Indeed, but I'd say the user error (from your pov) isn't that this failed
(although why this failed is a good question too) but that it tried.
Are you sure you do not have the above keys set to True in the answer file?

Best,
-- 
Didi


More information about the Users mailing list