https://rancher.com/ logo
Title
s

stale-painting-80203

09/21/2022, 8:07 PM
I am trying to install MariaDB using bitnami helm chart, but it fails (pod remains in ContainerCreating state). I have longhorn installed and can see that MariaDB volume gets created, PersistentVolumes gets created and shows in as Bond. Here is the describe for the node.
Warning  FailedScheduling        46m                 default-scheduler        0/5 nodes are available: 5 pod has unbound immediate PersistentVolumeClaims. preemption: 0/5 nodes are available: 5 Preemption is not helpful for scheduling.
  Warning  FailedScheduling        46m                 default-scheduler        0/5 nodes are available: 5 pod has unbound immediate PersistentVolumeClaims. preemption: 0/5 nodes are available: 5 Preemption is not helpful for scheduling.
  Normal   Scheduled               46m                 default-scheduler        Successfully assigned coturn/mdb-coturn-mariadb-0 to node-wrk2
  Warning  FailedMount             46m                 kubelet                  Unable to attach or mount volumes: unmounted volumes=[data config], unattached volumes=[data config]: error processing PVC coturn/data-mdb-coturn-mariadb-0: failed to fetch PVC from API server: persistentvolumeclaims "data-mdb-coturn-mariadb-0" is forbidden: User "system:node:node-wrk2" cannot get resource "persistentvolumeclaims" in API group "" in the namespace "coturn": no relationship found between node 'node-wrk2' and this object
  Warning  FailedMount             46m                 kubelet                  MountVolume.SetUp failed for volume "config" : failed to sync configmap cache: timed out waiting for the condition
Any suggestions on what might be the issue? Thanks in advance for any help.
I think there was something wrong with the worker nodes. I deleted the worker nodes from the cluster. cleaned up the VMs
cleanupdirs="/etc/rancher /etc/cni /opt/cni /var/lib/cni /var/run/calico"
for dir in $cleanupdirs; do
  echo "Removing $dir"
  rm -rf $dir
done
and reinstalled the agent registering them to the original cluster. Once the nodes were back in the cluster, I was successfully able to install MariaDB.