jfrog / charts

JFrog official Helm Charts
https://jfrog.com/integration/helm-repository/
Apache License 2.0
255 stars 445 forks source link

Artifactory fails to start due to "unbound immediate PersistentVolumeClaims". PVC however is bound. Longhorn storage. #1758

Open serrnovik opened 1 year ago

serrnovik commented 1 year ago

Context:

With:

Problem

Artifactory' pod ends up in error state:

0/5 nodes are available: 5 pod has unbound immediate PersistentVolumeClaims.
Back-off restarting failed container

5 is the number of nodes in the cluster

pod is never created, so no more logs.

image

However:

At the same time there are 2 PVC bound:

image image

Postgresql pod is up and healthy, volume bound and used.

Expected:

Artifactory pod uses bound volume and goes up like Postgresql one.


seems that other people had problems having longhorn storage backend: https://github.com/jfrog/charts/issues/1610

uakharkivponomarov commented 3 months ago

I have encountered a similar problem. It arises when I install the Artifactory chart (located at /stable/artifactory) from scratch with splitServicesToContainers: true. The Artifactory deployment succeeds only after 3 attempts. Please find the attachments with the StatefulSet pod events for each attempt and persistent volume claim is left behind after the first removing the Helm release.

Conversely, when splitServicesToContainers is set to false, the deployment from scratch completes without any errors. run-attemp-1_artifactory-0.log run-attemp-2_artifactory-1.log