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

✨ Auto-detect permanent-error #112

Merged
merged 1 commit into from
Nov 9, 2023
Merged

✨ Auto-detect permanent-error #112

merged 1 commit into from
Nov 9, 2023

Conversation

janiskemper
Copy link
Collaborator

@janiskemper janiskemper commented Oct 20, 2023

What type of PR is this?
/kind feature

What this PR does / why we need it:
Adding state to verify that a device is shut down. Also deal with a state where the device is reloading forever. Set a label on that device that it is unhealthy and should not be used in that case.

Copy link
Collaborator Author

@janiskemper janiskemper left a comment

Choose a reason for hiding this comment

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

I cannot request changes for some reason right now.. But this is my feedback :)

pkg/services/hivelocity/device/device.go Outdated Show resolved Hide resolved
pkg/services/hivelocity/device/device.go Outdated Show resolved Hide resolved
pkg/services/hivelocity/device/device.go Outdated Show resolved Hide resolved
pkg/services/hivelocity/device/device.go Outdated Show resolved Hide resolved
@guettli guettli marked this pull request as ready for review October 27, 2023 09:44
@guettli guettli self-assigned this Oct 27, 2023
Copy link
Collaborator Author

@janiskemper janiskemper left a comment

Choose a reason for hiding this comment

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

didn't we talk as well about code to verify whether a machine is successfully provisioned?

api/v1alpha1/conditions_const.go Outdated Show resolved Hide resolved
pkg/services/hivelocity/client/hvclient.go Outdated Show resolved Hide resolved
pkg/services/hivelocity/device/device.go Outdated Show resolved Hide resolved
pkg/services/hivelocity/device/device.go Outdated Show resolved Hide resolved
pkg/services/hivelocity/device/device.go Outdated Show resolved Hide resolved
pkg/services/hivelocity/hvtag/hvtag.go Outdated Show resolved Hide resolved
pkg/services/hivelocity/hvtag/hvtag.go Show resolved Hide resolved
pkg/services/hivelocity/hvtag/hvtag.go Show resolved Hide resolved
pkg/services/hivelocity/hvtag/hvtag.go Show resolved Hide resolved
pkg/services/hivelocity/hvtag/hvtag.go Show resolved Hide resolved
@guettli
Copy link
Collaborator

guettli commented Oct 27, 2023

didn't we talk as well about code to verify whether a machine is successfully provisioned?

We talked about how to detect if a machine was successfully deprovisioned. We had the idea to create a simple tcpserver which the controller could check. I found a simpler solution. If the machine is on and not reloading and Script does not contain "cloud-init", then the machine is provisioned with the dummy-machine-image.

Since we don't make network connections to the machine up to now, I would rather not create the dummy tcpserver.,

@guettli guettli changed the title ✨ Add verify shutdown state ✨ Auto-detect permanent-error Nov 9, 2023
@guettli guettli force-pushed the verify-shutdown branch 2 times, most recently from 8793e7d to 51771af Compare November 9, 2023 11:56
Adding state to verify that a device is shut down. Also deal with a
state where the device is reloading forever. Set a label on that device
that it is unhealthy and should not be used in that case.
@guettli guettli merged commit 46b07b9 into main Nov 9, 2023
7 checks passed
@guettli guettli deleted the verify-shutdown branch November 9, 2023 13:03
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.

2 participants