Bug 1401996 - hosted-engine --deploy does not clean setup after instllation
Summary: hosted-engine --deploy does not clean setup after instllation
Keywords:
Status: CLOSED DUPLICATE of bug 1001181
Alias: None
Product: ovirt-hosted-engine-setup
Classification: oVirt
Component: General
Version: 2.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Simone Tiraboschi
QA Contact: meital avital
URL:
Whiteboard: integration
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-06 14:36 UTC by Roman Hodain
Modified: 2017-05-11 09:28 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-12-12 10:19:45 UTC
oVirt Team: Integration
Embargoed:
rhodain: planning_ack?
rhodain: devel_ack?
rhodain: testing_ack?


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1001181 0 high CLOSED [RFE] Provide clean up script for complete cleaning the hosted engine VM installation after failed installation. 2021-02-22 00:41:40 UTC

Internal Links: 1001181

Description Roman Hodain 2016-12-06 14:36:51 UTC
Description of problem:

Hosted engine deploy does not remove the following directory 

    /rhev/data-center/mnt/_var_lib_ovirt-hosted-engine-setup_tmpTXbRaN/

after a failed installation. This does not prevent further deployment, but when the engine is finally deployed it reports an error



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

How reproducible:
100%

Steps to Reproduce:
1. Interrupt the deployment process after the mount point if mounted.

Actual results:
2016-12-06 15:02:17,366 ERROR (jsonrpc/7) [storage.TaskManager.Task] (Task='fd4e5560-b25e-4e0d-9f56-067cb4dbd0b4') Un
expected error (task:870)
Traceback (most recent call last):
  File "/usr/share/vdsm/storage/task.py", line 877, in _run
    return fn(*args, **kargs)
  File "/usr/lib/python2.7/site-packages/vdsm/logUtils.py", line 50, in wrapper
    res = f(*args, **kwargs)
  File "/usr/share/vdsm/storage/hsm.py", line 2701, in getStorageDomainInfo
    return dict(info=dom.getInfo())
  File "/usr/share/vdsm/storage/fileSD.py", line 611, in getInfo
    info['remotePath'] = self.getRealPath()
  File "/usr/share/vdsm/storage/localFsSD.py", line 121, in getRealPath
    return os.readlink(self.mountpoint)
OSError: [Errno 22] Invalid argument: '/rhev/data-center/mnt/_var_lib_ovirt-hosted-engine-setup_tmpTXbRaN'

Expected results:
The mount point is unmounted and removed.

Additional info:

I unfortunately do not have the deployment logs any more.

Comment 1 Yaniv Lavi 2016-12-12 10:19:45 UTC

*** This bug has been marked as a duplicate of bug 1001181 ***


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