Bug 1232753
Summary: | [engine-backend] NPE for org.ovirt.engine.core.bll.hostdeploy.AddVdsCommand when deploying hosted engine | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] oVirt | Reporter: | Elad <ebenahar> | ||||
Component: | ovirt-engine-webadmin | Assignee: | bugs <bugs> | ||||
Status: | CLOSED WORKSFORME | QA Contact: | Pavel Stehlik <pstehlik> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 3.6 | CC: | bugs, ecohen, gklein, lsurette, mgoldboi, oourfali, rbalakri, sbonazzo, yeylon | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Unspecified | ||||||
Whiteboard: | infra | ||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2015-07-15 06:34:10 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1036731 | ||||||
Attachments: |
|
Correction: The failure is to add the host to the setup (not the VM) I suspect it happened because of a commit we already reverted. Closing as worskforme. If this happens again, please re-open. |
Created attachment 1039918 [details] logs from host and engine Description of problem: Hosted engine deployment fails due to a failure to add the hosted-engine VM to the setup. Version-Release number of selected component (if applicable): ovirt-hosted-engine-setup-1.3.0-0.0.master.20150518075146.gitdd9741f.el7.noarch vdsm-4.17.0-822.git9b11a18.el7.noarch ovirt-engine-3.6.0-0.0.master.20150616113618.git046b36e.el7.centos.noarch How reproducible: Always **Need to add hook under /usr/libexec/vdsm/hooks/after_get_caps/ to add 'pc-i440fx-rhel7.1.0' to the supported emulated machines (credit to Simone Tiraboschi for the hook): !/usr/bin/python import hooking if __name__ == '__main__': caps = hooking.read_json() caps['emulatedMachines'].append('pc-i440fx-rhel7.1.0') hooking.write_json(caps) Steps to Reproduce: 1. Deploy hosted-engine (I used FC) 2. 3. Actual results: Deployment fails, the hosted-engine VM cannot be added to the setup: engine.log: 2015-06-17 14:46:33,260 INFO [org.ovirt.engine.core.utils.transaction.TransactionSupport] (ajp--127.0.0.1-8702-3) [None] transaction rolled back 2015-06-17 14:46:33,274 ERROR [org.ovirt.engine.core.bll.hostdeploy.AddVdsCommand] (ajp--127.0.0.1-8702-3) [None] Command 'org.ovirt.engine.core.bll.hostdeploy.AddVdsCommand' failed: null 2015-06-17 14:46:33,275 ERROR [org.ovirt.engine.core.bll.hostdeploy.AddVdsCommand] (ajp--127.0.0.1-8702-3) [None] Exception: java.lang.NullPointerException at org.ovirt.engine.core.bll.context.DefaultCompensationContext.snapshotEntityInMemory(DefaultCompensationContext.java:140) [bll.jar:] at org.ovirt.engine.core.bll.context.DefaultCompensationContext.snapshotNewEntity(DefaultCompensationContext.java:101) [bll.jar:] at org.ovirt.engine.core.bll.hostdeploy.AddVdsCommand.AddVdsStaticToDb(AddVdsCommand.java:284) [bll.jar:] at org.ovirt.engine.core.bll.hostdeploy.AddVdsCommand.access$000(AddVdsCommand.java:67) [bll.jar:] at org.ovirt.engine.core.bll.hostdeploy.AddVdsCommand$1.runInTransaction(AddVdsCommand.java:112) [bll.jar:] HE setup log: 20**FILTERED**5-06-**FILTERED**7 **FILTERED**4:46:28 DEBUG otopi.plugins.ovirt_hosted_engine_setup.engine.add_host add_host._closeup:698 Cannot add the host to cluster Default Traceback (most recent call last): File "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/engine/add_host.py", line 689, in _closeup otopicons.NetEnv.IPTABLES_ENABLE File "/usr/lib/python2.7/site-packages/ovirtsdk/infrastructure/brokers.py", line **FILTERED**5659, in add headers={"Correlation-Id":correlation_id, "Expect":expect} File "/usr/lib/python2.7/site-packages/ovirtsdk/infrastructure/proxy.py", line 75, in add return self.request('POST', url, body, headers) File "/usr/lib/python2.7/site-packages/ovirtsdk/infrastructure/proxy.py", line **FILTERED**5, in request persistent_auth=self.__persistent_auth File "/usr/lib/python2.7/site-packages/ovirtsdk/infrastructure/connectionspool.py", line 79, in do_request persistent_auth) File "/usr/lib/python2.7/site-packages/ovirtsdk/infrastructure/connectionspool.py", line **FILTERED**54, in __do_request raise errors.RequestError(response_code, response_reason, response_body) RequestError: status: 400 reason: Bad detail: Internal Engine Error 20**FILTERED**5-06-**FILTERED**7 **FILTERED**4:46:28 ERROR otopi.plugins.ovirt_hosted_engine_setup.engine.add_host add_host._closeup:706 Cannot automatically add the host to cluster Default: Internal Engine Error 20**FILTERED**5-06-**FILTERED**7 **FILTERED**4:46:28 DEBUG otopi.context context._executeMethod:**FILTERED**55 method exception Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/otopi/context.py", line **FILTERED**45, in _executeMethod method['method']() File "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/engine/add_host.py", line 7**FILTERED**3, in _closeup cluster=cluster_name, RuntimeError: Cannot add the host to cluster Default 20**FILTERED**5-06-**FILTERED**7 **FILTERED**4:46:28 ERROR otopi.context context._executeMethod:**FILTERED**64 Failed to execute stage 'Closing up': Cannot add the host to cluster Default Expected results: Hosted-engine VM should be added successfully to the setup. Additional info: logs from host and engine