🐛 Stack trace error when trying to delete non-existant k3s cluster #35
Labels
No labels
🐛 bug
DO THE THING >:(
blocked
dependencies
k3s
kind
openbao
question
secrets
wontfix
✨ enhancement
🌱good first issue
📓documentation
📕kyverno
🔐 Bitwarden
🙋help wanted
🦩 MinIO
🧸 🧸 Duplicate
🩹 Bug Fix
🪠 CICD
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
small-hack/smol-k8s-lab#35
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the Bug
Tried to wipe out a k3s cluster thinking I was on a different machine and just happened to catch this error, which didn't actually break anything, but gave the stack trace below. I think this has to do with the fact that I wrap the subprocess in a try/except here:
https://github.com/jessebot/smol-k8s-lab/blob/v0.10.4/smol_k8s_lab/subproc.py#L105
Then it can never actually get to the
return_code = p.returncodepart just below that, because p is only set in the local try block, and that block fails, because the k3s scripts are not there.Steps to Reproduce Bug
smol-k8s-lab k3s -DOutput from Above Steps
In my config file, I have a
log.fileset and this is the output from the logs:However, this is what outputted to the console:
Expected behavior
smol-k8s-labshould fail gracefully and just say that k3s is not currently installed.