Cray-HPE / sat

System Admin Toolkit
https://cray-hpe.github.io/docs-sat/
MIT License
4 stars 5 forks source link

CRAYSAT-1865: Recreate SDU collection link #245

Closed annapoorna-s-alt closed 2 months ago

annapoorna-s-alt commented 3 months ago

Summary and Scope

Automate the steps to recreate the /var/opt/cray/sdu/collection symbolic link to point at the collection-mount location where the fuse.s3fs filesystem is mounted.

Restarting cray-sdu-rda is one of the way to fix the symbolic link when it points at the local directory, collection-local, instead of the s3fs mount, collection-mount on ncn-m001

Issues and Related PRs

CRAYSAT-1865

Testing

List the environments in which these changes were tested.

Tested on:

Rocket

Test description:

How were the changes tested and success verified? If schema changes were part of this change, how were those handled in your upgrade/downgrade testing?

Tested whether /var/opt/cray/sdu/collection symbolic link point at the collection-mount location where the fuse.s3fs filesystem is mounted Tested for different scenario where I manually unmounted fuse.s3fs and stopped cray-sdu-rda service as per the requirement for testing and executed sat bootsys boot --stage ncn-power --ncn-boot-timeout 900 which should mount collection-mount and points the collection link to collection-mount

Risks and Mitigations

Risk is low as we just try-restart the cray-sdu-rda service where collection points to collection-mount when service is actively running

Pull Request Checklist

annapoorna-s-alt commented 3 months ago

Latest output is here