Fixed
Created: Jul 15, 2013
Updated: Mar 11, 2016
Resolved Date: Nov 25, 2013
Found In Version: 5.0.1
Fix Version: 5.0.1.10
Severity: Standard
Applicable for: Wind River Linux 5
Component/s: Documentation
Problem Description
======================
CreateStorageDomain failed on both glusterfs and nfs storage due the StorageServerAccessPermissionError.
----------------
StorageServerAccessPermissionError: Permission settings on the specified path do not allow access to the storage. Verify permission settings on the specified storage path.: 'path = /rhev/data-center/mnt/128.224.165.233:_media_sda1_export_data'
Expected Behavior
======================
CreateStorageDomain success on any supported fs type
Observed Behavior
======================
On Fedora 18, it works well
Logs
======================
Thread-15::INFO::2013-07-15 17:26:01,696::nfsSD::68::Storage.StorageDomain::(create) sdUUID=0b2516b6-2cc3-4d12-baaf-112e0362f57b domainName=Local_domain remotePath=128.224.165.233:/media/sda1/export/data domClass=1
Thread-15::ERROR::2013-07-15 17:26:01,856::task::833::TaskManager.Task::(_setError) Task=`bbee060c-9294-48d3-bede-55f0c9e8e935`::Unexpected error
Traceback (most recent call last):
File "/usr/share/vdsm/storage/task.py", line 840, in _run
return fn(*args, **kargs)
File "/usr/share/vdsm/logUtils.py", line 42, in wrapper
res = f(*args, **kwargs)
File "/usr/share/vdsm/storage/hsm.py", line 2425, in createStorageDomain
domVersion)
File "/usr/share/vdsm/storage/nfsSD.py", line 80, in create
version)
File "/usr/share/vdsm/storage/nfsSD.py", line 48, in _preCreateValidation
fileSD.validateDirAccess(domPath)
File "/usr/share/vdsm/storage/fileSD.py", line 58, in validateDirAccess
raise se.StorageServerAccessPermissionError(dirPath)
StorageServerAccessPermissionError: Permission settings on the specified path do not allow access to the storage. Verify permission settings on the specified storage path.: 'path = /rhev/data-center/mnt/128.224.165.233:_media_sda1_export_data'
Thread-15::DEBUG::2013-07-15 17:26:01,891::task::852::TaskManager.Task::(_run) Task=`bbee060c-9294-48d3-bede-55f0c9e8e935`::Task._run: bbee060c-9294-48d3-bede-55f0c9e8e935 (1, '0b2516b6-2cc3-4d12-baaf-112e0362f57b', 'Local_domain', '128.224.165.233:/media/sda1/export/data', 1, 0) {} failed - stopping task
change the two directory access permission as below showing:
# ls /rhev/data-center/mnt/
drwxrwxrwx. 3 vdsm kvm 4096 Jul 15 17:54 128.224.165.233:_media_sda1_export_data
drwxrwxrwx. 2 vdsm kvm 4096 Jul 15 05:46 128.224.165.233:ssme
or
change the two exported directory access permission and do re-mount operations
# ls /media/sda1/export/ -l
drwxrwxrwx. 3 root root 4096 Jul 15 17:41 brick1
drwxrwxrwx. 3 root root 4096 Jul 15 17:41 brick2
drwxrwxrwx. 3 vdsm kvm 4096 Jul 15 17:54 data
1) /lpg-build/cdc/fast_prod/wrlinuxovp/wrlinux-x/wrlinux/configure --enable-jobs=8 --enable-parallel-pkgbuilds=4 --enable-kernel=preempt-rt --enable-addons=wr-ovp --enable-rootfs=ovp-ovirt-node --enable-board=intel_xeon_core --with-rcpl-version=0
2) setting nfs exported directory and glusterfs bricks directory.
3) start vdsmd, glusterd, nfsserver services
4) create mount point in data-center directory and do mount job.
# ls /rhev/data-center/mnt/ -l
drwxr-xr-x. 3 vdsm kvm 4096 Jul 15 17:54 128.224.165.233:_media_sda1_export_data
drwxr-xr-x. 2 vdsm kvm 4096 Jul 15 05:46 128.224.165.233:ssme
5) run create-domain scripts
# python nfs_vdsm_storage.py or
# python glusterfs_vdsm_storage.py
Scripts attached.