Bug 1913793
Summary: | NPE on host reinstall UI dialog | ||||||
---|---|---|---|---|---|---|---|
Product: | [oVirt] ovirt-engine | Reporter: | Petr Matyáš <pmatyas> | ||||
Component: | BLL.Virt | Assignee: | Arik <ahadas> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Nikolai Sednev <nsednev> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 4.4.4.7 | CC: | ahadas, aoconnor, bugs, michal.skrivanek, nsednev | ||||
Target Milestone: | ovirt-4.4.7 | Keywords: | Triaged, ZStream | ||||
Target Release: | 4.4.7 | Flags: | ahadas:
ovirt-4.4?
aoconnor: blocker- ahadas: planning_ack? ahadas: devel_ack+ pm-rhel: testing_ack+ |
||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | ovirt-engine-4.4.7 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2021-07-06 07:28:26 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | Virt | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Did you rename the hosted-engine VM by any chance? Yes I did. Should be working like any other name. Yes, but the hosted engine is a bit unique in that sense - the system needs to know which VM it is. With new deployments of hosted engine, the engine can figure this out using the 'origin' field of the VM but in this case, it's done by the VM name. So in the long term, this needs to be changed. But in the short term, you can workaround that by setting the 'HostedEngineVmName' config with the new name of the hosted engine VM. so isn't this just a problem of engine-rename command not doing it? no, because you can rename the hosted engine vm from the UI, right? (In reply to Arik from comment #5) > no, because you can rename the hosted engine vm from the UI, right? oh, that way. why is it not mentioned in the bug description? 1.Deploy fresh HE over NFS or other storage type. 2.Change Engine VM's name via UI from "HostedEngine" to "Director1". 3.Add additional hosted engine ha host. You will receive this failure: Operation Canceled Error while executing action: Cannot add Host. You are using an unmanaged hosted engine VM. Please add the first storage domain in order to start the hosted engine import process. 4.Change back Engine VM's name via UI from "Director1" to "HostedEngine". 5.Add additional hosted engine ha host. 6.Additional ha-host successfully added. I see that the root cause is not fixed. Moving back to assigned. Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release. Tested with: rhvm-appliance-4.4-20210527.0.el8ev.x86_64 which is ovirt-engine-setup-4.4.6.8-0.1.el8ev.noarch. Tested on: ovirt-hosted-engine-setup-2.5.1-1.el8ev.noarch ovirt-hosted-engine-ha-2.4.7-1.el8ev.noarch Linux 4.18.0-305.6.1.el8_4.x86_64 #1 SMP Mon Jun 7 10:18:09 EDT 2021 x86_64 x86_64 x86_64 GNU/Linux Red Hat Enterprise Linux release 8.4 (Ootpa) Might be the fix was not yet fetched to this version, rechecking with 4.4.7 latest bits on the engine and moveing back to ON_QA for this matter. Retested on ovirt-engine-setup-4.4.7.3-0.3.el8ev.noarch. 2.Change Engine VM's name via UI from "HostedEngine" to "Director1". 3.Add additional hosted engine ha host. 4.Host was successfully added without any errors. I also tried to reinstall already added ha-host and also with success. Moving to verified. This bugzilla is included in oVirt 4.4.7 release, published on July 6th 2021. Since the problem described in this bug report should be resolved in oVirt 4.4.7 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. |
Created attachment 1745328 [details] engine log Description of problem: After update of RHV to latest version, I can't reinstall hosts as I always get cmd validation failure on confirmation and huge NPE in engine log. Version-Release number of selected component (if applicable): ovirt-engine-4.4.4.7-0.1.el8ev.noarch How reproducible: always Steps to Reproduce: 1. update RHV to latest version 2. try to reinstall a host 3. Actual results: unable to confirm UI dialogue Expected results: should be working Additional info: 2021-01-07 16:22:41,884+01 ERROR [org.ovirt.engine.core.bll.hostdeploy.InstallVdsCommand] (default task-4) [9014d0d5-db4c-41c1-9830-fc1310b73d4a] Error during ValidateFailure.: java.lang.NullPointerException at deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.hostedengine.HostedEngineHelper.getStoragePoolId(HostedEngineHelper.java:103) at deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.validator.HostValidator.supportsDeployingHostedEngine(HostValidator.java:178) at deployment.engine.ear.bll.jar//org.ovirt.engine.core.bll.hostdeploy.UpdateVdsCommand.validate(UpdateVdsCommand.java:155)