question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

zfs-nfs-democratic-csi-controller CrashLoopBackOff

See original GitHub issue

Environment

  • Cluster Kubernetes On Oracle Linux 8.3
  • TrueNAS-12.0-U3.1

Issue After installation with the command:

helm upgrade --install \
  --create-namespace \
  --values freenas-nfs.yaml \
  --namespace democratic-csi \
  zfs-nfs democratic-csi/democratic-csi

I get the controller pod in CrashLoopBackOff

democratic-csi   zfs-nfs-democratic-csi-controller-ffbb878db-62jzs   1/4     CrashLoopBackOff   20         10m

Here some logs

{"service":"democratic-csi","level":"info","message":"initializing csi driver: freenas-nfs"}
{"service":"democratic-csi","level":"info","message":"starting csi server - name: org.democratic-csi.nfs, version: 1.2.0, driver: freenas-nfs, mode: controller, csi version: 1.2.0, address: , socket: unix:///csi-data/csi.sock"}
{"service":"democratic-csi","level":"info","message":"new request - driver: FreeNASDriver method: Probe call: {\"_events\":{},\"_eventsCount\":1,\"call\":{},\"cancelled\":false,\"metadata\":{\"_internal_repr\":{\"user-agent\":[\"grpc-node/1.24.0-pre1 grpc-c/8.0.0 (linux; chttp2; game)\"]},\"flags\":0},\"request\":{}}"}
{"service":"democratic-csi","level":"error","message":"handler error - driver: FreeNASDriver method: Probe error: Error: connect EHOSTUNREACH 172.17.3.20:22"}
{ code: 13, message: 'Error: connect EHOSTUNREACH 172.17.3.20:22' }
{"service":"democratic-csi","level":"info","message":"new request - driver: FreeNASDriver method: Probe call: {\"_events\":{},\"_eventsCount\":1,\"call\":{},\"cancelled\":false,\"metadata\":{\"_internal_repr\":{\"user-agent\":[\"grpc-go/1.34.0\"]},\"flags\":0},\"request\":{}}"}
{"service":"democratic-csi","level":"info","message":"new request - driver: FreeNASDriver method: Probe call: {\"_events\":{},\"_eventsCount\":1,\"call\":{},\"cancelled\":false,\"metadata\":{\"_internal_repr\":{\"user-agent\":[\"grpc-go/1.34.0\"]},\"flags\":0},\"request\":{}}"}
{"service":"democratic-csi","level":"info","message":"new request - driver: FreeNASDriver method: GetPluginInfo call: {\"_events\":{},\"_eventsCount\":1,\"call\":{},\"cancelled\":false,\"metadata\":{\"_internal_repr\":{\"user-agent\":[\"grpc-go/1.29.0\"]},\"flags\":0},\"request\":{}}"}
{"service":"democratic-csi","level":"info","message":"new response - driver: FreeNASDriver method: GetPluginInfo response: {\"name\":\"org.democratic-csi.nfs\",\"vendor_version\":\"1.2.0\"}"}
{"service":"democratic-csi","level":"info","message":"new request - driver: FreeNASDriver method: Probe call: {\"_events\":{},\"_eventsCount\":1,\"call\":{},\"cancelled\":false,\"metadata\":{\"_internal_repr\":{\"user-agent\":[\"grpc-go/1.29.0\"]},\"flags\":0},\"request\":{}}"}
{"service":"democratic-csi","level":"error","message":"handler error - driver: FreeNASDriver method: Probe error: Error: connect EHOSTUNREACH 172.17.3.20:22"}
{ code: 13, message: 'Error: connect EHOSTUNREACH 172.17.3.20:22' }
{"service":"democratic-csi","level":"error","message":"handler error - driver: FreeNASDriver method: Probe error: Error: connect EHOSTUNREACH 172.17.3.20:22"}
{ code: 13, message: 'Error: connect EHOSTUNREACH 172.17.3.20:22' }
{"service":"democratic-csi","level":"error","message":"handler error - driver: FreeNASDriver method: Probe error: Error: connect EHOSTUNREACH 172.17.3.20:22"}
{ code: 13, message: 'Error: connect EHOSTUNREACH 172.17.3.20:22' }
{"service":"democratic-csi","level":"info","message":"new request - driver: FreeNASDriver method: Probe call: {\"_events\":{},\"_eventsCount\":1,\"call\":{},\"cancelled\":false,\"metadata\":{\"_internal_repr\":{\"user-agent\":[\"grpc-node/1.24.0-pre1 grpc-c/8.0.0 (linux; chttp2; game)\"]},\"flags\":0},\"request\":{}}"}
{"service":"democratic-csi","level":"error","message":"handler error - driver: FreeNASDriver method: Probe error: Error: connect EHOSTUNREACH 172.17.3.20:22"}
{ code: 13, message: 'Error: connect EHOSTUNREACH 172.17.3.20:22' }

freenas-nfs.yaml

---
csiDriver:
  name: "org.democratic-csi.nfs"

storageClasses:
- name: freenas-nfs-csi
  defaultClass: false
  reclaimPolicy: Delete
  volumeBindingMode: Immediate
  allowVolumeExpansion: true
  parameters:
    fsType: nfs
      
  mountOptions:
  - noatime
  - nfsvers=4
  secrets:
    provisioner-secret:
    controller-publish-secret:
    node-stage-secret:
    node-publish-secret:
    controller-expand-secret:

driver:
  config:
    driver: freenas-nfs
    instance_id:
    httpConnection:
      protocol: http
      host: 172.17.3.20
      port: 80
      # This is the API key that we generated previously
      apiKey: 1-yFiiVLYEdXdjr1MLQwsNO6XkP7Ny3OaliB3WSMBrc1nP9Apf0n96oxJCTEB04SmR
      username: root
      #password:
      allowInsecure: true
      apiVersion: 2
    sshConnection:
      host: 172.17.3.20
      port: 22
      username: root
      #password:
      # This is the SSH key that we generated for passwordless authentication
      privateKey: |
        -----BEGIN OPENSSH PRIVATE KEY-----
        # Here i pasted the cert that is properly working with ssh
        -----END OPENSSH PRIVATE KEY-----
    zfs:
      # Make sure to use the storage pool that was created previously
      datasetParentName: hdd/k8s/nfs/vols
      detachedSnapshotsDatasetParentName: hdd/k8s/nfs/snaps
      datasetEnableQuotas: true
      datasetEnableReservation: false
      datasetPermissionsMode: "0777"
      datasetPermissionsUser: root
      datasetPermissionsGroup: wheel
    nfs:
      shareHost: 172.17.3.20
      shareAlldirs: false
      shareAllowedHosts: []
      shareAllowedNetworks: []
      shareMaprootUser: root
      shareMaprootGroup: wheel
      shareMapallUser: ""
      shareMapallGroup: ""

Any idea what could be the problem ?

Thanks, Yzarca

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
yzarcacommented, May 23, 2021

I tried to create new pods with ubuntu and centos, and they get CrashLoopBackOff too, so i guess the problem is into my cluster. I try to fix it and let you know.

Thanks, Yzarca

0reactions
yzarcacommented, May 26, 2021

Hi there,

I remade my k8s cluster (using calico for networking) because i really made too many experiment on it, after that i was able to configure TrueNAS quite easily.

Thanks Everybody, Regards, Yzarca

Read more comments on GitHub >

github_iconTop Results From Across the Web

Stuck in CrashLoopBackOff · Issue #45 · democratic-csi ...
I found that democratic-csi is stuck in CrashLoopBackOff in my cluster (1.18.12), with no obvious error.
Read more >
Moving to TrueNAS and Democratic CSI for Kubernetes ...
I read an article about TrueNAS enabling container storage for Kubernetes by using the Democratic CSI driver to provide direct access to the ......
Read more >
vSphere CSI controller CrashLoopBackoff in CAPV cluster
Here we fix the vSphere CSI controller CrashLoopBackoff in kubernetes cluster created with CAPV.
Read more >
democratic-CSI plugin and nfs mounting fail (connect timeout ...
I registered volumes using terraform, as suggested, and I had actions in the node storage plugins. What didn't work is the actual mount. ......
Read more >
democratic-csi - Jonathan Gazeley
A while ago I blogged about the possibilities of using Ceph to provide hyperconverged storage for Kubernetes. It works, but I never really...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found