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

Trivial: Improve CloudPrivateIPConfig logs when it cannot be assigned. #3908

Merged
merged 1 commit into from Sep 21, 2023

Conversation

flavio-fernandes
Copy link
Contributor

If the cloud provider is still working on de-associating an egress IP from a node, it is possible that a following association will be stopped. This commit implements a better log explaining this scenario.

Reported-at: https://issues.redhat.com/browse/OCPBUGS-18647

If the cloud provider is still working on de-associating an egress
IP from a node, it is possible that a following association will
be stopped. This commit implements a better log explaining this
scenario.

Reported-at: https://issues.redhat.com/browse/OCPBUGS-18647
Signed-off-by: Flavio Fernandes <flaviof@redhat.com>
@flavio-fernandes
Copy link
Contributor Author

/assign @kyrtapz

@kyrtapz
Copy link
Contributor

kyrtapz commented Sep 15, 2023

/lgtm

@@ -228,7 +228,8 @@ func (eIPC *egressIPClusterController) executeCloudPrivateIPConfigOps(egressIPNa
klog.Infof("CloudPrivateIPConfig: %s already assigned to node: %s", cloudPrivateIPConfigName, cloudPrivateIPConfig.Spec.Node)
continue
}
return fmt.Errorf("cloud create request failed for CloudPrivateIPConfig: %s, err: item exists", cloudPrivateIPConfigName)
return fmt.Errorf("cloud request failed for CloudPrivateIPConfig: %s, err: cannot be assigned to node %s because cloud has it in node %s",
Copy link
Member

Choose a reason for hiding this comment

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

what does op.toAdd resolve to? A node name?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

what does op.toAdd resolve to? A node name?

yes

@martinkennelly
Copy link
Member

/lgtm

@jcaamano jcaamano merged commit ff456a7 into ovn-org:master Sep 21, 2023
25 of 28 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.

None yet

4 participants