Skip to content
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

Restoring a backup with tridentctl-protect using a path error #5

Open
cburchett opened this issue Nov 22, 2024 · 1 comment
Open

Restoring a backup with tridentctl-protect using a path error #5

cburchett opened this issue Nov 22, 2024 · 1 comment

Comments

@cburchett
Copy link

I have an appvault:

tridentctl-protect -n trident-protect get appvault
+---------------+----------+-----------+------+-------+
|     NAME      | PROVIDER |   STATE   | AGE  | ERROR |
+---------------+----------+-----------+------+-------+
| c1-svm0-s3-av | OntapS3  | Available | 1d1h |       |
+---------------+----------+-----------+------+-------+

I have a backup:

tridentctl-protect get backup
+-----------------------+----------------+-----------+--------+-------+
|         NAME          |    APP REF     |   STATE   |  AGE   | ERROR |
+-----------------------+----------------+-----------+--------+-------+
| mywordpressapp-bkup-1 | mywordpressapp | Completed | 52m13s |       |
+-----------------------+----------------+-----------+--------+-------+

I detect the path of backup:

tridentctl-protect get appvaultcontent c1-svm0-s3-av --show-paths --app mywordpressapp -n trident-protect
+---------+----------------+--------+-----------------------+---------------------------+------------------------------------------------------------------------------------------------------------------------+
| CLUSTER |      APP       |  TYPE  |         NAME          |         TIMESTAMP         |                                                          PATH                                                          |
+---------+----------------+--------+-----------------------+---------------------------+------------------------------------------------------------------------------------------------------------------------+
|         | mywordpressapp | backup | mywordpressapp-bkup-1 | 2024-11-22 19:51:57 (UTC) | mywordpressapp_e2e6d6d0-00ac-4f36-b63e-b4288556eefb/backups/mywordpressapp-bkup-1_3102ced9-1dbb-4705-9d08-d1715f585f96 |
+---------+----------------+--------+-----------------------+---------------------------+------------------------------------------------------------------------------------------------------------------------+

I used the backup path to restore to a new namespace and I get the following error:

tridentctl-protect create backuprestore mywordpressapp-bkupr2 --namespace-mapping mywordpressapp:mywordpressapp2 --appvault c1-svm0-s3-av --path mywordpressapp_e2e6d6d0-00ac-4f36-b63e-b4288556eefb/backups/mywordpressapp-bkup-1_3102ced9-1dbb-4705-9d08-d1715f585f9 
2024/11/22 20:30:41 admission webhook "vrestore-creation.protect.trident.netapp.io" denied the request: The specified key does not exist.

I must be doing something wrong but can't seem to get this to work... Thoughts?

@patric0303
Copy link

You need to create the backuprestore CR in the target namespace, so add -n mywordpressapp2 to your tridentctl-protect command and it should work. The admission webhook blocks creation of CRs other than appVault in the trident-protect NS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants