This tool will stop all front-end traffic in a cluster and place all client accessible protocols in a read-only or disabled mode
- Copy the self contained
all_stopbinary for your OS type to your local machine and make it executable if required. - Copy
all_stop.confand keep it in the same directory as the the binary executable
-
Copy
all_stop.pyPython script to your local machine and make it executable if required. -
Copy
all_stop.confand keep it in the same directory as the .py script -
Install the
requirements.txtfile
This script was built and tested with Python 3.11.6
Edit the all_stop.conf file with your values. This file MUST be kept in the same directory as all_stop.py or the all_stop binary
This script requires a valid Access Token for a user with the following RBAC privileges:
- NFS_EXPORT_READ: View configuration of NFS exports
- NFS_EXPORT_WRITE: Create, modify, and delete NFS exports
- TENANT_READ: View any tenant information
- TENANT_WRITE: Create, edit or delete tenants
- SMB_SHARE_READ: View configuration of SMB shares and SMB server settings
- SMB_SHARE_WRITE: Create, modify, and delete SMB shares and SMB server settings
- S3_SETTINGS_READ: View S3 server settings
- S3_SETTINGS_WRITE: Modify S3 server settings
- FTP_READ: View FTP status and settings
- FTP_WRITE: Modify FTP status and settings
To create a Role called set_read_only on your cluster via the Qumulo qq CLI copy the file called read_only_privileges from this repo to your qq CLI enabled machine and apply it with qq auth_create_role -r set_read_only -p read_only_privileges
Qumulo Role Based Access Control
- Run
all_stop --stop
This step creates a backup of the previous running config of the cluster in the curent directory
After application of --stop this will be the state of the cluster:
- All SMB shares will be set to Read-Only for all users and hosts.
- All NFS exports will be set to Read-Only for all users and hosts.
- The S3 and FTP services will be disabled.
- Run
all_stop --resume
This step looks for the previous running config file and re-applies it, restoring all previous services to the cluster.
Once the restore job is complete the running config file will be renamed and moved to a new directory called previously_ran_configs
- Run
all_stop --resume --file /path/to/file