-
Sub-task
-
Resolution: Done
-
Undefined
-
None
-
None
-
None
-
Quality / Stability / Reliability
-
False
-
-
False
-
ToDo
-
-
-
Very Likely
-
0
-
None
-
Unset
-
Unknown
Description of problem:
When disableFsbackup: true is configured from the DPA spec.configuration.velero, the Backup partiallyFails with mount point not found, which is not very informative (for the non-admin at least).
Version-Release number of selected component (if applicable):
1.5.0
How reproducible:
Always
Steps to Reproduce:
1. Setup DPA with spec.configuration.velero.disableFsBackup: true
2. Perform a backup with defaultVolumesToFsBackup: true
Actual results:
Backup partially fails with the below error
velero describe backup b1 -n openshift-adp --details Name: b1 Namespace: openshift-adp Labels: velero.io/storage-location=ts-dpa-1 Annotations: velero.io/resource-timeout=10m0s velero.io/source-cluster-k8s-gitversion=v1.32.3 velero.io/source-cluster-k8s-major-version=1 velero.io/source-cluster-k8s-minor-version=32 Phase: PartiallyFailed (run `velero backup logs b1` for more information) Errors: Velero: message: /pod volume backup failed: error exposing host path for pod volume: error identifying unique volume path on host for volume mysql-data1 in pod mysql-64c9d6466-xb97k: expected one matching path: /host_pods/3785fc1d-1468-4144-8f3c-4ee8c2baec0c/volumes/*/pvc-dbceb12a-5331-479c-b2cd-5263e019c201/mount, got 0 message: /pod volume backup failed: error exposing host path for pod volume: error identifying unique volume path on host for volume mysql-data in pod mysql-64c9d6466-xb97k: expected one matching path: /host_pods/3785fc1d-1468-4144-8f3c-4ee8c2baec0c/volumes/*/pvc-88c4d5fb-4c39-4cf1-93fa-f9166ee9666a/mount, got 0 Cluster: <none> Namespaces: <none> Namespaces: Included: mysql Excluded: <none> Resources: Included: * Excluded: <none> Cluster-scoped: auto Label selector: <none> Or label selector: <none> Storage Location: ts-dpa-1 Velero-Native Snapshot PVs: auto Snapshot Move Data: false Data Mover: velero TTL: 720h0m0s CSISnapshotTimeout: 10m0s ItemOperationTimeout: 10m0s Hooks: <none> Backup Format Version: 1.1.0 Started: 2025-04-14 18:41:36 +0530 IST Completed: 2025-04-14 18:41:47 +0530 IST Expiration: 2025-05-14 18:41:35 +0530 IST Total items to be backed up: 46 Items backed up: 46 Resource List: apps/v1/Deployment: - mysql/mysql apps/v1/ReplicaSet: - mysql/mysql-64c9d6466 authorization.openshift.io/v1/RoleBinding: - mysql/admin - mysql/system:deployers - mysql/system:image-builders - mysql/system:image-pullers discovery.k8s.io/v1/EndpointSlice: - mysql/mysql-xvzrx rbac.authorization.k8s.io/v1/RoleBinding: - mysql/admin - mysql/system:deployers - mysql/system:image-builders - mysql/system:image-pullers v1/ConfigMap: - mysql/kube-root-ca.crt - mysql/openshift-service-ca.crt v1/Endpoints: - mysql/mysql v1/Event: - mysql/mysql-64c9d6466-xb97k.18363148f2e72127 - mysql/mysql-64c9d6466-xb97k.1836314ab7ffe89c - mysql/mysql-64c9d6466-xb97k.1836314c2641e2d9 - mysql/mysql-64c9d6466-xb97k.1836314c67d16bae - mysql/mysql-64c9d6466-xb97k.1836314c694a652f - mysql/mysql-64c9d6466-xb97k.1836314eb83ffd28 - mysql/mysql-64c9d6466-xb97k.1836314ebc4b320a - mysql/mysql-64c9d6466-xb97k.1836314ebcb4b1cf - mysql/mysql-64c9d6466.1836314802b89b9d - mysql/mysql-data.183631479c72de60 - mysql/mysql-data.183631480462c76c - mysql/mysql-data.18363148046f136a - mysql/mysql-data.18363148e67464b8 - mysql/mysql-data1.18363147bf812137 - mysql/mysql-data1.1836314804a9055e - mysql/mysql-data1.1836314804b27450 - mysql/mysql-data1.18363148e25edc88 - mysql/mysql.1836314801b24286 v1/Namespace: - mysql v1/PersistentVolume: - pvc-88c4d5fb-4c39-4cf1-93fa-f9166ee9666a - pvc-dbceb12a-5331-479c-b2cd-5263e019c201 v1/PersistentVolumeClaim: - mysql/mysql-data - mysql/mysql-data1 v1/Pod: - mysql/mysql-64c9d6466-xb97k v1/Secret: - mysql/builder-dockercfg-bkh9w - mysql/default-dockercfg-q48g6 - mysql/deployer-dockercfg-tq9v2 - mysql/mysql v1/Service: - mysql/mysql v1/ServiceAccount: - mysql/builder - mysql/default - mysql/deployer Backup Volumes: Velero-Native Snapshots: <none included> CSI Snapshots: <none included> Pod Volume Backups - kopia: Failed: mysql/mysql-64c9d6466-xb97k: mysql-data, mysql-data1 HooksAttempted: 0 HooksFailed: 0
Expected results:
Error can be more informative, so that the user knows disableFsBackup: true is the problem in Dpa spec. And as non-admin, user doesnt have access to DPA, in that case as well.
Additional info: