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

Failed to create PVC in Red Hat Enterprise Linux #12

Open
agrimmer opened this issue Aug 12, 2020 · 1 comment
Open

Failed to create PVC in Red Hat Enterprise Linux #12

agrimmer opened this issue Aug 12, 2020 · 1 comment

Comments

@agrimmer
Copy link
Contributor

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
Copy link
Contributor Author

Further details can be found here: k3s-io/k3s#1823 and it looks that this is related to SELinux.

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

1 participant