Bug 1837460

Summary: grafana is not backed up
Product: [oVirt] ovirt-engine Reporter: Yedidyah Bar David <didi>
Component: Backup-Restore.EngineAssignee: Yedidyah Bar David <didi>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Novotny <pnovotny>
Severity: unspecified Docs Contact:
Priority: high    
Version: 4.3.0CC: bugs, emarcus, lleistne, pelauter, sradco
Target Milestone: ovirt-4.4.1Flags: emarcus: needinfo-
emarcus: needinfo-
pm-rhel: ovirt-4.4+
pelauter: planning_ack+
sbonazzo: devel_ack+
lleistne: testing_ack+
Target Release: 4.4.1.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.4.1.2 Doc Type: Bug Fix
Doc Text:
The first 4.4 release included support for the Grafana dashboard, but did not support backup or restore. In this release, engine-backup includes backup and restore for Grafana.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-08-05 06:25:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Metrics RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1777877    

Description Yedidyah Bar David 2020-05-19 13:50:05 UTC
Description of problem:

engine-backup should backup and restore grafana - configuration, database, DWH db user and permissions.

Version-Release number of selected component (if applicable):
Current master

How reproducible:
Always

Steps to Reproduce:
1. Setup an engine with dwh and grafana, backup
2. Install new engine+dwh+grafana, restore the backup
3.

Actual results:
grafana is not backed up, so after restore it's not in its state before backup

Expected results:
grafana is restored just like other components

Additional info:

Comment 1 Pavel Novotny 2020-07-14 16:04:22 UTC
Verified in
ovirt-engine-4.4.1.8-0.7.el8ev
ovirt-engine-tools-backup-4.4.1.8-0.7.el8ev

After restore, Grafana files, DB & configuration is restored (configs, users, custom dashboards, etc.).

Steps:
1. engine-backup --mode=backup --file=backup.bak
2. engine-cleanup
3. engine-backup --mode=restore --provision-all-databases --file=backup.bak
4. engine-setup

Comment 3 Eli Marcus 2020-07-28 09:44:04 UTC
Hi Didi, here is the updated doc text: 

"The first 4.4 release included support for the Grafana dashboard, but did not support backup or restore. In this release engine-backup includes backup and restore for Grafana."

Comment 4 Sandro Bonazzola 2020-07-30 13:40:33 UTC
(In reply to Eli Marcus from comment #3)
> Hi Didi, here is the updated doc text: 
> 
> "The first 4.4 release included support for the Grafana dashboard, but did
> not support backup or restore. In this release engine-backup includes backup
> and restore for Grafana."

Looks good to me

Comment 5 Sandro Bonazzola 2020-08-05 06:25:16 UTC
This bugzilla is included in oVirt 4.4.1 release, published on July 8th 2020.

Since the problem described in this bug report should be resolved in oVirt 4.4.1 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.