Bug 1585200 - runner: don't allow multiple instances of daemon to run
Summary: runner: don't allow multiple instances of daemon to run
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: tcmu-runner
Version: cns-3.10
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: CNS 3.10
Assignee: Prasanna Kumar Kalever
QA Contact: krishnaram Karthick
URL:
Whiteboard:
Depends On:
Blocks: 1568862
TreeView+ depends on / blocked
 
Reported: 2018-06-01 13:38 UTC by Prasanna Kumar Kalever
Modified: 2018-09-12 09:26 UTC (History)
10 users (show)

Fixed In Version: tcmu-runner-1.2.0-20.el7rhgs
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-09-12 09:25:34 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2018:2691 0 None None None 2018-09-12 09:26:41 UTC

Description Prasanna Kumar Kalever 2018-06-01 13:38:30 UTC
Description of problem:

In tcmu-runner, until now there is no check to defend on multiple runs of daemon within the same node.

So there is a possibility of two or more runner instances running on the same node at a given time.


PR:
https://github.com/open-iscsi/tcmu-runner/pull/418

The patch fixing takes a non blocking lock on 'tcmu.lock' file, if it succeeds only then daemon is allowed to run, if there is already a lock on lock-file (taken by some other instance of tcmu-runner) we will exit.

Comment 12 errata-xmlrpc 2018-09-12 09:25:34 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.

https://access.redhat.com/errata/RHEA-2018:2691


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