Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1698331

Summary: hosted-engine deploy - restore from backup inconsitency / NPE: oab(...) null when opening host edit dialog
Product: [oVirt] ovirt-hosted-engine-setup Reporter: André Liebe <andre.liebe>
Component: GeneralAssignee: Simone Tiraboschi <stirabos>
Status: CLOSED DUPLICATE QA Contact: Lukas Svaty <lsvaty>
Severity: high Docs Contact:
Priority: high    
Version: 2.3.2CC: bugs, sabose
Target Milestone: ovirt-4.3.4   
Target Release: ---   
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-04-24 09:16:07 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:
Attachments:
Description Flags
screenshot host edit dialog with error
none
ui.log
none
engine logs none

Description André Liebe 2019-04-10 07:01:01 UTC
Created attachment 1554089 [details]
screenshot host edit dialog with error

Description of problem:

After deploying hosted-engine from a backup (hosted-engine --deploy --restore-from-file=...) I'm unable to change any setting on any host in HostedEngine's cluster


Version-Release number of selected component (if applicable):
ovirt-hosted-engine-setup-2.3.6-1.el7.noarch
ovirt-hosted-engine-ha-2.3.1-1.el7.noarch
ovirt-engine-4.3.2.1-1.el7.noarch


How reproducible:
Always reproducible. 
Having a cluster of 4 hosts, where old HE ran on node4. Undeployed HE on node1, node2, node3. Having node3 set to maintenance (or removed from engine).

Steps to Reproduce:
1. make a hosted-engine backup
2. enable global maintenance
3. shutdown old HE
4. cleanup HE storage
4. on node3: run hosted-engine --deploy --restore... (with matching datacenter and cluster names)


Actual results:
Now engine is up again, but I get NPE when opening host edit dialog

Expected results:
A consistent state, correctly mapped Datacenter>Cluster>Host

Comment 1 André Liebe 2019-04-10 07:13:31 UTC
Created attachment 1554090 [details]
ui.log

Comment 2 André Liebe 2019-04-10 08:41:23 UTC
Hmm, this also affects host in other clusters

Comment 3 Simone Tiraboschi 2019-04-11 14:10:54 UTC
Can you please attach also engine.log?

Comment 4 André Liebe 2019-04-12 04:42:43 UTC
Created attachment 1554707 [details]
engine logs

Here are the logs (ignore ovf errors, they are addressed in bug 1694116)

Comment 5 Sandro Bonazzola 2019-04-24 07:22:55 UTC
Sahina, can you please have a look at this? Looks like NPE is happening in Gluster related commands

Comment 6 Sahina Bose 2019-04-24 07:39:45 UTC
The NPE is at 
        object.getCluster().getSelectedItemChangedEvent().addListener((ev, sender, args) -> {
            if (object.getCluster().getSelectedItem().supportsGlusterService()
                    && !object.getCluster().getSelectedItem().supportsVirtService()) {
                powerManagementTab.setVisible(false);
                spmTab.setVisible(false);
            } else {
                powerManagementTab.setVisible(true);
                spmTab.setVisible(true);
            }
        });

This has been fixed in Bug 1690268 (4.3.3)

Comment 7 Sahina Bose 2019-04-24 09:16:07 UTC

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