MetPX / sr3_tools

sr3_tools are a collection of scripts used to manage data pumps (clusters) running Sarracenia v3 (sr3)
GNU General Public License v2.0
0 stars 0 forks source link

What should the workflow for removing a config be? #6

Closed reidsunderland closed 9 months ago

reidsunderland commented 1 year ago

The proper procedure for removing a config using sr3_tools isn't clear.

reidsunderland commented 1 year ago

sr3_remove only removed one file at a time, and simply removed the config from the node.

The built in sr3 remove supports multiple configs and removes the corresponding .cache directory for the config.

I updated the tools to:

The correct workflow for removing configs is now:

sr3d cleanup component/config ....
sr3d remove component/config ....
petersilva commented 1 year ago

to remove > 1 config requires the --dangerWillRobinson flag... fwiw...

reidsunderland commented 1 year ago

Added support for --dangerWillRobinson with https://github.com/MetPX/sr3_tools/commit/72c62b83cc2d4689ae042ad63923886ada6215f6

if the user doesn't specify --dangerWillRobinson, it still runs the remove on the nodes, where sr3 gives an error.

$ sr3d remove flow/hydro_quebec_http shovel/copy_ALPHA
dev01:
dev01: 2023-10-18 17:21:05,448 64002 [ERROR] root remove specify --dangerWillRobinson to remove > 1 config at a time
dev02: 2023-10-18 17:21:06,777 27309 [ERROR] root remove specify --dangerWillRobinson to remove > 1 config at a time
dev02:
reidsunderland commented 9 months ago

This is done. sr3d remove ... works, including with --dangerWillRobinson