Bug 1271511

Summary: 'Destroy VM and abort setup' fails when the setup is trying to add the host to the engine
Product: [oVirt] ovirt-hosted-engine-setup Reporter: Simone Tiraboschi <stirabos>
Component: GeneralAssignee: Simone Tiraboschi <stirabos>
Status: CLOSED CURRENTRELEASE QA Contact: Nikolai Sednev <nsednev>
Severity: low Docs Contact:
Priority: unspecified    
Version: 1.3.0CC: bmcclain, bugs, didi, gklein, lveyde, mavital, rmartins, sbonazzo, stirabos
Target Milestone: ovirt-3.6.1Keywords: ZStream
Target Release: 1.3.1Flags: rule-engine: ovirt-3.6.z+
bmcclain: planning_ack+
sbonazzo: devel_ack+
mavital: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
ovirt-hosted-engine-setup was proposing to the user 'Destroy VM and abort setup' when something went wrong trying to add an additional host to an engine that runa as a VM somewhere else so it will fail cause it cannot destroy a VM that run on a different host. Filtering it.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-17 07:19:05 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:
Bug Depends On:    
Bug Blocks: 1284979    
Attachments:
Description Flags
hosted-engine-setup logs none

Description Simone Tiraboschi 2015-10-14 07:52:49 UTC
Description of problem:
          Please check Engine VM configuration.
         
          Make a selection from the options below:
          (1) Continue setup - Engine VM configuration has been fixed
          (2) Power off and restart the VM
          (3) Abort setup
          (4) Destroy VM and abort setup
         
          (1, 2, 3, 4)[1]: 4
[ ERROR ] Failed to execute stage 'Closing up': 'Plugin' object has no attribute '_destroy_vm'

Version-Release number of selected component (if applicable):
3.6 rc2

How reproducible:
100%

Steps to Reproduce:
1. deploy hosted-engien setup on additional host
2. have it failing to add the host for any reasons (eg. cause the host is already in the engine)
3. choose 4

Actual results:
          (1, 2, 3, 4)[1]: 4
[ ERROR ] Failed to execute stage 'Closing up': 'Plugin' object has no attribute '_destroy_vm'

Expected results:
It should correctly termite

Additional info:

Comment 1 Simone Tiraboschi 2015-10-14 07:55:27 UTC
Created attachment 1082719 [details]
hosted-engine-setup logs

Comment 2 Simone Tiraboschi 2015-10-15 14:48:26 UTC
It fails also on the first host when called by the add_host plugin simply cause the add_host plugin doesn't implement _destroy_vm() and _create_vm() methods.

Comment 3 Gil Klein 2016-02-17 07:19:05 UTC
This bug was fixed and is slated to be in the upcoming version. As we
are focusing our testing at this phase on severe bugs, this bug was
closed without going through its verification step. If you think this
bug should be verified by QE, please set its severity to high and move
it back to ON_QA