Bug 676804
Summary: | iscsid: semop down failed; tgtd: semop up failed | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Roland Friedwagner <roland.friedwagner> | ||||||||
Component: | scsi-target-utils | Assignee: | Andy Grover <agrover> | ||||||||
Status: | CLOSED ERRATA | QA Contact: | Zhouping Liu <zliu> | ||||||||
Severity: | medium | Docs Contact: | |||||||||
Priority: | unspecified | ||||||||||
Version: | 5.6 | CC: | agrover, nobody+295318, qcai, roland.friedwagner | ||||||||
Target Milestone: | rc | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | x86_64 | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | |||||||||||
: | 677475 (view as bug list) | Environment: | |||||||||
Last Closed: | 2011-07-21 11:36:24 UTC | Type: | --- | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Bug Depends On: | |||||||||||
Bug Blocks: | 677475 | ||||||||||
Attachments: |
|
Description
Roland Friedwagner
2011-02-11 10:48:24 UTC
Ok further testing reveals how to reproduce the **iscsid: semop down failed 43** error: 1. service tgtd stop 2. service iscsid restart 3. /usr/sbin/tgtd &>/dev/null 4. tgtadm --op delete --mode system 3. /usr/sbin/tgtd &>/dev/null 5. login to any iscsi target (xxx): iscsiadm --mode node --targetname=iqn.xxx --login >> Syslog Error: iscsid: semop down failed 43 6. logout to any iscsi target (xxx): iscsiadm --mode node --targetname=iqn.xxx --logout >> Syslog Error: iscsid: semop down failed 43 Until you did not restart iscsid you get the **iscsid: semop down failed 43** on each login/logout of an iscsi target. ==> tgtd has brocken icsid semaphores?? Add.Info: same behavor with scsi-target-utils-0.0-6.20091205snap.el5_5.3 Created attachment 478273 [details]
SEMKEY clash with iscsid fix
Created attachment 478274 [details]
drbd control socket move2 /var/run
Created attachment 478275 [details]
SPEC File diff
The reason is a id collision with same SEMKEY in log.c used in scsi-target-utils-1.0.8-0.el5 and iscsi-initiator-utils-6.2.0.872-6.el5 I uploaded patch scsi-target-utils-fix-semkey-clash.patch to fix this! It may be a very good thing that this fix makes it to RHN very soon, because until than logging of iscid and tgtd is undefined/broken. If Mike digs into sources, I suggest also to fix the nasty location for the tgtd control socket being placed in /tmp but should be IMHO /var/run. (Uploaded scsi-target-utils-namespace-socket-path.patch for this). Kind Regards, Roland Hey Roland, Thanks for both patches and problem analysis. Patches look ok to me. Hi Roland, I'd like to get both of these upstream as well. Can you submit them to stgt list? Or, if you want to just add checkin comments and signoff here, I can do it. Thanks -- Andy Hello Andy, I posted both issues (sem key clash and ipc socket path) and the patches to stgt project mailing list stgt.org yesterday. BTW: the issue was still in latest(1.0.14) release. Kind Regards, Roland Much thanks, Roland! reproduced it on the version packages: iscsi-initiator-utils-6.2.0.872-6.el5.x86_64.rpm scsi-target-utils-1.0.8-0.el5.x86_64.rpm verified it on: iscsi-initiator-utils-6.2.0.872-9.el5 scsi-target-utils-1.0.14-1.el5 An Errata was released for RHEL6 - http://rhn.redhat.com/errata/RHBA-2011-0734.html What is planned for RHEL5? check out the rhel 5.7 beta, it's in there. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-1049.html |