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

OCPBUGS-25599: Reconcile AgentMachines for unbound Agents #95

Merged

Conversation

avishayt
Copy link

AgentMachines need to be reconciled if they don't yet have an Agent, and and a valid Agent is modified. Otherwise AgentMachines that don't yet have an Agent will not be reconciled when an Agent becomes available.

AgentMachines need to be reconciled if they don't yet have an Agent, and
and a valid Agent is modified. Otherwise AgentMachines that don't yet
have an Agent will not be reconciled when an Agent becomes available.
@openshift-ci-robot openshift-ci-robot added jira/severity-important Referenced Jira bug's severity is important for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Dec 18, 2023
@openshift-ci-robot
Copy link

@avishayt: This pull request references Jira Issue OCPBUGS-25599, which is invalid:

  • expected the bug to target the "4.16.0" version, but no target version was set

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

AgentMachines need to be reconciled if they don't yet have an Agent, and and a valid Agent is modified. Otherwise AgentMachines that don't yet have an Agent will not be reconciled when an Agent becomes available.

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 kubernetes/test-infra repository.

@openshift-ci openshift-ci bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Dec 18, 2023
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 18, 2023
@avishayt
Copy link
Author

/cc @CrystalChun
/cc @carbonin

reply := make([]reconcile.Request, 0, len(amList.Items))
if mappedAgent {
// If the Agent is mapped to an AgentMachine, return only that AgentMachine
agent := a
Copy link
Member

Choose a reason for hiding this comment

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

Why is this assignment needed?

Copy link

@CrystalChun CrystalChun left a comment

Choose a reason for hiding this comment

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

/lgtm

@CrystalChun
Copy link

/retest-required

Looks like a flake:

[2023-12-18 15:35:31] Waiting for operator local-storage-operator to get installed on namespace openshift-local-storage...
[2023-12-18 15:35:31] Error from server (NotFound): subscriptions.operators.coreos.com "local-storage-operator" not found

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Dec 18, 2023
Copy link

openshift-ci bot commented Dec 18, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: avishayt, CrystalChun

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [CrystalChun,avishayt]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link

openshift-ci bot commented Dec 18, 2023

@avishayt: all tests passed!

Full PR test history. Your PR dashboard.

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 kubernetes/test-infra repository. I understand the commands that are listed here.

@avishayt
Copy link
Author

/jira refresh

@openshift-ci-robot
Copy link

@avishayt: This pull request references Jira Issue OCPBUGS-25599, which is invalid:

  • expected the bug to target the "4.16.0" version, but no target version was set

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

/jira refresh

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 kubernetes/test-infra repository.

@avishayt
Copy link
Author

/jira refresh

@openshift-ci-robot
Copy link

@avishayt: This pull request references Jira Issue OCPBUGS-25599, which is invalid:

  • expected the bug to target the "4.16.0" version, but no target version was set

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

/jira refresh

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 kubernetes/test-infra repository.

@avishayt
Copy link
Author

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Dec 19, 2023
@openshift-ci-robot
Copy link

@avishayt: This pull request references Jira Issue OCPBUGS-25599, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.16.0) matches configured target version for branch (4.16.0)
  • bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)

No GitHub users were found matching the public email listed for the QA contact in Jira (gamado@redhat.com), skipping review request.

In response to this:

/jira refresh

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 kubernetes/test-infra repository.

@openshift-merge-bot openshift-merge-bot bot merged commit a5792ff into openshift:master Dec 19, 2023
6 checks passed
@openshift-ci-robot
Copy link

@avishayt: Jira Issue OCPBUGS-25599: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-25599 has been moved to the MODIFIED state.

In response to this:

AgentMachines need to be reconciled if they don't yet have an Agent, and and a valid Agent is modified. Otherwise AgentMachines that don't yet have an Agent will not be reconciled when an Agent becomes available.

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 kubernetes/test-infra repository.

larsks added a commit to larsks/hypershift-clusters that referenced this pull request Dec 20, 2023
This is a workaround for [1], which would cause the cluster to get stuck in
the "pending node assigment" stage.

[1]: openshift/cluster-api-provider-agent#95
CrystalChun pushed a commit to CrystalChun/cluster-api-provider-agent that referenced this pull request Mar 7, 2024
AgentMachines need to be reconciled if they don't yet have an Agent, and
and a valid Agent is modified. Otherwise AgentMachines that don't yet
have an Agent will not be reconciled when an Agent becomes available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/severity-important Referenced Jira bug's severity is important for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants