Skip to content

Conversation

@nagadeesh-nagaraja
Copy link
Contributor

@nagadeesh-nagaraja nagadeesh-nagaraja commented Nov 25, 2025

Proposed Changes

Server Reconciler avoid double reconciliation logic. This helps avoid overloading BMC, multiple reconcile during sequencial l update

@Nuckal777
Copy link
Contributor

Thanks, could you please remove the changes of #540 from this PR?

@nagadeesh-nagaraja
Copy link
Contributor Author

Thanks, could you please remove the changes of #540 from this PR?

I will rebase once that PR merges. this PR will fail unit tests without the test fixes in the other PR :D

@github-actions github-actions bot added size/L and removed size/XL labels Nov 27, 2025
@nagadeesh-nagaraja nagadeesh-nagaraja changed the title Fix unwanted reconcile in Server and enqueue logic in maintenance Fix unwanted reconcile in Server Dec 4, 2025
@nagadeesh-nagaraja nagadeesh-nagaraja changed the title Fix unwanted reconcile in Server Fix unwanted reconcile in Server Controller Dec 4, 2025
Comment on lines +241 to +243
if modified {
return ctrl.Result{}, nil
}
Copy link
Member

Choose a reason for hiding this comment

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

Why not doing this right after the ensureServerStateTransition call?

Copy link
Member

Choose a reason for hiding this comment

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

I would suggest doing something like that here:

if modified, err := r.ensureServerStateTransition(ctx, log, bmcClient, server); err != nil || modified {
   return ctrl.Result{}, err
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

because we like to update the status field before ending the reconcile... as use the status field to make decision in beginning of reconcile loop, i wanted to update the status before next reconcile.
I know updating status might modify the CRD by itself.. but I think that next improvement to tackle, what do you think?

@afritzler afritzler changed the title Fix unwanted reconcile in Server Controller Add early returns on resource changes in ServerReconciler Dec 9, 2025
@afritzler afritzler added enhancement New feature or request and removed bug Something isn't working labels Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

5 participants