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

Add logs on host reconcile path #420

Merged
merged 3 commits into from
Nov 15, 2024
Merged

Conversation

enzocandotti
Copy link
Collaborator

This commits aims to add more logs in the host reconcile path since it was seen situations in which the reconciler is blocked and current logs can not give the enough information to debug it.

In cases where the host is already insync and reconciled, if it was
degraded before the unlock, the availability status was not being
updated.

This commit adds a check in the Reconcile method to ensure that the
availability status it's updated if the host is already reconciled but
not available.

Test Plan:
PASS: Build image and deploy a AIO-DX where the issue was seen. Verify
that the 'degraded' status it's updated to 'available' after unlock.

Signed-off-by: Enzo Candotti <[email protected]>
controllers/host/host_controller.go Outdated Show resolved Hide resolved
controllers/host/host_controller.go Outdated Show resolved Hide resolved
controllers/host/host_controller.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@yjian118 yjian118 left a comment

Choose a reason for hiding this comment

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

a tiny update is expected

controllers/host/host_controller.go Outdated Show resolved Hide resolved
@yjian118
Copy link
Collaborator

  1. There's a merge conflict to resolve
  2. We'll need to test the build of the app-dm repo after introducing @wasnio commit which introduced the "slice" lib may not work in go 1.19

@wasnio
Copy link
Collaborator

wasnio commented Nov 15, 2024

@yjian118 slices was introduced in golang 1.21, the builder uses golang 1.22.2. I think we need to bump golang version in go.mod

@yjian118
Copy link
Collaborator

@wasnio yes, we need to bump up golang version in go.mod as minum requirement. And also re-visit our internal repo to find out the golang requirement in the build enviorment

This commits aims to add more logs in the host reconcile path since
it was seen situations in which the reconciler is blocked and current
logs can not give the enough information to debug it.

Signed-off-by: Enzo Candotti <[email protected]>
Copy link
Collaborator

@yjian118 yjian118 left a comment

Choose a reason for hiding this comment

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

Need to resolve conflicts

@yjian118 yjian118 merged commit e7e34cf into Wind-River:master Nov 15, 2024
3 checks passed
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