Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1524568

Summary: permission denied on when trying to configure local storage
Product: OpenShift Container Platform Reporter: raffaele spazzoli <rspazzol>
Component: StorageAssignee: hchen
Status: CLOSED WORKSFORME QA Contact: Qin Ping <piqin>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.7.1CC: aos-bugs, aos-storage-staff, bchilds
Target Milestone: ---   
Target Release: 3.8.0   
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: 2018-01-22 16:20:57 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:

Description raffaele spazzoli 2017-12-11 17:06:00 UTC
Hi, I configured local storage following the steps here[1].
My configuration can be found here[2].
When the local-storage pods start I'm getting this error:
E1211 16:56:47.704183       1 discovery.go:91] Error reading directory: open /mnt/local-storage: permission denied

although the pod should have access to it because:

[rspazzol@infranode1 ~]$ ls -la /mnt/
total 0
drwxr-xr-x.  3 root root  27 Dec 11 16:56 .
dr-xr-xr-x. 18 root root 245 Dec 11 16:31 ..
drwxrwxrwx.  2 root root   6 Dec 11 16:56 local-storage

I wonder what else could it be.


[1]https://docs.openshift.com/container-platform/3.7/install_config/configuring_local.html#install-config-configuring-local
[2]: https://github.com/raffaelespazzoli/openshift-enablement-exam/tree/master/misc/local-storage

Comment 1 Qin Ping 2017-12-19 06:32:17 UTC
@rspazzol, you can try: chcon -Rt svirt_sandbox_file_t /mnt/local-storage