Skip to content

Instantly share code, notes, and snippets.

@dsuievalov
Last active January 3, 2020 17:42
Show Gist options
  • Save dsuievalov/8048af3f515f1b23dd99225cb0f58c11 to your computer and use it in GitHub Desktop.
Save dsuievalov/8048af3f515f1b23dd99225cb0f58c11 to your computer and use it in GitHub Desktop.
velero restic test
Name: test-restic
Namespace: velero
Labels: velero.io/storage-location=default
Annotations: <none>
Phase: Completed
Namespaces:
Included: default
Excluded: <none>
Resources:
Included: *
Excluded: <none>
Cluster-scoped: auto
Label selector: volume=true
Storage Location: default
Snapshot PVs: auto
TTL: 720h0m0s
Hooks: <none>
Backup Format Version: 1
Started: 2020-01-03 19:33:12 +0200 EET
Completed: 2020-01-03 19:33:21 +0200 EET
Expiration: 2020-02-02 19:33:12 +0200 EET
Resource List:
apps/v1/Deployment:
- default/nginx-deployment
apps/v1/ReplicaSet:
- default/nginx-deployment-55d57448ff
- default/nginx-deployment-645dc54768
- default/nginx-deployment-66b5df8ff8
- default/nginx-deployment-c6b4646cc
v1/PersistentVolume:
- pvc-189b3264-2e4c-11ea-b653-42010a8401b9
v1/PersistentVolumeClaim:
- default/nginx-logs
v1/Pod:
- default/nginx-deployment-66b5df8ff8-wbfd6
Persistent Volumes: <none included>
Restic Backups:
Completed:
default/nginx-deployment-66b5df8ff8-wbfd6: nginx-logs
Name: test-restic-20200103193456
Namespace: velero
Labels: <none>
Annotations: <none>
Phase: Completed
Warnings:
Velero: <none>
Cluster: <none>
Namespaces:
default: could not restore, replicasets.apps "nginx-deployment-66b5df8ff8" already exists. Warning: the in-cluster version is different than the backed-up version.
Backup: test-restic
Namespaces:
Included: *
Excluded: <none>
Resources:
Included: *
Excluded: nodes, events, events.events.k8s.io, backups.velero.io, restores.velero.io, resticrepositories.velero.io
Cluster-scoped: auto
Namespace mappings: <none>
Label selector: <none>
Restore PVs: auto
Restic Restores:
Completed:
default/nginx-deployment-66b5df8ff8-wbfd6: nginx-logs
Name: test-restic-20200103193849
Namespace: velero
Labels: <none>
Annotations: <none>
Phase: Completed
Warnings:
Velero: <none>
Cluster: <none>
Namespaces:
default: could not restore, persistentvolumeclaims "nginx-logs" already exists. Warning: the in-cluster version is different than the backed-up version.
could not restore, pods "nginx-deployment-66b5df8ff8-wbfd6" already exists. Warning: the in-cluster version is different than the backed-up version.
Backup: test-restic
Namespaces:
Included: *
Excluded: <none>
Resources:
Included: *
Excluded: nodes, events, events.events.k8s.io, backups.velero.io, restores.velero.io, resticrepositories.velero.io
Cluster-scoped: auto
Namespace mappings: <none>
Label selector: <none>
Restore PVs: auto
time="2020-01-03T17:38:49Z" level=info msg="starting restore" logSource="pkg/controller/restore_controller.go:458" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:49Z" level=info msg="Not including resource" groupResource=nodes logSource="pkg/restore/restore.go:138" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:49Z" level=info msg="Not including resource" groupResource=events logSource="pkg/restore/restore.go:138" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:49Z" level=info msg="Not including resource" groupResource=restores.velero.io logSource="pkg/restore/restore.go:138" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:49Z" level=info msg="Not including resource" groupResource=backups.velero.io logSource="pkg/restore/restore.go:138" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:49Z" level=info msg="Not including resource" groupResource=resticrepositories.velero.io logSource="pkg/restore/restore.go:138" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Starting restore of backup velero/test-restic" logSource="pkg/restore/restore.go:381" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Restoring cluster level resource 'persistentvolumes'" logSource="pkg/restore/restore.go:669" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Getting client for /v1, Kind=PersistentVolume" logSource="pkg/restore/restore.go:711" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Dynamically re-provisioning persistent volume because it has a restic backup to be restored." logSource="pkg/restore/restore.go:872" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Restoring resource 'persistentvolumeclaims' into namespace 'default'" logSource="pkg/restore/restore.go:667" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Getting client for /v1, Kind=PersistentVolumeClaim" logSource="pkg/restore/restore.go:711" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Executing item action for persistentvolumeclaims" logSource="pkg/restore/restore.go:910" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Executing AddPVFromPVCAction" cmd=/velero logSource="pkg/restore/add_pv_from_pvc_action.go:44" pluginName=velero restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Adding PV pvc-189b3264-2e4c-11ea-b653-42010a8401b9 as an additional item to restore" cmd=/velero logSource="pkg/restore/add_pv_from_pvc_action.go:66" pluginName=velero restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Skipping persistentvolumes/pvc-189b3264-2e4c-11ea-b653-42010a8401b9 because it's already been restored." logSource="pkg/restore/restore.go:800" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Executing item action for persistentvolumeclaims" logSource="pkg/restore/restore.go:910" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Executing ChangeStorageClassAction" cmd=/velero logSource="pkg/restore/change_storageclass_action.go:63" pluginName=velero restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Done executing ChangeStorageClassAction" cmd=/velero logSource="pkg/restore/change_storageclass_action.go:74" pluginName=velero restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Resetting PersistentVolumeClaim default/nginx-logs for dynamic provisioning because its PV pvc-189b3264-2e4c-11ea-b653-42010a8401b9 has a reclaim policy of Delete" logSource="pkg/restore/restore.go:983" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Attempting to restore PersistentVolumeClaim: nginx-logs" logSource="pkg/restore/restore.go:1016" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Restoring resource 'pods' into namespace 'default'" logSource="pkg/restore/restore.go:667" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Getting client for /v1, Kind=Pod" logSource="pkg/restore/restore.go:711" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Executing item action for pods" logSource="pkg/restore/restore.go:910" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Executing AddPVCFromPodAction" cmd=/velero logSource="pkg/restore/add_pvc_from_pod_action.go:44" pluginName=velero restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Adding PVC default/nginx-logs as an additional item to restore" cmd=/velero logSource="pkg/restore/add_pvc_from_pod_action.go:58" pluginName=velero restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Skipping persistentvolumeclaims/default/nginx-logs because it's already been restored." logSource="pkg/restore/restore.go:800" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Executing item action for pods" logSource="pkg/restore/restore.go:910" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Executing item action for pods" logSource="pkg/restore/restore.go:910" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Executing ResticRestoreAction" cmd=/velero logSource="pkg/restore/restic_restore_action.go:68" pluginName=velero restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Restic backups for pod found" cmd=/velero logSource="pkg/restore/restic_restore_action.go:94" pluginName=velero pod=default/nginx-deployment-66b5df8ff8-wbfd6 restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Using image \"velero/velero-restic-restore-helper:v1.2.0\"" cmd=/velero logSource="pkg/restore/restic_restore_action.go:105" pluginName=velero pod=default/nginx-deployment-66b5df8ff8-wbfd6 restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=error msg="Using default resource values, couldn't parse resource requirements: couldn't parse CPU request \"\": quantities must match the regular expression '^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$'." cmd=/velero logSource="pkg/restore/restic_restore_action.go:112" pluginName=velero pod=default/nginx-deployment-66b5df8ff8-wbfd6 restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Done executing ResticRestoreAction" cmd=/velero logSource="pkg/restore/restic_restore_action.go:142" pluginName=velero restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Attempting to restore Pod: nginx-deployment-66b5df8ff8-wbfd6" logSource="pkg/restore/restore.go:1016" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Restoring resource 'deployments.apps' into namespace 'default'" logSource="pkg/restore/restore.go:667" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Getting client for apps/v1, Kind=Deployment" logSource="pkg/restore/restore.go:711" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Attempting to restore Deployment: nginx-deployment" logSource="pkg/restore/restore.go:1016" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Restore of Deployment, nginx-deployment skipped: it already exists in the cluster and is the same as the backed up version" logSource="pkg/restore/restore.go:1073" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Restoring resource 'replicasets.apps' into namespace 'default'" logSource="pkg/restore/restore.go:667" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Getting client for apps/v1, Kind=ReplicaSet" logSource="pkg/restore/restore.go:711" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Attempting to restore ReplicaSet: nginx-deployment-55d57448ff" logSource="pkg/restore/restore.go:1016" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Restore of ReplicaSet, nginx-deployment-55d57448ff skipped: it already exists in the cluster and is the same as the backed up version" logSource="pkg/restore/restore.go:1073" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Attempting to restore ReplicaSet: nginx-deployment-645dc54768" logSource="pkg/restore/restore.go:1016" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Restore of ReplicaSet, nginx-deployment-645dc54768 skipped: it already exists in the cluster and is the same as the backed up version" logSource="pkg/restore/restore.go:1073" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Attempting to restore ReplicaSet: nginx-deployment-66b5df8ff8" logSource="pkg/restore/restore.go:1016" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Restore of ReplicaSet, nginx-deployment-66b5df8ff8 skipped: it already exists in the cluster and is the same as the backed up version" logSource="pkg/restore/restore.go:1073" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Attempting to restore ReplicaSet: nginx-deployment-c6b4646cc" logSource="pkg/restore/restore.go:1016" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="Restore of ReplicaSet, nginx-deployment-c6b4646cc skipped: it already exists in the cluster and is the same as the backed up version" logSource="pkg/restore/restore.go:1073" restore=velero/test-restic-20200103193849
time="2020-01-03T17:38:50Z" level=info msg="restore completed" logSource="pkg/controller/restore_controller.go:473" restore=velero/test-restic-20200103193849
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment