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
When i try to take the backup of deployment and persistent volume and when i include the volumes tag and include the persistent volume claim tag in it then it is struck in "In process" #2341
Comments
Please provide us all of the following:
|
kubectl -n nginx-example get pvc -o yamlapiVersion: v1
|
kubectl -n nginx-example get pv -o yamlapiVersion: v1
|
can you please help me with this |
@surekhakallam it looks like the backup completed successfully. Did you delete the From the PVC YAML you included, it appears that the PVC was not restored by velero, since it's creation timestamp is before the PodVolumeBackup's, and it doesn't have the velero labels I'd expect. To be clear, to test this you should follow the following process:
|
yes i am delete the whole nginx-example namespace and also deleting the pv as well and those are the steps which i followed .. |
ok sure .. will try it once again from the beginning |
i will send you the complete process which i am doing ...Please let me know if anything to be corrected |
It looks like the restic backup of the volume completed just fine:
The log messages you were pointing to are not errors. For this most recent attempt, please provide:
|
velero restore getNAME BACKUP STATUS WARNINGS ERRORS CREATED SELECTOR |
velero restore describe nginx-backup-20200317120831Name: nginx-backup-20200317120831 Phase: InProgress Backup: nginx-backup Namespaces: Resources: Namespace mappings: Label selector: Restore PVs: auto Restic Restores (specify --details for more information): |
velero restore describe nginx-backup-20200317120831 --detailsName: nginx-backup-20200317120831 Phase: InProgress Backup: nginx-backup Namespaces: Resources: Namespace mappings: Label selector: Restore PVs: auto Restic Restores: |
velero restore logs nginx-backup-20200317120831Logs for restore "nginx-backup-20200317120831" are not available until it's finished processing. Please wait until the restore has a phase of Completed or Failed and try again. |
kubectl -n nginx-example get pvc -o yaml
|
kubectl get pv | grep nginx-logs[root@master~]# so pv is not created |
kubectl get pvc -n nginx-exampleNAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE |
Velero can't do the restic restore because the nginx pod isn't running due to the above |
oh ok .. i am a fresher .. so can you please tell me what actually i have to change ... what changes i have to do in deployment |
should i remove the below line restic.velero.io/restic: nginx-log |
I'm not entirely sure, I believe it has something to do with the PV's node affinity but it's really hard to review the YAML output when it's not formatted properly (in a Markdown code block, in a gist, etc). |
Does the node that has the local PV have a taint that can't be tolerated by the nginx pod? |
actually according to me no ... but i observed this only when we added the "persistantVolumeClaim" tag block of code in the below code .... only then we found this problem volumes:
without that it is fine |
I would recommend trying to figure out why the nginx pod isn't able to be scheduled. It sure sounds like there's a taint/toleration issue, but without seeing the YAML for the pod + all the nodes + the PV, it's hard for me to debug further.
|
closing this out as inactive, thanks! |
I have created the persistent volume , persistent volume clame , deployment and service and in deployment when i include the persistentVolumeClaim tag in the volumes tag it is struck in the "In process" state while restoring and not coming to "complete" state
here the backup is shown as complete but when i check the logs of restic , its shown as "No completed pod volume backup found for PVC" backup=velero/nginx-backup controller=pod-volume-backup logSource="pkg/controller/pod_volume_backup_controller.go:337" name=nginx-backup-przb4 namespace=velero pvcUID=7a3d236b-8dce-415c-bb97-d70f1900f9ae
time="2020-03-13T05:32:48Z" level=info msg="No parent snapshot found for PVC, not using --parent flag for this backup" backup=velero/nginx-backup controller=pod-volume-backup logSource="pkg/controller/pod_volume_backup_controller.go:253" name=nginx-backup-przb4 namespace=velero"
which means the pv backup is not taken
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
namespace: nginx-example
labels:
app: nginx
spec:
replicas: 2
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
annotations:
backup.velero.io/backup-volumes: nginx-logs
spec:
volumes:
- name: nginx-logs
persistentVolumeClaim:
claimName: nginx-logs
containers:
- image: nginx:1.17.6
name: nginx
ports:
- containerPort: 80
volumeMounts:
- mountPath: "/var/log/nginx"
name: nginx-logs
this is the deployment file i have created
anything else to be add please let me know
and please let me know what might be the problem also
The text was updated successfully, but these errors were encountered: