Yaniv Bronhaim has posted comments on this change.

Change subject: Avoiding automatically restart of sanlock service when starting 
vdsmd
......................................................................


Patch Set 9:

(2 comments)

....................................................
File lib/vdsm/tool/configurator.py
Line 98: 
Line 99:     try:
Line 100:         with open(sanlock_pid_file, "r") as f:
Line 101:             sanlock_pid = f.readline().strip()
Line 102:         sanlock_status = open(proc_status_path % sanlock_pid, "r")
no. I close it when stop using it
Line 103:     except IOError as e:
Line 104:         if e.errno == os.errno.ENOENT:
Line 105:             sys.stdout.write("sanlock service is not running\n")
Line 106:             return retval  # service is not running, returning


Line 117:         raise RuntimeError("Unable to find sanlock service groups")
Line 118: 
Line 119:     sanlock_status.close()
Line 120:     diskimage_gid = grp.getgrnam(DISKIMAGE_GROUP)[2]
Line 121:     if diskimage_gid in groups:
qemu gid always appears in the "Groups:" line of sanlock's pid status file... 
also after reset.. is it a bug in sanlock or wrong check that we perform here?
Line 122:         sys.stdout.write("sanlock service requires restart\n")
Line 123:     else:
Line 124:         sys.stdout.write("sanlock service is already configured\n")
Line 125:         retval = 1


-- 
To view, visit http://gerrit.ovirt.org/19890
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I48658066f707632719df8d65799d26c7b239dcd5
Gerrit-PatchSet: 9
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Yaniv Bronhaim <[email protected]>
Gerrit-Reviewer: Alon Bar-Lev <[email protected]>
Gerrit-Reviewer: Dan Kenigsberg <[email protected]>
Gerrit-Reviewer: Yaniv Bronhaim <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to