Improving logging and error readability for rke2-uninstall.sh script#6237
Improving logging and error readability for rke2-uninstall.sh script#6237dereknola merged 9 commits intorancher:masterfrom
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6237 +/- ##
=======================================
Coverage 16.62% 16.62%
=======================================
Files 32 32
Lines 3423 3423
=======================================
Hits 569 569
Misses 2812 2812
Partials 42 42
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
Please rebase your changes on top of current master. |
Signed-off-by: Jake Hyde <jakefhyde@gmail.com>
Done @brandond |
|
@brandond Can you please merge the PR if there is no further issues? |
|
I would probably hold off until after the current release is done, since the install script gets bundled into system-agent-installer-rke2. |
|
Okay @brandond , when is the release planned? I will remind after the release once. Thanks |
|
@iamsarthakk Please resolve the conflicts (the |
|
looks like there are still conflicts. Did you pull before rebasing on top of master? |
…ancher#6237) * Added Descriptive logging and messaging in case the script fails * Removing redundant piped error * Added support for NO_COLOR env variable for default no printing of color codes * Add data-dir to uninstall and killall scripts (cherry picked from commit 721ecb2) Signed-off-by: Jake Hyde <jakefhyde@gmail.com> Co-authored-by: Sarthak Kumar <sarthak.kumar@cloudera.com> Co-authored-by: Jake Hyde <jakefhyde@gmail.com> Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
…ancher#6237) * Added Descriptive logging and messaging in case the script fails * Removing redundant piped error * Added support for NO_COLOR env variable for default no printing of color codes * Add data-dir to uninstall and killall scripts (cherry picked from commit 721ecb2) Signed-off-by: Jake Hyde <jakefhyde@gmail.com> Co-authored-by: Sarthak Kumar <sarthak.kumar@cloudera.com> Co-authored-by: Jake Hyde <jakefhyde@gmail.com> Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
…6237) * Added Descriptive logging and messaging in case the script fails * Removing redundant piped error * Added support for NO_COLOR env variable for default no printing of color codes * Add data-dir to uninstall and killall scripts (cherry picked from commit 721ecb2) Signed-off-by: Jake Hyde <jakefhyde@gmail.com> Co-authored-by: Sarthak Kumar <sarthak.kumar@cloudera.com> Co-authored-by: Jake Hyde <jakefhyde@gmail.com> Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
…6237) * Added Descriptive logging and messaging in case the script fails * Removing redundant piped error * Added support for NO_COLOR env variable for default no printing of color codes * Add data-dir to uninstall and killall scripts (cherry picked from commit 721ecb2) Signed-off-by: Jake Hyde <jakefhyde@gmail.com> Co-authored-by: Sarthak Kumar <sarthak.kumar@cloudera.com> Co-authored-by: Jake Hyde <jakefhyde@gmail.com> Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
Proposed Changes
Currently, whenever uninstall script fails it is not immediately clear that it failed and we need to address the failure issues. These changes adds clear messaging in red colour if the script fails at any point with better logging.
It doesn't need documentation changes
Types of Changes
Improving logging and error readability in rke2-uninstall script
Verification
Changes can be verified by running the uninstall script on rancher based system
Testing
It doesn't have any changes which need unit tests or integration tests
Linked Issues
User-Facing Change
Further Comments