Bug 773723 - [ovirt] [setup] clean-up failed in case running on clean machine (db is not initialized)
Summary: [ovirt] [setup] clean-up failed in case running on clean machine (db is not i...
Keywords:
Status: CLOSED DUPLICATE of bug 782176
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-installer
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Alex Lourie
QA Contact: Haim
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-12 17:31 UTC by Haim
Modified: 2014-01-13 00:50 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-02-07 10:11:12 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)

Description Haim 2012-01-12 17:31:42 UTC
Description of problem:

engine-cleanup fails in case running on clean machine or when db is not initialized. 

Job failed. See system logs and 'systemctl status' for details.

2012-01-11 15:27:34::DEBUG::common_utils::228::root:: retcode = 1
2012-01-11 15:27:34::ERROR::engine-cleanup::295::root:: Traceback (most recent call last):
  File "/usr/bin/engine-cleanup", line 291, in runFunc
    funcs()
  File "/usr/bin/engine-cleanup", line 277, in restartPostgresql
    postgresql.start(True)
  File "/usr/share/ovirt-engine/scripts/common_utils.py", line 559, in start
    raise Exception(output_messages.ERR_FAILED_START_SERVICE % self.serviceName)
Exception: Error: Can't start the postgresql service

2012-01-11 15:27:34::DEBUG::engine-cleanup::218::root:: DB Backup started
2012-01-11 15:27:34::DEBUG::common_utils::219::root:: Executing command --> '/usr/bin/pg_dump -C -E UTF8 --column-inserts --disable-dollar-quoting --disable-triggers -U postgres --format=p -f /usr/share/ovirt-engine/db-backups/tmp7KaI_5.sql engine'
2012-01-11 15:27:34::DEBUG::common_utils::226::root:: output = 
2012-01-11 15:27:34::DEBUG::common_utils::227::root:: stderr = pg_dump: [archiver (db)] connection to database "engine" failed: could not connect to server: No such file or directory
        Is the server running locally and accepting
        connections on Unix domain socket "/tmp/.s.PGSQL.5432"?

2012-01-11 15:27:34::DEBUG::common_utils::228::root:: retcode = 1
2012-01-11 15:27:34::ERROR::engine-cleanup::295::root:: Traceback (most recent call last):
  File "/usr/bin/engine-cleanup", line 289, in runFunc
    funcName()
  File "/usr/bin/engine-cleanup", line 221, in backup
    output, rc = utils.execCmd(cmd, None, True, MSG_ERROR_BACKUP_DB, [])
  File "/usr/share/ovirt-engine/scripts/common_utils.py", line 231, in execCmd
    raise Exception(msg)
Exception: Error: Database backup failed

2012-01-11 15:27:34::DEBUG::engine-cleanup::169::root:: CA backup started
2012-01-11 15:27:34::DEBUG::engine-cleanup::176::root:: Copy /etc/pki/ovirt-engine to /etc/pki/engine-backups/ovirt-engine-2012_01_11_15_27_34
2012-01-11 15:27:34::DEBUG::engine-cleanup::179::root:: CA backup completed successfully
2012-01-11 15:27:34::DEBUG::engine-cleanup::182::root:: CA Remove started
2012-01-11 15:27:34::DEBUG::engine-cleanup::189::root:: /etc/pki/ovirt-engine/.truststore doesn't exists
2012-01-11 15:27:34::DEBUG::engine-cleanup::196::root:: /etc/pki/ovirt-engine/.keystore doesn't exists
2012-01-11 15:27:34::DEBUG::engine-cleanup::198::root:: CA Remove completed successfully
2012-01-11 15:27:34::INFO::engine-cleanup::301::root:: Error: Can't start the postgresql service
2012-01-11 15:27:34::INFO::engine-cleanup::301::root:: Error: Database backup faile

Comment 1 Alex Lourie 2012-02-07 10:11:12 UTC
Fixed in patch for https://bugzilla.redhat.com/show_bug.cgi?id=782176

*** This bug has been marked as a duplicate of bug 782176 ***


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