Bug 979743 - [rhevm] Failed install RHEVM 3.3 - '/var/lib/pgsql/data/pg_log' File exists
Summary: [rhevm] Failed install RHEVM 3.3 - '/var/lib/pgsql/data/pg_log' File exists
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-setup
Version: 3.3.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: 3.3.0
Assignee: Ofer Schreiber
QA Contact: vvyazmin@redhat.com
URL:
Whiteboard: integration
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-30 07:41 UTC by vvyazmin@redhat.com
Modified: 2015-09-22 13:09 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-08-28 07:27:16 UTC
oVirt Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
## Logs engine-setup, engine-db-install (7.14 KB, application/x-gzip)
2013-06-30 07:41 UTC, vvyazmin@redhat.com
no flags Details

Description vvyazmin@redhat.com 2013-06-30 07:41:37 UTC
Created attachment 766995 [details]
## Logs engine-setup, engine-db-install

Description of problem: 
Failed install RHEVM 3.3 - '/var/lib/pgsql/data/pg_log' File exists


Version-Release number of selected component (if applicable):
RHEVM 3.3 - IS3 environment:

RHEVM: rhevm-3.3.0-0.5.master.el6ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. I have RHEVM server with RHEVM 3.2 SF18 install on it
2. Run following command:
rhevm-cleanup -u
yum -y remove rhevm* vdsm-bootstrap
rm -rf /var/log/ovirt-engine/*; rm -rf /tmp/*; rm -rf /usr/share/pgsql/*; rm -rf /usr/share/ovirt-engine/*
yum clean all
3. Edit REPO file for RHEVM 3.3
4. Run following command:
yum install rhevm
engine-setup
  
Actual results:
Failed install RHEVM 3.3, failed on “Creating Database... “ step (log attached)

Expected results:
Successfully install RHEVM 3.3 environment

Impact on user:
Failed install RHEVM 3.3 environment

Workaround:
Run following command:
yum -y remove jboss* 
yum -y remove postgres* 
yum install rhevm
engine-setup

Additional info:

IMHO, a root of problem is that RHEVM instalation don't verify if PostgreSQL already install.

/var/log/ovirt-engine/engine-db-install-2013_06_27_15_00_52.log

Initializing database: mkdir: cannot create directory `/var/lib/pgsql/data/pg_log': File exists

/var/log/ovirt-engine/engine.log

/var/log/vdsm/vdsm.log

Comment 2 Moran Goldboim 2013-06-30 11:58:21 UTC
-Can you please explain the usecase here or what are you trying to achieve, i imagine it's a negative test case (can you please explain what you are trying to do) and if it's a regression than from which version?

Comment 4 vvyazmin@redhat.com 2013-08-08 14:28:53 UTC
Install RHEVM 3.3 environment on servers which on past had RHEVM 3.2 environment. This done, because I don't want install OS from the scratch. I want use same OS.

Comment 5 Ofer Schreiber 2013-08-22 11:07:49 UTC
Does this issue happens with the new otopi based setup?
We've solved many issues in that area, can you please re-test this case?

Comment 6 Ofer Schreiber 2013-08-28 07:27:16 UTC
Closing this bug, as it's look like a test error.
You should never have removed /usr/share/pgsql/*, it's simply wrong.

If this issue still happens on the new otopi based setup, please re-open.


Note You need to log in before you can comment on or make changes to this bug.