-
Notifications
You must be signed in to change notification settings - Fork 80
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
Symlinks under "s3-config/access_keys" should contain a relative path rather absolute path #7914
Comments
@anandhu-karattu I dont think adding relative path will fix this specific scenario you mentioned here. |
@naveenpaul1 The This will fix the issue in my view. |
@naveenpaul1 not sure I follow, why do you need the relative path to go all the way up to the root? these files have a closer shared ancestor which is the noobaa config root directory (which could be redirected to be under cesSharedRoot)... To create that link from shell you would start from the target dir, and link a relative path like this for example
|
@guymguym @madhuthorat I got it, will do the changes as you mentioned. Thank you. |
@anandhu-karattu code is merged, You can test using upstream branch. |
Picking this up for verification in latest u/s build @naveenpaul1 |
Verified on upstream build "noobaa-core-5.17.0-20240415.el9.x86_64"
Now only relative path is available with symlink. Fix looks good. |
@anandhu-karattu thanks! |
Environment info
Actual behavior
We have a DR scenario with configuration backup/restore:
When an account is created, it creates a symlink under “s3-config/access_keys” directory.
Use case:
Scale has a backup/restore feature which takes backup of configuration (everything under “s3-config” dir).
When user change the configuration path to a different FS, he can restore the old configuration.
However after restore, the “access_keys” directory still has the symlinks to old configuration path (absolute path). Thus access keys are no more working.
If I fix the symlinks to new absolute path, accounts become accessible again.
[root@scale-2node-x-worker1 access_keys]# ln -sfn /gpfs/fs-ces-shared_new/ces/s3-config/accounts/account1.json wwqNVMVquPBOfXIud5hK.symlink
Expected behavior
Symlinks should contain a relative path rather absolute path
More information - Screenshots / Logs / Other output
The text was updated successfully, but these errors were encountered: