Skip to content
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

Fix: Repair uninstall_all #2210

Merged
merged 1 commit into from
Jan 17, 2025
Merged

Fix: Repair uninstall_all #2210

merged 1 commit into from
Jan 17, 2025

Conversation

svteb
Copy link
Collaborator

@svteb svteb commented Jan 16, 2025

Description

As of release v1.4.0 the uninstall_all task is broken and some testsuite dependencies cannot be uninstalled the intended way (cluster tools, etc.). This has been caused by the CNFInstall.uninstall_cnf function that was exiting with code 1 in case no CNF was installed, to fix this we have decided to relegate it to a warning (this makes the change significantly easier) and removed the exit 1 command.

To avoid a similar situation in future, two spec tests have been added. The uninstall_all spec test required a change to tools_uninstall task since it previously gave no indication of passing. Further verification of tools_uninstall passing correctly should be added, but it might be out of the scope of this ticket.

Additionally some renaming regarding cleanup/uninstall has been left undone after #2184, this has been remediated as part of this ticket.

Issues:

Refs: #2209

How has this been tested:

  • Covered by existing integration testing
  • Added integration testing to cover
  • Verified all A/C passes
    • develop
    • master
    • tag/other branch
  • Test environment
    • Shared Packet K8s cluster
    • New Packet K8s cluster
    • Kind cluster
  • Have not tested

Types of changes:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Checklist:

Documentation

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • No updates required.

Code Review

  • Does the test handle fatal exceptions, ie. rescue block

Issue

  • Tasks in issue are checked off

@svteb svteb changed the title Fix: Repair "uninstall_all" Fix: Repair uninstall_all Jan 16, 2025
@collivier
Copy link
Collaborator

@svteb this cannot be verified asis because of the bitnami helm charts (it would reach the docker pull limit).

@collivier
Copy link
Collaborator

@svteb please review #2208 . I will rebase this one on top of it once merged

@svteb svteb force-pushed the fix_uninstall_all branch 3 times, most recently from 662820f to 11f72f1 Compare January 17, 2025 09:00
Refs: #2209
- The "uninstall_all" was broken during development of #2120,
to fix the issue a failure when there is no CNF to uninstall
has been relegated to a warning and exit 1 was removed.
- Two spec tests have been added to avoid this scenario
in the future.
- Additionally some renaming was left-over from #2184 that
was resolved.

Signed-off-by: svteb <[email protected]>
@svteb svteb force-pushed the fix_uninstall_all branch from 11f72f1 to d7d704a Compare January 17, 2025 09:49
Copy link
Collaborator

@martin-mat martin-mat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@martin-mat martin-mat merged commit 6cf5a94 into main Jan 17, 2025
81 checks passed
@svteb svteb deleted the fix_uninstall_all branch January 27, 2025 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants