{"action":"created","issue":{"url":"https://api.github.com/repos/rancher/rancher/issues/4423","repository_url":"https://api.github.com/repos/rancher/rancher","labels_url":"https://api.github.com/repos/rancher/rancher/issues/4423/labels{/name}","comments_url":"https://api.github.com/repos/rancher/rancher/issues/4423/comments","events_url":"https://api.github.com/repos/rancher/rancher/issues/4423/events","html_url":"https://github.com/rancher/rancher/issues/4423","id":148522697,"number":4423,"title":"NFS volume mounting failed in Kubernetes environment","user":{"login":"galal-hussein","id":3309968,"avatar_url":"https://avatars.githubusercontent.com/u/3309968?v=3","gravatar_id":"","url":"https://api.github.com/users/galal-hussein","html_url":"https://github.com/galal-hussein","followers_url":"https://api.github.com/users/galal-hussein/followers","following_url":"https://api.github.com/users/galal-hussein/following{/other_user}","gists_url":"https://api.github.com/users/galal-hussein/gists{/gist_id}","starred_url":"https://api.github.com/users/galal-hussein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galal-hussein/subscriptions","organizations_url":"https://api.github.com/users/galal-hussein/orgs","repos_url":"https://api.github.com/users/galal-hussein/repos","events_url":"https://api.github.com/users/galal-hussein/events{/privacy}","received_events_url":"https://api.github.com/users/galal-hussein/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rancher/rancher/labels/area/kubernetes","name":"area/kubernetes","color":"fbca04"},{"url":"https://api.github.com/repos/rancher/rancher/labels/kind/bug","name":"kind/bug","color":"fc2929"},{"url":"https://api.github.com/repos/rancher/rancher/labels/status/resolved","name":"status/resolved","color":"0052cc"}],"state":"closed","locked":false,"assignee":{"login":"alena1108","id":1562176,"avatar_url":"https://avatars.githubusercontent.com/u/1562176?v=3","gravatar_id":"","url":"https://api.github.com/users/alena1108","html_url":"https://github.com/alena1108","followers_url":"https://api.github.com/users/alena1108/followers","following_url":"https://api.github.com/users/alena1108/following{/other_user}","gists_url":"https://api.github.com/users/alena1108/gists{/gist_id}","starred_url":"https://api.github.com/users/alena1108/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alena1108/subscriptions","organizations_url":"https://api.github.com/users/alena1108/orgs","repos_url":"https://api.github.com/users/alena1108/repos","events_url":"https://api.github.com/users/alena1108/events{/privacy}","received_events_url":"https://api.github.com/users/alena1108/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/rancher/rancher/milestones/61","html_url":"https://github.com/rancher/rancher/milestones/Release%201.1.0-dev5","labels_url":"https://api.github.com/repos/rancher/rancher/milestones/61/labels","id":1651837,"number":61,"title":"Release 1.1.0-dev5","description":"","creator":{"login":"will-chan","id":10134676,"avatar_url":"https://avatars.githubusercontent.com/u/10134676?v=3","gravatar_id":"","url":"https://api.github.com/users/will-chan","html_url":"https://github.com/will-chan","followers_url":"https://api.github.com/users/will-chan/followers","following_url":"https://api.github.com/users/will-chan/following{/other_user}","gists_url":"https://api.github.com/users/will-chan/gists{/gist_id}","starred_url":"https://api.github.com/users/will-chan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/will-chan/subscriptions","organizations_url":"https://api.github.com/users/will-chan/orgs","repos_url":"https://api.github.com/users/will-chan/repos","events_url":"https://api.github.com/users/will-chan/events{/privacy}","received_events_url":"https://api.github.com/users/will-chan/received_events","type":"User","site_admin":false},"open_issues":47,"closed_issues":128,"state":"open","created_at":"2016-03-17T17:24:50Z","updated_at":"2016-06-17T16:44:35Z","due_on":"2016-06-19T07:00:00Z","closed_at":null},"comments":3,"created_at":"2016-04-15T00:45:37Z","updated_at":"2016-06-17T16:44:35Z","closed_at":"2016-06-17T16:44:35Z","body":"Rancher Version:\r\n1.0.0\r\nDocker Version:\r\n1.10.3\r\nOS: \r\nUbuntu 14.04\r\nSteps to Reproduce: \r\n- create nfs exported volume  (/nfs) on the registered host\r\n- install nfs-common on the registered host\r\n- create the PV and PVC for nfs\r\n\r\nnfs-pv.yaml\r\n```\r\napiVersion: v1\r\nkind: PersistentVolume\r\nmetadata:\r\n  name: nfs\r\nspec:\r\n  capacity:\r\n    storage: 1Mi\r\n  accessModes:\r\n    - ReadWriteMany\r\n  nfs:\r\n    server: 82.191.4.78\r\n    path: \"/nfs\"\r\n```\r\nnfs-pvc.yaml\r\n```\r\nkind: PersistentVolumeClaim\r\napiVersion: v1\r\nmetadata:\r\n  name: nfs\r\nspec:\r\n  accessModes:\r\n    - ReadWriteMany\r\n  resources:\r\n    requests:\r\n      storage: 1Mi\r\n```\r\n- try to mount the nfs volume from within a pod:\r\n```\r\napiVersion: v1\r\nkind: ReplicationController\r\nmetadata:\r\n  name: nfs-web\r\nspec:\r\n  replicas: 2\r\n  selector:\r\n    role: web-frontend\r\n  template:\r\n    metadata:\r\n      labels:\r\n        role: web-frontend\r\n    spec:\r\n      containers:\r\n      - name: web\r\n        image: nginx\r\n        ports:\r\n          - name: web\r\n            containerPort: 80\r\n        volumeMounts:\r\n            # name must match the volume name below\r\n            - name: nfs\r\n              mountPath: \"/usr/share/nginx/html\"\r\n      volumes:\r\n      - name: nfs\r\n        persistentVolumeClaim:\r\n          claimName: nfs\r\n```\r\nResults: \r\nthe mounting failed and the pod stuck in pending state\r\n```\r\nMounting arguments: 82.191.4.78:/nfs /var/lib/kubelet/pods/1dae9e6b-02a2-11e6-9a27-0286285ab4f0/volumes/kubernetes.io~nfs/nfs nfs []\r\nOutput: mount: wrong fs type, bad option, bad superblock on 82.191.4.78:/nfs,\r\n       missing codepage or helper program, or other error\r\n       (for several filesystems (e.g. nfs, cifs) you might\r\n       need a /sbin/mount.<type> helper program)\r\n\r\n       In some cases useful info is found in syslog - try\r\n       dmesg | tail or so.\r\n\r\n; skipping pod\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/rancher/rancher/issues/comments/226820187","html_url":"https://github.com/rancher/rancher/issues/4423#issuecomment-226820187","issue_url":"https://api.github.com/repos/rancher/rancher/issues/4423","id":226820187,"user":{"login":"galal-hussein","id":3309968,"avatar_url":"https://avatars.githubusercontent.com/u/3309968?v=3","gravatar_id":"","url":"https://api.github.com/users/galal-hussein","html_url":"https://github.com/galal-hussein","followers_url":"https://api.github.com/users/galal-hussein/followers","following_url":"https://api.github.com/users/galal-hussein/following{/other_user}","gists_url":"https://api.github.com/users/galal-hussein/gists{/gist_id}","starred_url":"https://api.github.com/users/galal-hussein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galal-hussein/subscriptions","organizations_url":"https://api.github.com/users/galal-hussein/orgs","repos_url":"https://api.github.com/users/galal-hussein/repos","events_url":"https://api.github.com/users/galal-hussein/events{/privacy}","received_events_url":"https://api.github.com/users/galal-hussein/received_events","type":"User","site_admin":false},"created_at":"2016-06-17T16:44:35Z","updated_at":"2016-06-17T16:44:35Z","body":"Tested with version v1.1.0-dev5-rc2 with the same configuration files, and it worked correctly."}}
{"actor":{"display_login":"galal-hussein"}}