keptn-sandbox / keptn-on-k3s

Instructions and scripts how to deploy Keptn on K3s
Apache License 2.0
28 stars 23 forks source link

Failed to create PVC in Red Hat Enterprise Linux #12

Open agrimmer opened 3 years ago

agrimmer commented 3 years ago

In Red Hat Enterprise Linux (tested version was 7), all PVC get stuck in the Pending state. When having a look into the local-path-provisioner, I get the following errors

ERROR: logging before flag.Parse: W0812 14:37:48.766313       1 controller.go:686] Retrying syncing claim "keptn/mongodata" because failures 0 < threshold 15
ERROR: logging before flag.Parse: E0812 14:37:48.767489       1 controller.go:701] error syncing claim "keptn/mongodata": failed to provision volume with StorageClass "local-path": failed to create volume pvc-b577bdcc-82d6-47c6-9dcc-5807a2a7e1d6: create process timeout after 120 seconds
ERROR: logging before flag.Parse: I0812 14:37:48.767857       1 event.go:221] Event(v1.ObjectReference{Kind:"PersistentVolumeClaim", Namespace:"keptn", Name:"mongodata", UID:"b577bdcc-82d6-47c6-9dcc-5807a2a7e1d6", APIVersion:"v1", ResourceVersion:"1636", FieldPath:""}): type: 'Warning' reason: 'ProvisioningFailed' failed to provision volume with StorageClass "local-path": failed to create volume pvc-b577bdcc-82d6-47c6-9dcc-5807a2a7e1d6: create process timeout after 120 seconds
ERROR: logging before flag.Parse: W0812 14:37:49.011368       1 controller.go:686] Retrying syncing claim "keptn/configuration-volume" because failures 0 < threshold 15
ERROR: logging before flag.Parse: E0812 14:37:49.011417       1 controller.go:701] error syncing claim "keptn/configuration-volume": failed to provision volume with StorageClass "local-path": failed to create volume pvc-98913114-574b-41f4-9caf-73a917c4a975: create process timeout after 120 seconds
ERROR: logging before flag.Parse: I0812 14:37:49.011449       1 event.go:221] Event(v1.ObjectReference{Kind:"PersistentVolumeClaim", Namespace:"keptn", Name:"configuration-volume", UID:"98913114-574b-41f4-9caf-73a917c4a975", APIVersion:"v1", ResourceVersion:"1665", FieldPath:""}): type: 'Warning' reason: 'ProvisioningFailed' failed to provision volume with StorageClass "local-path": failed to create volume pvc-98913114-574b-41f4-9caf-73a917c4a975: create process timeout after 120 seconds
ERROR: logging before flag.Parse: I0812 14:38:03.767775       1 controller.go:927] provision "keptn/mongodata" class "local-path": started
time="2020-08-12T14:38:03Z" level=info msg="Creating volume pvc-b577bdcc-82d6-47c6-9dcc-5807a2a7e1d6 at k3s-grimmer-redhat:/var/lib/rancher/k3s/storage/pvc-b577bdcc-82d6-47c6-9dcc-5807a2a7e1d6" 
ERROR: logging before flag.Parse: I0812 14:38:03.774346       1 event.go:221] Event(v1.ObjectReference{Kind:"PersistentVolumeClaim", Namespace:"keptn", Name:"mongodata", UID:"b577bdcc-82d6-47c6-9dcc-5807a2a7e1d6", APIVersion:"v1", ResourceVersion:"1636", FieldPath:""}): type: 'Normal' reason: 'Provisioning' External provisioner is provisioning volume for claim "keptn/mongodata"
ERROR: logging before flag.Parse: I0812 14:38:04.011931       1 controller.go:927] provision "keptn/configuration-volume" class "local-path": started
time="2020-08-12T14:38:04Z" level=info msg="Creating volume pvc-98913114-574b-41f4-9caf-73a917c4a975 at k3s-grimmer-redhat:/var/lib/rancher/k3s/storage/pvc-98913114-574b-41f4-9caf-73a917c4a975" 
ERROR: logging before flag.Parse: I0812 14:38:04.024515       1 event.go:221] Event(v1.ObjectReference{Kind:"PersistentVolumeClaim", Namespace:"keptn", Name:"configuration-volume", UID:"98913114-574b-41f4-9caf-73a917c4a975", APIVersion:"v1", ResourceVersion:"1665", FieldPath:""}): type: 'Normal' reason: 'Provisioning' External provisioner is provisioning volume for claim "keptn/configuration-volume"
agrimmer commented 3 years ago

Further details can be found here: https://github.com/rancher/k3s/issues/1823 and it looks that this is related to SELinux.