Bug 999542 - ovirt-hosted-engine setup fails to run again if it was previously run and aborted and vdsm daemon is already running.
Summary: ovirt-hosted-engine setup fails to run again if it was previously run and abo...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-hosted-engine-setup
Version: 3.3.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 3.3.0
Assignee: Sandro Bonazzola
QA Contact: Leonid Natapov
URL:
Whiteboard: integration
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-08-21 14:08 UTC by Leonid Natapov
Modified: 2015-09-22 13:09 UTC (History)
6 users (show)

Fixed In Version: ovirt-hosted-engine-setup-1.0.0-0.3.beta.el6ev
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-21 16:52:17 UTC
oVirt Team: ---
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:0083 0 normal SHIPPED_LIVE new package: ovirt-hosted-engine-setup 2014-01-21 21:42:22 UTC
oVirt gerrit 18372 0 None None None Never

Description Leonid Natapov 2013-08-21 14:08:39 UTC
Description of problem:

ovirt-hosted-engine setup fails to run again if it was previously run and aborted.

When running hosted engine setup there is a stage when setup asks user for shared storage domain path. At this point setup starts vdsm daemon  in order to check if the specified shared storage path is already a data domain and if hardware supports virtualization. If user abort installation at this point (or after this point) and starts installation again it will fail because vdsm daemon already running ,so setup can not start it again. We should either stop vdsm daemon upon installation abortion or not to abort setup if the daemon is already running.

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

ovirt-hosted-engine-setup-1.0.0-0.1.beta.el6.noarch
vdsm-4.12.0-68.gitc21f406.el6_4.x86_64

-----
2013-08-21 16:40:02 DEBUG otopi.plugins.otopi.services.rhel plugin.execute:441 execute-output: ('/sbin/service', 'vdsmd', 'start') stdout:
cannot start VDS daemon when another instance runs[FAILED]

2013-08-21 16:40:02 DEBUG otopi.plugins.otopi.services.rhel plugin.execute:446 execute-output: ('/sbin/service', 'vdsmd', 'start') stderr:


2013-08-21 16:40:02 DEBUG otopi.context context._executeMethod:132 method exception
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/otopi/context.py", line 122, in _executeMethod
    method['method']()
  File "/usr/share/ovirt-hosted-engine-setup/scripts/../plugins/ovirt-hosted-engine-setup/system/vdsmenv.py", line 117, in _late_setup
    state=True
  File "/usr/share/otopi/plugins/otopi/services/rhel.py", line 188, in state
    'start' if state else 'stop'
  File "/usr/share/otopi/plugins/otopi/services/rhel.py", line 96, in _executeServiceCommand
    raiseOnError=raiseOnError
  File "/usr/lib/python2.6/site-packages/otopi/plugin.py", line 451, in execute
    command=args[0],
RuntimeError: Command '/sbin/service' failed to execute

Comment 1 Sandro Bonazzola 2013-08-23 06:17:54 UTC
patch merged upstream master.

In LATE_SETUP stage start vdsmd only if it is not
already running, avoiding errors due to
'cannot start VDS daemon when another instance runs'

Comment 3 Leonid Natapov 2013-10-17 10:40:17 UTC
fixed.

Comment 4 Charlie 2013-11-28 01:19:17 UTC
This bug is currently attached to errata RHBA-2013:15257. If this change is not to be documented in the text for this errata please either remove it from the errata, set the requires_doc_text flag to 
minus (-), or leave a "Doc Text" value of "--no tech note required" if you do not have permission to alter the flag.

Otherwise to aid in the development of relevant and accurate release documentation, please fill out the "Doc Text" field above with these four (4) pieces of information:

* Cause: What actions or circumstances cause this bug to present.
* Consequence: What happens when the bug presents.
* Fix: What was done to fix the bug.
* Result: What now happens when the actions or circumstances above occur. (NB: this is not the same as 'the bug doesn't present anymore')

Once filled out, please set the "Doc Type" field to the appropriate value for the type of change made and submit your edits to the bug.

For further details on the Cause, Consequence, Fix, Result format please refer to:

https://bugzilla.redhat.com/page.cgi?id=fields.html#cf_release_notes 

Thanks in advance.

Comment 5 Sandro Bonazzola 2013-12-05 11:01:00 UTC
hosted engine is a new package, does not need errata for specific bugs during its development.

Comment 6 errata-xmlrpc 2014-01-21 16:52:17 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

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

http://rhn.redhat.com/errata/RHBA-2014-0083.html


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