|
38 | 38 |
|
39 | 39 | . Wait for the `Restic` pods to restart so that the changes are applied. |
40 | 40 |
|
41 | | -[id="restic-restore-deploymentconfig-issue_{context}"] |
42 | | -== Restore CR of Restic backup is "PartiallyFailed", "Failed", or remains "InProgress" |
43 | | - |
44 | | -The `Restore` CR of a Restic backup completes with a `PartiallyFailed` or `Failed` status or it remains `InProgress` and does not complete. |
45 | | - |
46 | | -If the status is `PartiallyFailed` or `Failed`, the `Velero` pod log displays the error message, `level=error msg="unable to successfully complete restic restores of pod's volumes"`. |
47 | | - |
48 | | -If the status is `InProgress`, the `Restore` CR logs are unavailable and no errors appear in the `Restic` pod logs. |
49 | | - |
50 | | -.Cause |
51 | | - |
52 | | -The `DeploymentConfig` object redeploys the `Restore` pod, causing the `Restore` CR to fail. |
53 | | - |
54 | | -.Solution |
55 | | - |
56 | | -. Create a `Restore` CR that excludes the `ReplicationController`, `DeploymentConfig`, and `TemplateInstances` resources: |
57 | | -+ |
58 | | -[source,terminal] |
59 | | ----- |
60 | | -$ velero restore create --from-backup=<backup> -n openshift-adp \ <1> |
61 | | - --include-namespaces <namespace> \ <2> |
62 | | - --exclude-resources replicationcontroller,deploymentconfig,templateinstances.template.openshift.io \ |
63 | | - --restore-volumes=true |
64 | | ----- |
65 | | -<1> Specify the name of the `Backup` CR. |
66 | | -<2> Specify the `include-namespaces` in the `Backup` CR. |
67 | | - |
68 | | -. Verify that the status of the `Restore` CR is `Completed`: |
69 | | -+ |
70 | | -[source,terminal] |
71 | | ----- |
72 | | -$ oc get restore -n openshift-adp <restore> -o jsonpath='{.status.phase}' |
73 | | ----- |
74 | | - |
75 | | -. Create a `Restore` CR that includes the `ReplicationController` and `DeploymentConfig` resources: |
76 | | -+ |
77 | | -[source,terminal] |
78 | | ----- |
79 | | -$ velero restore create --from-backup=<backup> -n openshift-adp \ |
80 | | - --include-namespaces <namespace> \ |
81 | | - --include-resources replicationcontroller,deploymentconfig \ |
82 | | - --restore-volumes=true |
83 | | ----- |
84 | | - |
85 | | -. Verify that the status of the `Restore` CR is `Completed`: |
86 | | -+ |
87 | | -[source,terminal] |
88 | | ----- |
89 | | -$ oc get restore -n openshift-adp <restore> -o jsonpath='{.status.phase}' |
90 | | ----- |
91 | | - |
92 | | -. Verify that the backup resources have been restored: |
93 | | -+ |
94 | | -[source,terminal] |
95 | | ----- |
96 | | -$ oc get all -n <namespace> |
97 | | ----- |
98 | | - |
99 | 41 | [id="restic-backup-cannot-be-recreated-after-s3-bucket-emptied_{context}"] |
100 | 42 | == Restic Backup CR cannot be recreated after bucket is emptied |
101 | 43 |
|
|
0 commit comments