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

Bug 1467700

Summary: The engine tries to auto-import the first SD named hosted_storage but this could fail due to leftovers on the host
Product: [oVirt] ovirt-hosted-engine-setup Reporter: Simone Tiraboschi <stirabos>
Component: Plugins.GeneralAssignee: Simone Tiraboschi <stirabos>
Status: CLOSED CURRENTRELEASE QA Contact: Nikolai Sednev <nsednev>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.1.0.4CC: bugs, stirabos, ylavi
Target Milestone: ovirt-4.2.0Keywords: Triaged
Target Release: ---Flags: rule-engine: ovirt-4.2+
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: 2017-12-20 11:12:24 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
logs from host none

Description Simone Tiraboschi 2017-07-04 16:34:23 UTC
Description of problem:
The engine tries to auto-import the first SD named hosted_storage but this could fail due to leftovers on the host.

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

How reproducible:
100%

Steps to Reproduce:
1. Stat deploying hosted-engine on an NFS path
2. Brutally kill hosted-engine-setup in the middle of the deployment but at least after 'Start monitoring domain'
3. Deploy hosted-engine again but over a different NFS path


Actual results:
just after hosted-engine-setup execution,
   vdsm-client Host getStorageDomains
reports more than one SD

Expected results:
hosted-engine-setup complains if left-over are there

Additional info:

Comment 1 Yaniv Kaul 2017-10-15 10:15:28 UTC
Attached patch was merged ages ago - can this be moved to MODIFIED or additional patches are expected?

Comment 2 Nikolai Sednev 2017-10-18 14:03:16 UTC
Following reproduction steps on ovirt-hosted-engine-setup-2.2.0-0.0.master.20171016160008.git55723e8.el7.centos.noarch I see these when trying to redeploy at reproduction step 3:

[ ERROR ] Failed to execute stage 'Environment customization': This host is already connected to a storage domain named hosted_storage, please deploy on a clean system.

Returning back to assigned.

Comment 3 Nikolai Sednev 2017-10-18 14:08:56 UTC
Created attachment 1340184 [details]
logs from host

Comment 4 Nikolai Sednev 2017-10-18 15:18:41 UTC
After discussing with Simone, current behaviour is expected and I received correct error about to clean up the host before proceeding to next deployment, aka "hosted-engine-setup complains if left-over are there".
Functions as designed, moving to verified.

Comment 5 Sandro Bonazzola 2017-12-20 11:12:24 UTC
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017.

Since the problem described in this bug report should be
resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE.

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