Bug 1425799
Summary: | Fail to attach nfs based data domain | ||||||
---|---|---|---|---|---|---|---|
Product: | [oVirt] vdsm | Reporter: | Piotr Kliczewski <pkliczew> | ||||
Component: | Core | Assignee: | Dan Kenigsberg <danken> | ||||
Status: | CLOSED DUPLICATE | QA Contact: | Raz Tamir <ratamir> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 4.20.0 | CC: | bugs, nsoffer | ||||
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: | 2017-02-22 23:03:58 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | Storage | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
I tested this behavior with the same result on fedora 24 and 25 (different hosts). I investigated this with Nir and it is selinux issue. Once set to permissive it works. Here is the output of "ausearch -m AVC -ts today" time->Wed Feb 22 15:43:41 2017 type=AVC msg=audit(1487774621.533:701): avc: denied { search } for pid=4642 comm="sanlock" name="data" dev="0:46" ino=524303 scontext=system_u:system_r:sanlock_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=dir permissive=1 ---- time->Wed Feb 22 15:43:41 2017 type=AVC msg=audit(1487774621.533:702): avc: denied { search } for pid=4642 comm="sanlock" name="6cc26c9d-e1a7-43ba-95d3-c744442c7500" dev="0:46" ino=540859 scontext=system_u:system_r:sanlock_t:s0-s0:c0.c1023 tcontext=system_u:object_r:user_home_t:s0 tclass=dir permissive=1 ---- time->Wed Feb 22 15:43:41 2017 type=AVC msg=audit(1487774621.534:703): avc: denied { read write open } for pid=4642 comm="sanlock" path="/rhev/data-center/mnt/192.168.1.107:_export_data/6cc26c9d-e1a7-43ba-95d3-c744442c7500/dom_md/ids" dev="0:46" ino=524721 scontext=system_u:system_r:sanlock_t:s0-s0:c0.c1023 tcontext=system_u:object_r:user_home_t:s0 tclass=file permissive=1 ---- time->Wed Feb 22 15:44:02 2017 type=AVC msg=audit(1487774642.536:704): avc: denied { read write open } for pid=4642 comm="sanlock" path="/rhev/data-center/mnt/192.168.1.107:_export_data/6cc26c9d-e1a7-43ba-95d3-c744442c7500/dom_md/leases" dev="0:46" ino=525017 scontext=system_u:system_r:sanlock_t:s0-s0:c0.c1023 tcontext=system_u:object_r:user_home_t:s0 tclass=file permissive=1 ---- time->Wed Feb 22 15:44:07 2017 type=AVC msg=audit(1487774647.639:720): avc: denied { read write } for pid=4642 comm="sanlock" name="leases" dev="0:46" ino=525017 scontext=system_u:system_r:sanlock_t:s0-s0:c0.c1023 tcontext=system_u:object_r:user_home_t:s0 tclass=file permissive=1 ---- time->Wed Feb 22 15:44:07 2017 type=AVC msg=audit(1487774647.639:721): avc: denied { open } for pid=4642 comm="sanlock" path="/rhev/data-center/mnt/192.168.1.107:_export_data/6cc26c9d-e1a7-43ba-95d3-c744442c7500/dom_md/leases" dev="0:46" ino=525017 scontext=system_u:system_r:sanlock_t:s0-s0:c0.c1023 tcontext=system_u:object_r:user_home_t:s0 tclass=file permissive=1 *** This bug has been marked as a duplicate of bug 1414798 *** |
Created attachment 1256456 [details] vdsm log I pulled the latest vdsm code and installed. When adding new storage domain using NFS I see: 2017-02-22 14:06:04,342+01 ERROR [org.ovirt.engine.core.vdsbroker.vdsbroker.CreateStoragePoolVDSCommand] (default task-33) [16910402] Command 'CreateStoragePoolVDSCommand(HostName = fedora-vm, CreateStoragePoolVDSCommandParameters:{runAsync='true', hostId='0d4e60d8-04e2-40ed-aa87-878432cf4076', storagePoolId='00000001-0001-0001-0001-000000000311', storagePoolName='Default', masterDomainId='a7a580fa-8cb5-4c3a-94ee-543023cf093b', domainsIdList='[a7a580fa-8cb5-4c3a-94ee-543023cf093b]', masterVersion='9'})' execution failed: VDSGenericException: VDSErrorException: Failed to CreateStoragePoolVDS, error = Cannot acquire host id: (u'a7a580fa-8cb5-4c3a-94ee-543023cf093b', SanlockException(19, 'Sanlock lockspace add failure', 'No such device')), code = 661 and in vdsm log there is: AcquireHostIdFailure: Cannot acquire host id: (u'a7a580fa-8cb5-4c3a-94ee-543023cf093b', SanlockException(19, 'Sanlock lockspace add failure', 'No such device')) Expected result: Domain added properly