Bug 1459010 - [DOCS] Persistent Storage Using Azure File required "yum install cifs-utils" before
Summary: [DOCS] Persistent Storage Using Azure File required "yum install cifs-utils" ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Documentation
Version: 3.5.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Gaurav Nelson
QA Contact: Wenqi He
Vikram Goyal
URL:
Whiteboard: 3.7-release-plan
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-06 06:26 UTC by Takayoshi Tanaka
Modified: 2020-08-13 09:18 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-30 00:18:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Takayoshi Tanaka 2017-06-06 06:26:36 UTC
Document URL: 
https://docs.openshift.com/container-platform/3.5/install_config/persistent_storage/persistent_storage_azure_file.html

Section Number and Name: 
NA (missing prerequisite)

Describe the issue: 
Without installing cifs-utils package, OpenShift failed to mount PVC with Persistent Storage using Azure file.

```
Jun 06 03:54:17 tatanaka-node2 atomic-openshift-node[2476]: E0606 03:54:17.817771    2476 mount_linux.go:119] Mount failed: exit status 32
Jun 06 03:54:17 tatanaka-node2 atomic-openshift-node[2476]: Mounting command: mount
Jun 06 03:54:17 tatanaka-node2 atomic-openshift-node[2476]: Mounting arguments: //tatanaka01861043disk.file.core.windows.net/example /var/lib/origin/openshift.local.volumes/pods/83ffb893-4a6b-11e7-9689-000d3a510
Jun 06 03:54:17 tatanaka-node2 atomic-openshift-node[2476]: Output: mount: wrong fs type, bad option, bad superblock on //tatanaka01861043disk.file.core.windows.net/example,
Jun 06 03:54:17 tatanaka-node2 atomic-openshift-node[2476]: missing codepage or helper program, or other error
Jun 06 03:54:17 tatanaka-node2 atomic-openshift-node[2476]: (for several filesystems (e.g. nfs, cifs) you might
Jun 06 03:54:17 tatanaka-node2 atomic-openshift-node[2476]: need a /sbin/mount.<type> helper program)
Jun 06 03:54:17 tatanaka-node2 atomic-openshift-node[2476]: In some cases useful info is found in syslog - try
Jun 06 03:54:17 tatanaka-node2 atomic-openshift-node[2476]: dmesg | tail or so.
```

After installing "cifs-utils" according to the Microsoft Azure doc, OCP can mount Azure file share and create a pod.
https://docs.microsoft.com/en-us/azure/storage/storage-how-to-use-files-linux#mount-the-file-share

Suggestions for improvement: 
Adding prerequisite that a user must install cifs-utils on each node.

Additional information:

Comment 1 Takayoshi Tanaka 2017-06-06 07:01:29 UTC
I found another issue related to this BZ.
Even if installing "yum cifs-utils" a pod can start mount with Azure File Share, but a pod fails to write or execute file/directory under shared directory.

//in the pod
$ df -h /data/                                                                                                                                                                                                             
Filesystem                                             Size  Used Avail Use% Mounted on                                                                                                                                          
//tatanaka01861043files.file.core.windows.net/example  5.0T     0  5.0T   0% /data        
$ ls /data                                                                                                                                                                                                                       
ls: cannot open directory /data: Permission denied    
$ touch /data/a.txt
touch: cannot touch '/data/a': Permission denied

Hasn't CIFS share fully supported yet?
https://bugzilla.redhat.com/show_bug.cgi?id=1402598

Also, from our internal document, a pod can write by enabling SELinux boolean on the node.

#  /usr/sbin/setsebool -P virt_use_samba on

Comment 3 Takayoshi Tanaka 2017-06-06 07:52:27 UTC
upstream document PR for adding this feature.
https://github.com/openshift/openshift-docs/pull/4463

Comment 5 Gaurav Nelson 2017-08-15 08:23:38 UTC
updated documentation to include suggested prerequisites. Please review https://github.com/openshift/openshift-docs/pull/5020

Comment 6 openshift-github-bot 2017-08-28 04:02:35 UTC
Commit pushed to master at https://github.com/openshift/openshift-docs

https://github.com/openshift/openshift-docs/commit/9ebb8841d56ca1227f43649bc033a6b822cd8f89
Merge pull request #5020 from gaurav-nelson/Bug1459010Fixes

Bug#1459010 fixes - Added prerequisites for persistent storage with Azure File


Note You need to log in before you can comment on or make changes to this bug.