Bug 1467700 - The engine tries to auto-import the first SD named hosted_storage but this could fail due to leftovers on the host
Summary: The engine tries to auto-import the first SD named hosted_storage but this co...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-hosted-engine-setup
Classification: oVirt
Component: Plugins.General
Version: 2.1.0.4
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ovirt-4.2.0
: ---
Assignee: Simone Tiraboschi
QA Contact: Nikolai Sednev
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-04 16:34 UTC by Simone Tiraboschi
Modified: 2017-12-20 11:12 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-12-20 11:12:24 UTC
oVirt Team: Integration
Embargoed:
rule-engine: ovirt-4.2+


Attachments (Terms of Use)
logs from host (9.12 MB, application/x-gzip)
2017-10-18 14:08 UTC, Nikolai Sednev
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 79007 0 master POST storage: enforce that no leftover SDs are there 2017-07-04 16:40:02 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.