Bug 1769677

Summary: [TESTONLY] engine-backup after upgrading setup packages
Product: [oVirt] ovirt-engine Reporter: Yedidyah Bar David <didi>
Component: Packaging.rpmAssignee: Sandro Bonazzola <sbonazzo>
Status: CLOSED DUPLICATE QA Contact: Petr Matyáš <pmatyas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: futureCC: bugs, lleistne
Target Milestone: ovirt-4.3.7Keywords: TestOnly
Target Release: ---Flags: pm-rhel: ovirt-4.3+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-19 09:30:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Yedidyah Bar David 2019-11-07 07:33:12 UTC
Description of problem:

For the root cause, see bug 1768779.

Please verify this flow (copied from there):

1. Install (do not setup) 4.2 engine.
2. Take a snapshot of the machine
3. engine-setup
5. Update setup packages to 4.3
6. engine-backup --mode=backup --file=f1
7. Copy f1 somewhere
8. Revert (or preview) the machine to the snapshot of step 2
9. copy f1 back and try to restore from it

If it fails, please consider setting bug 1768779's severity/priority accordingly.

It's not a very reasonable flow to follow, but not impossible, and if it indeed fails, people will be very annoyed - restore is usually urgent, when needed.

Comment 1 Petr Matyáš 2019-11-18 14:48:27 UTC
This flow failed on restore with:
[root@hostname ~]# engine-backup --mode=restore --scope=all --file=backup --log=restore.log --restore-permissions --provision-all-databases
Can't read /etc/scl/conf/rh-postgresql10, rh-postgresql10 is probably not installed.
/usr/bin/engine-backup: line 1789: psql: command not found
Preparing to restore:
- Unpacking file 'backup'
Restoring:
- Files
Provisioning PostgreSQL users/databases:
- user 'engine', database 'engine'
- user 'ovirt_engine_history', database 'ovirt_engine_history'
Restoring:
/usr/bin/engine-backup: line 1789: psql: command not found
FATAL: Can't connect to database 'engine'. Please see '/usr/bin/engine-backup --help'.

I have ovirt-engine-tools-backup-4.2.8.9-0.1.el7ev.noarch

What do you want me to do now with this (should be in JIRA) task? Should I fail or just close?

Comment 2 Yedidyah Bar David 2019-11-19 08:52:31 UTC
(In reply to Petr Matyáš from comment #1)
> This flow failed on restore with:
> [root@hostname ~]# engine-backup --mode=restore --scope=all --file=backup
> --log=restore.log --restore-permissions --provision-all-databases
> Can't read /etc/scl/conf/rh-postgresql10, rh-postgresql10 is probably not
> installed.
> /usr/bin/engine-backup: line 1789: psql: command not found
> Preparing to restore:
> - Unpacking file 'backup'
> Restoring:
> - Files
> Provisioning PostgreSQL users/databases:
> - user 'engine', database 'engine'
> - user 'ovirt_engine_history', database 'ovirt_engine_history'
> Restoring:
> /usr/bin/engine-backup: line 1789: psql: command not found
> FATAL: Can't connect to database 'engine'. Please see
> '/usr/bin/engine-backup --help'.
> 
> I have ovirt-engine-tools-backup-4.2.8.9-0.1.el7ev.noarch
> 
> What do you want me to do now with this (should be in JIRA) task? Should I
> fail or just close?

Close, not sure exactly how (perhaps as duplicate of bug 1768779), and update bug 1768779 accordingly (set severity/priority/target).

Thanks for checking!

Comment 3 Petr Matyáš 2019-11-19 09:30:08 UTC

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

Comment 4 Red Hat Bugzilla 2023-09-14 05:45:42 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days