Skip to content

Commit

Permalink
Add Backup NotReady and Restore Pending in the troubleshooting gu…
Browse files Browse the repository at this point in the history
…ide (#221)

* Update troubleshooting guide: Backup Setup NotReady

Signed-off-by: hmsayem <[email protected]>

* Update Troubleshooting guide

Signed-off-by: hmsayem <[email protected]>
  • Loading branch information
hmsayem authored Apr 18, 2022
1 parent faef324 commit 1bb4d0d
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions docs/guides/troubleshooting/how-to-troubleshoot/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,22 @@ kubectl logs -n <operator namespace> <stash operator pod name> -c operator

Now, inspect the log carefully. You should see the respective error in the log.

### BackupConfiguration NotReady

If the phase of the `BackupConfiguration` is `NotReady`, you should describe the respective `BackupConfiguration`,

```bash
kubectl describe backupconfiguration <backupconfiguration name> -n <namespace>
```

Now, check the `Status` section of `BackupConfiguration`. Make sure all the `conditions` are `True`. If there is any issue during backup setup, you should see the error in the respective condition. If any of the conditions is `False`, the backup stays in the `NotReady` phase. The conditions that may cause a `BackupConfiguration` to become `NotReady` are given bellow:

| Reason | Message |
| ------------------------- | ----------------------------- |
| RepositoryNotAvailable | Repository does not exist |
| BackendSecretNotAvailable | Backend Secret does not exist |
| TargetNotAvailable | Backup target does not exist |

### Backup Failed

If a backup fails, follow the following steps to identify the root cause.
Expand Down Expand Up @@ -90,6 +106,26 @@ Inspect the log carefully. You should notice the respective error that leads to

## Troubleshoot Restore Issues

In this section, we are going to explain how to troubleshoot restore issues.

### Restore Pending

If the phase of the `RestoreSession` is `pending`, you should describe the respective `RestoreSession`,

```bash
kubectl describe restoresession <restoresession name> -n <namespace>
```

Now, check the `Status` section of `RestoreSession`. Make sure all the `conditions` are `True`. If there is any issue during restore setup, you should see the error in the respective condition. If any of the conditions is `False`, the `RestoreSession` stays in the `Pending` phase. The conditions that may cause a `RestoreSession` to stay in `Pending` phase are given bellow:

| Reason | Message |
| ------------------------- | ----------------------------- |
| RepositoryNotAvailable | Repository does not exist |
| BackendSecretNotAvailable | Backend Secret does not exist |
| TargetNotAvailable | Backup target does not exist |

### Restore Failed

If a restore fails, follow the following steps to identify the root cause.

#### Describe the `RestoreSession`
Expand Down

0 comments on commit 1bb4d0d

Please sign in to comment.