Bug 1778485
Summary: | Sanlock fail to open disk (EACCESS), sanlock_write_lockspace fails with -ENODEV | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Nir Soffer <nsoffer> | ||||
Component: | sanlock | Assignee: | David Teigland <teigland> | ||||
Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 31 | CC: | cfeist, fsimonce, nsoffer, teigland | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2020-11-24 18:48:25 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Nir Soffer
2019-12-01 14:27:02 UTC
Correction - I looked at wrong place before - Here is the actual code handling sanlock_write_lockspace: 1822 rv = open_disk(&sd); 1823 if (rv < 0) { 1824 result = -ENODEV; 1825 goto reply; 1826 } 1827 1828 if (ca->header.data2) 1829 io_timeout = ca->header.data2; 1830 1831 result = delta_lease_init(task, &lockspace, io_timeout, &sd); 1832 1833 close_disks(&sd, 1); 1834 reply: 1835 log_debug("cmd_write_lockspace %d,%d done %d", ca->ci_in, fd, result); 1836 1837 send_result(fd, &ca->header, result); 1838 client_resume(ca->ci_in); Created attachment 1641085 [details]
Possible patch
This should fix the error, not tested and may need more work.
When doing that in the past, a problem I've run into is that the error number might be the same error number that is returned in another error path. So a caller won't know if the error came from opening the device or from some other part of the code. One way to work around that problem is to translate a specific error location+number to a new SANLK error number that you add in sanlock_rv.h, and return the SANLK number. e.g. rv = open_disk(&sd); if (rv < 0) { if (rv == -EACCES) result = SANLK_OPEN_ACCES; else result = -ENODEV; goto reply; } This message is a reminder that Fedora 30 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora 30 on 2020-05-26. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '30'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 30 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. This is still not fixed in master, moving to Fedora 31. This message is a reminder that Fedora 31 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora 31 on 2020-11-24. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '31'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 31 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Fedora 31 changed to end-of-life (EOL) status on 2020-11-24. Fedora 31 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. |