opf / helm-charts

OPF helm chart repository
https://charts.openproject.org
GNU General Public License v3.0
11 stars 23 forks source link

pv failed to be mounted to the container #115

Open vitaaaaa1 opened 5 months ago

vitaaaaa1 commented 5 months ago

Hello, I have a problem with PV mounting I use the command helm upgrade --create-namespace --namespace openproject --install openproject openproject/openproject Go to install openproject,but containr is error

kubectl get pod -n openproject
NAME                                          READY   STATUS     RESTARTS   AGE
openproject-memcached-59958bd4f7-x8rkq        1/1     Running    0          9m49s
openproject-postgresql-0                      1/1     Running    0          9m49s
openproject-seeder-20240621145956-ctdml       0/1     Init:0/1   0          9m49s
openproject-web-dd9d499b8-hwz8p               0/1     Init:0/1   0          9m49s
openproject-worker-default-755795b6d8-7hd2q   0/1     Init:0/1   0          9m49s
kubectl describe  pod -n openproject openproject-seeder-20240621145956-ctdml
...
Events:
  Type     Reason                  Age                From                     Message
  ----     ------                  ----               ----                     -------
  Warning  FailedScheduling        84s (x2 over 86s)  default-scheduler        0/6 nodes are available: 6 pod has unbound immediate PersistentVolumeClaims. preemption: 0/6 nodes are available: 6 Preemption is not helpful for scheduling.
  Normal   Scheduled               81s                default-scheduler        Successfully assigned openproject/openproject-seeder-20240621145956-ctdml to test-sys-k8s-worker-02
  Normal   SuccessfulAttachVolume  71s                attachdetach-controller  AttachVolume.Attach succeeded for volume "pvc-4fe25aeb-897e-4a9f-b051-efb9febab18c"
  Normal   SuccessfulAttachVolume  70s                attachdetach-controller  AttachVolume.Attach succeeded for volume "pvc-c6478e02-16c5-4a58-baee-49187ddbd27d"
  Normal   SuccessfulAttachVolume  42s                attachdetach-controller  AttachVolume.Attach succeeded for volume "pvc-fbfd02f4-8384-4420-96fc-90bf9a8cff13"
  Warning  FailedMount             5s (x8 over 70s)   kubelet                  MountVolume.SetUp failed for volume "pvc-4fe25aeb-897e-4a9f-b051-efb9febab18c" : rpc error: code = Aborted desc = no Pending workload pods for volume pvc-4fe25aeb-897e-4a9f-b051-efb9febab18c to be mounted: map[]
  Warning  FailedMount             4s (x8 over 69s)   kubelet                  MountVolume.SetUp failed for volume "pvc-c6478e02-16c5-4a58-baee-49187ddbd27d" : rpc error: code = Aborted desc = no Pending workload pods for volume pvc-c6478e02-16c5-4a58-baee-49187ddbd27d to be mounted: map[]

But my stoargeclass has successfully created PVS, and the PVC created by openproject have also successfully bound these PVC

 kubectl get pv | grep open
pvc-24fc0370-6d97-48b6-b26f-61e761bebeed   5Gi        RWO            Retain           Bound    openproject/openproject-web-dd9d499b8-hwz8p-tmp                        longhorn                95s
pvc-449997e3-e594-4f01-801c-95990ef1b8d8   5Gi        RWO            Retain           Bound    openproject/openproject-worker-default-755795b6d8-7hd2q-tmp            longhorn                95s
pvc-4fe25aeb-897e-4a9f-b051-efb9febab18c   5Gi        RWO            Retain           Bound    openproject/openproject-seeder-20240621145956-ctdml-tmp                longhorn                94s
pvc-98e18c4a-229e-4717-a1cf-95550f64cb2f   8Gi        RWO            Retain           Bound    openproject/data-openproject-postgresql-0                              longhorn                95s
pvc-ac7ecacf-f596-46cb-ac8d-5b2533dd362f   5Gi        RWO            Retain           Bound    openproject/openproject-worker-default-755795b6d8-7hd2q-app-tmp        longhorn                95s
pvc-c6478e02-16c5-4a58-baee-49187ddbd27d   5Gi        RWO            Retain           Bound    openproject/openproject-seeder-20240621145956-ctdml-app-tmp            longhorn                94s
pvc-e965f03a-86e9-44c6-9068-8e4f7fba4685   5Gi        RWO            Retain           Bound    openproject/openproject-web-dd9d499b8-hwz8p-app-tmp                    longhorn                95s
pvc-fbfd02f4-8384-4420-96fc-90bf9a8cff13   1Gi        RWX            Retain           Bound    openproject/openproject                                                longhorn                95s
vitaaaaa1 commented 5 months ago

this is stoageclass

 kubectl get sc
NAME                 PROVISIONER          RECLAIMPOLICY   VOLUMEBINDINGMODE   ALLOWVOLUMEEXPANSION   AGE
longhorn (default)   driver.longhorn.io   Retain          Immediate           true                   167d