-
Bug
-
Resolution: Unresolved
-
Major
-
OADP 1.3.0
-
4
-
False
-
-
False
-
ToDo
-
-
-
0
-
0.000
-
Very Likely
-
0
-
None
-
Unset
-
Unknown
-
No
Description of problem:
FS backup create PodVolumeBackup when the backup excluded PVC.
Version-Release number of selected component (if applicable):
oadp-operator-bundle-container-1.3.0-138
How reproducible:
100%
Steps to Reproduce:
1. Install DPA using nodeAgent enable.
2. Install stateful application.
3. Execute backup on the application namespace using includedResources without PVC, example: includedResources: a[pod,deployment] and defaultVolumesToFsBackup: true.
Actual results:
PodVolumeBackup CRs created.
Expected results:
PodVolumeBackup should not be created.
Additional info:
Slack discussion:
https://redhat-internal.slack.com/archives/C02EL5R9C3B/p1698676399671359
DPA:
oc get dpa -n openshift-adp aws-dpa -o yaml apiVersion: oadp.openshift.io/v1alpha1 kind: DataProtectionApplication metadata: annotations: meta.helm.sh/release-name: aws meta.helm.sh/release-namespace: openshift-adp creationTimestamp: "2023-10-31T08:35:48Z" generation: 1 labels: app.kubernetes.io/managed-by: Helm name: aws-dpa namespace: openshift-adp resourceVersion: "56517" uid: b4e9af13-a6ed-41ad-969d-49b5eef0a441 spec: backupLocations: - name: default velero: config: profile: default region: us-east-2 credential: key: cloud name: cloud-credentials default: true objectStorage: bucket: oadpbucket243776 prefix: velero provider: aws configuration: nodeAgent: enable: true uploaderType: restic velero: defaultPlugins: - openshift - aws - csi status: conditions: - lastTransitionTime: "2023-10-31T08:35:48Z" message: Reconcile complete reason: Complete status: "True" type: Reconciled
Backup:
apiVersion: velero.io/v1 kind: Backup metadata: annotations: helm.sh/resource-policy: keep meta.helm.sh/release-name: aws meta.helm.sh/release-namespace: openshift-adp velero.io/resource-timeout: 10m0s velero.io/source-cluster-k8s-gitversion: v1.27.6+f67aeb3 velero.io/source-cluster-k8s-major-version: "1" velero.io/source-cluster-k8s-minor-version: "27" creationTimestamp: "2023-10-31T08:49:13Z" generation: 6 labels: app.kubernetes.io/managed-by: Helm velero.io/storage-location: default name: b1 namespace: openshift-adp resourceVersion: "62058" uid: 04df0caa-fe3e-4742-bff7-19e11fa10fc6 spec: csiSnapshotTimeout: 10m0s defaultVolumesToFsBackup: true includedNamespaces: - a1 includedResources: - pod - deployment itemOperationTimeout: 4h0m0s snapshotMoveData: false storageLocation: default ttl: 720h0m0s status: completionTimestamp: "2023-10-31T08:50:21Z" expiration: "2023-11-30T08:49:13Z" formatVersion: 1.1.0 phase: Completed progress: itemsBackedUp: 2 totalItems: 2 startTimestamp: "2023-10-31T08:49:13Z" version: 1
PodVolumeBackup:
oc get podvolumebackup NAME STATUS CREATED NAMESPACE POD VOLUME REPOSITORY ID UPLOADER TYPE STORAGE LOCATION AGE b1-88f9l Completed 27m a1 mysql-68d84d7c89-4vdq5 mysql-data s3:s3-us-east-2.amazonaws.com/oadpbucket243776/velero/restic/a1 restic default 27m b1-cp2fd Completed 26m a1 mysql-68d84d7c89-4vdq5 mysql-data1 s3:s3-us-east-2.amazonaws.com/oadpbucket243776/velero/restic/a1 restic default 27m
- links to