-
Notifications
You must be signed in to change notification settings - Fork 40
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
WIP: OCPCLOUD-2564: add migration controllers #268
base: main
Are you sure you want to change the base?
Conversation
Skipping CI for Draft Pull Request. |
@damdo: This pull request references OCPCLOUD-2564 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.19.0" version, but no target version was set. In response to this: Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
5f8b832
to
b5552ee
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
9b61798
to
3759a54
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looked at this only from a high level at the moment, broad strokes this is what I'm expecting to be implemented, need to check the finalizers behaviour though as I don't think it's currently what I had in mind for this controller re finalizer involvement
pkg/controllers/machinesetmigration/machineset_migration_controller.go
Outdated
Show resolved
Hide resolved
pkg/controllers/machinesetmigration/machineset_migration_controller.go
Outdated
Show resolved
Hide resolved
pkg/controllers/machinesetmigration/machineset_migration_controller.go
Outdated
Show resolved
Hide resolved
pkg/controllers/machinesetmigration/machineset_migration_controller.go
Outdated
Show resolved
Hide resolved
pkg/controllers/machinesetmigration/machineset_migration_controller.go
Outdated
Show resolved
Hide resolved
bc0385b
to
6347c6d
Compare
a0ebc56
to
0f07912
Compare
@damdo: This pull request references OCPCLOUD-2564 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.19.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
2273e6a
to
feb216e
Compare
@damdo: This pull request references OCPCLOUD-2564 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.19.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
@damdo: This pull request references OCPCLOUD-2564 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.19.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
pkg/controllers/machinemigration/machine_migration_controller.go
Outdated
Show resolved
Hide resolved
if cond, err := util.GetConditionStatus(mapiMachine, string(consts.SynchronizedCondition)); err != nil { | ||
return ctrl.Result{}, fmt.Errorf("unable to get synchronizedCondition for %s/%s: %w", mapiMachine.Namespace, mapiMachine.Name, err) | ||
} else if cond != corev1.ConditionTrue { | ||
logger.Info("New machine not yet in sync with the old authoritative one, will retry later") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this log the correct phrasing, new machine maybe isn't correct?
Maybe more like
Machine is not synchronized with latest generation
It is the old authoritative that must sync to the new authoritative before we switch over, not vice versa
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here old authoritative refers to the currently authoritative one and "new" means to-be authoritative.
The latter needs to be in-sync with the former for us to continue migrating.
I know the wording is confusing, I am improving it.
pkg/controllers/machinemigration/machine_migration_controller.go
Outdated
Show resolved
Hide resolved
pkg/controllers/machinemigration/machine_migration_controller.go
Outdated
Show resolved
Hide resolved
pkg/controllers/machinemigration/machine_migration_controller.go
Outdated
Show resolved
Hide resolved
pkg/controllers/machinemigration/machine_migration_controller.go
Outdated
Show resolved
Hide resolved
pkg/controllers/machinemigration/machine_migration_controller.go
Outdated
Show resolved
Hide resolved
feb216e
to
add7c0d
Compare
add7c0d
to
e45c05f
Compare
TODO: