-
Notifications
You must be signed in to change notification settings - Fork 549
How to backup and restore user data stored by rest-server. #5786
Comments
If the db file not be deleted, you can recover the data. Here is a guide for this. https://openpai.readthedocs.io/en/latest/manual/cluster-admin/troubleshooting.html#how-to-solve-the-problem |
User data doesn't seem to be stored here, job data is stored here. After I reset and installed the cluster, the job data still existed, but the user data was gone, including username, password, e-mail, SSH public Keys et. al. |
I see that user information and group information are stored in the Secret, so now the problem seems to be how to backup and restore the Secret of k8s. |
You are right, if you delete the data file fot etcd, then user/group info will be lost. We need to dump secrets first then apply them to the new cluster |
So running the following command will reset the cluster, but all etcd data will be lost, please be careful.
|
Organization Name:
Short summary about the issue/question:
My certificate expired, but I got a cluster crash when renewing the certificate. Now I need to reset and reinstall the cluster, but all user data disappeared after this operation, and there is no backup and recovery solution found on GitHub.
pai/src/rest-server/deploy/rest-server.yaml.template
Lines 164 to 188 in b50f291
It seems that rest-server does not mount any directory, so where is its data stored? How can I backup and restore it?
Brief what process you are following:
How to reproduce it:
OpenPAI Environment:
uname -a
):Anything else we need to know:
The text was updated successfully, but these errors were encountered: