Harbor-postgres: Error volume pvc-xxxxx is not ready for workloads
There is an issue faced on 'deploy-management-cluster' job here https://gitlab.com/sylva-projects/sylva-core/-/jobs/10897308655 that the harbor-postgres unit is failing with below error:
2025/08/03 21:56:55.046379 Command timeout exceeded
Timed-out waiting for the following resources to be ready:
IDENTIFIER STATUS REASON MESSAGE
Kustomization/sylva-system/harbor-postgres InProgress Kustomization generation is 2, but latest observed generation is -1
╰┄╴HelmRelease/sylva-system/harbor-postgres Failed Failed to upgrade after 3 attempt(s)
╰┄╴StatefulSet/harbor/harbor-postgres-read InProgress Replicas: 2/3
╰┄╴Pod/harbor/harbor-postgres-read-1 InProgress Pod is in the Pending phase
├┄╴┬┄┄[Conditions]
┆ ├┄╴PodReadyToStartContainers False
┆ ├┄╴Initialized True
┆ ├┄╴Ready False ContainersNotReady containers with unready status: [postgresql]
┆ ├┄╴ContainersReady False ContainersNotReady containers with unready status: [postgresql]
┆ ╰┄╴PodScheduled True
╰┄╴┬┄┄[Events]
├┄╴2025-08-03 21:27:04 (x2 over 3s) Warning FailedScheduling 0/4 nodes are available: pod has unbound immediate PersistentVolumeClaims. preemption: 0/4 nodes are available: 4 Preemption is not helpful for scheduling.
├┄╴2025-08-03 21:27:06 Normal Scheduled Successfully assigned harbor/harbor-postgres-read-1 to mgmt-1963557778-kubeadm-capm3-virt-management-md-0
╰┄╴2025-08-03 21:55:52 (x22 over 28m46s) Warning FailedAttachVolume AttachVolume.Attach failed for volume "pvc-848cf38f-cf78-44e8-ab08-445eed952295" : rpc error: code = Aborted desc = volume pvc-848cf38f-cf78-44e8-ab08-445eed952295 is not ready for workloads
Job artifacts: artifact-10897308655.zip