Since the problem is still present on current master, I've created a bug [1] to track that.

[1]: https://bugzilla.redhat.com/1490977

On Fri, Sep 8, 2017 at 5:17 PM, Simone Tiraboschi <stirabos@redhat.com> wrote:


On Fri, Sep 8, 2017 at 4:43 PM, Scott Dickerson <sdickers@redhat.com> wrote:


On Fri, Sep 8, 2017 at 9:50 AM, Simone Tiraboschi <stirabos@redhat.com> wrote:
We are now requiring Postgres 9.5 which means that you have to use SCL on el7 but on fedora 25 you already have Postgres 9.5.8 at system level so no changes are required there.

I personally tried on fedora 25 and I didn't found any issue using the rpms published in ovirt-master-snapshot and dev-env from master branch of our gerrit repo.

Can you please simply try with a make clean before make install-dev to ensure that you don't have any left over from previous build attempt?


I dropped and recreated my DBs in postgres and maually removed my ~/ovirt-engine dev compile location.  The very first run of '~/ovirt-engine/bin/engine-setup' works fine.  Any subsequent run fails as Greg originally posted.  All of the credentials and settings line up ok.  Again, it's the 2nd run of engine-setup that fails.

OK, the breaking leftover is etc/ovirt-engine/engine.conf.d/10-setup-database.conf under your dev-env prefix. Removing it will fix engine-setup.

Now let's try to fix it.

 
 
On Fri, Sep 8, 2017 at 3:18 PM, Greg Sheremeta <gshereme@redhat.com> wrote:
Same here.

Miroslava mentioned manual steps, but I only saw steps for SCL. Looks like all of us on Fedora are broken (?!), and I don't see steps to fix in the README (or, even better, emailed out with an [ACTION REQUIRED] subject line]

Greg


On Fri, Sep 8, 2017 at 9:14 AM, Jakub Niedermertl <jniederm@redhat.com> wrote:
It still doesn't work on commit 76ec627d23 containing earlier mentioned patch https://gerrit.ovirt.org/#/c/81536/ and Fedora 26.

My pg_hba.conf: https://paste.fedoraproject.org/paste/PAkTprADCbUCOKyqgRXiMQ

rpm -qa postgres*
postgresql-server-9.6.4-1.fc26.x86_64
postgresql-9.6.4-1.fc26.x86_64
postgresql-libs-9.6.4-1.fc26.x86_64


On Fri, Sep 8, 2017 at 3:01 PM, Alexander Wels <awels@redhat.com> wrote:
On Thursday, September 7, 2017 10:14:16 AM EDT Simone Tiraboschi wrote:
> On Thu, Sep 7, 2017 at 3:59 PM, Miroslava Voglova <mvoglova@redhat.com>
>
> wrote:
> > It's because upgrade to Postgres 9.5. There is patch that edit README with
> > more instructions how to proceed [1].
> >
> > [1] https://gerrit.ovirt.org/#/c/81536/
>
> I'm trying to improve that patch to have it handled almost fully
> automatically by make install-dev
>

Can you hurry up, my environment is basically dead in the water right now
because I run F25 and there are no instructions on how to make this work. Even
reverting the patch won't allow me to run engine-setup.

> > On Thu, Sep 7, 2017 at 3:12 PM, Greg Sheremeta <gshereme@redhat.com>
> >
> > wrote:
> >> Just in case it helps:
> >> greg@dauntless:/home/greg/projects/ovirt-engine(master↑1|✔) % noglob rpm
> >> -qa postgres*
> >> postgresql-server-9.6.3-1.fc26.x86_64
> >> postgresql-9.6.3-1.fc26.x86_64
> >> postgresql-libs-9.6.3-1.fc26.x86_64
> >>
> >>
> >> On Thu, Sep 7, 2017 at 9:10 AM, Jakub Niedermertl <jniederm@redhat.com>
> >>
> >> wrote:
> >>> I have the same issue.
> >>>
> >>> On Thu, Sep 7, 2017 at 2:40 PM, Greg Sheremeta <gshereme@redhat.com>
> >>>
> >>> wrote:
> >>>> I just rebased and engine wouldn't serve the UI (404) although it
> >>>> looked like it started. I tried to run engine setup, and getting:
> >>>>
> >>>> greg@dauntless:/home/greg/projects/ovirt-engine(master↑1|✔) %
> >>>> ovirt_engine_setup
> >>>> [ INFO  ] Stage: Initializing
> >>>>
> >>>>           Setup was run under unprivileged user this will produce
> >>>>
> >>>> development installation do you wish to proceed? (Yes, No) [No]: yes
> >>>> [ INFO  ] Stage: Environment setup
> >>>>
> >>>>           Configuration files: ['/home/greg/ovirt-engine/etc/
> >>>>
> >>>> ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf']
> >>>>
> >>>>           Log file: /home/greg/ovirt-engine/var/lo
> >>>>
> >>>> g/ovirt-engine/setup/ovirt-engine-setup-20170907083125-5vnlyd.log
> >>>>
> >>>>           Version: otopi-1.7.2_master (otopi-1.7.2-0.0.master.201707
> >>>>
> >>>> 25101901.git770a428.fc25)
> >>>> [ ERROR ] Failed to execute stage 'Environment setup': Cannot connect
> >>>> to Engine database using existing credentials: engine@localhost:5432
> >>>> [ INFO  ] Stage: Clean up
> >>>>
> >>>>           Log file is located at /home/greg/ovirt-engine/var/lo
> >>>>
> >>>> g/ovirt-engine/setup/ovirt-engine-setup-20170907083125-5vnlyd.log
> >>>> [ INFO  ] Generating answer file '/home/greg/ovirt-engine/var/l
> >>>> ib/ovirt-engine/setup/answers/20170907083128-setup.conf'
> >>>> [ INFO  ] Stage: Pre-termination
> >>>> [ INFO  ] Stage: Termination
> >>>> [ ERROR ] Execution of setup failed
> >>>>
> >>>>
> >>>> Anyone else seen this or know a fix?
> >>>>
> >>>> Best wishes,
> >>>> Greg
> >>>>
> >>>>
> >>>> --
> >>>>
> >>>> GREG SHEREMETA
> >>>>
> >>>> SENIOR SOFTWARE ENGINEER - TEAM LEAD - RHV UX
> >>>>
> >>>> Red Hat
> >>>>
> >>>> <https://www.redhat.com/>
> >>>>
> >>>> gshereme@redhat.com    IRC: gshereme
> >>>> <https://red.ht/sig>
> >>>>
> >>>> _______________________________________________
> >>>> Devel mailing list
> >>>> Devel@ovirt.org
> >>>> http://lists.ovirt.org/mailman/listinfo/devel
> >>
> >> _______________________________________________
> >> Devel mailing list
> >> Devel@ovirt.org
> >> http://lists.ovirt.org/mailman/listinfo/devel
> >
> > _______________________________________________
> > Devel mailing list
> > Devel@ovirt.org
> > http://lists.ovirt.org/mailman/listinfo/devel


_______________________________________________
Devel mailing list
Devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/devel


_______________________________________________
Devel mailing list
Devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/devel


_______________________________________________
Devel mailing list
Devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/devel


_______________________________________________
Devel mailing list
Devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/devel



--
Scott Dickerson
Senior Software Engineer
RHV-M Engineering - UX Team
Red Hat, Inc


_______________________________________________
Devel mailing list
Devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/devel