Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FILEPERMISSIONS_UID: unbound variable when running the image #161

Open
bianchi2 opened this issue Sep 1, 2023 · 4 comments
Open

FILEPERMISSIONS_UID: unbound variable when running the image #161

bianchi2 opened this issue Sep 1, 2023 · 4 comments
Assignees

Comments

@bianchi2
Copy link

bianchi2 commented Sep 1, 2023

Trying to deploy openebs/nfs-server-alpine:0.10.0 to kube but:

Writing SHARED_DIRECTORY to /etc/exports file
The PERMITTED environment variable is unset or null, defaulting to '*'.
This means any client can mount.
The READ_ONLY environment variable is unset or null, defaulting to 'rw'.
Clients have read/write access.
The SYNC environment variable is unset or null, defaulting to 'async' mode.
Writes will not be immediately written to disk.
/usr/bin/nfsd.sh: line 127: FILEPERMISSIONS_UID: unbound variable
@niladrih niladrih self-assigned this Sep 7, 2023
@niladrih
Copy link
Member

niladrih commented Sep 7, 2023

Hi @bianchi2. Could you share more details about your environment:

  • Kubernetes version
  • dynamic-nfs-provisioner version
  • OS and version

Also the complete logs would be useful:

  • provisioner logs
  • server logs
  • PVC yaml
  • StorageClass yaml
  • kubelet logs for node where the application pod is scheduled
  • Provisioner yaml (need to see the env values for the FILEPERMISSIONS)

@kingmorning
Copy link

kingmorning commented Sep 13, 2023

The same issue.

  1. System: Linux XXXX 5.15.0-76-generic doc(intro): Adding document on using NFS Provisioner #83~20.04.1-Ubuntu SMP Wed Jun 21 20:23:31 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

  2. Logs:
    Writing SHARED_DIRECTORY to /etc/exports file The PERMITTED environment variable is unset or null, defaulting to '*'. This means any client can mount. The READ_ONLY environment variable is unset or null, defaulting to 'rw'. Clients have read/write access. The SYNC environment variable is unset or null, defaulting to 'async' mode. Writes will not be immediately written to disk. /usr/bin/nfsd.sh: line 127: FILEPERMISSIONS_UID: unbound variable

  3. docker compose:
    `version: "2.1"
    services:
    nfs:
    image: openebs/nfs-server-alpine:0.10.x-ci
    container_name: nfs
    restart: unless-stopped
    privileged: true
    environment:

    • SHARED_DIRECTORY=/data
      volumes:
    • /ssd1/nfs-data:/data
      ports:
    • 2049:2049`

@niladrih
Copy link
Member

I am not able to picture your configuration @kingmorning. Could you share your storageClass yaml? If you're trying to use FILEPERMISSIONS, could you check if you're following this doc: https://github.com/openebs/dynamic-nfs-provisioner/blob/develop/docs/tutorial/file-permissions.md?

@niladrih
Copy link
Member

The intro doc needs an update on the FILEPERMISSIONS options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants