Skip to content

Conversation

@Danil-Grigorev
Copy link

Adds missing infrastructure log error message, causing non-representative machine reconcile error loops
when there is a re-occuring error with client.Get on the infrastructure resource.


// Add clusterID label
if err := r.setClusterIDLabel(ctx, m); err != nil {
klog.Errorf("%v: failed to get infrastructure for machine: %v", machineName, err)
Copy link
Member

Choose a reason for hiding this comment

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

This error message does not corresponds with the caller that is returning it.
We should either rephrase or move it inside the function where trying to get the infra resource.
Also wouldn't this error be logged by controller runtime https://github.com/kubernetes-sigs/controller-runtime/blob/bb96678bedc9d98361be219cb21562eb99ab9e15/pkg/internal/controller/controller.go#L235?

Copy link
Author

Choose a reason for hiding this comment

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

Copy link
Member

@enxebre enxebre Jul 14, 2020

Choose a reason for hiding this comment

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

how did you conclude that's failing then?

Copy link
Author

Choose a reason for hiding this comment

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

configv1 was not imported into the scheme. I just spent some time, executing the openstack provider manually 🙄 and mentioned the conclusion here: openshift/cluster-api-provider-openstack#106 (comment) As you can see, it's the first successful CI pass for that PR.

Adds missing infrastructure log error message, causing non-representative machine reconcile error loops,
when there is an re-occuring error with  client.Get on the infrastructure resource.
@enxebre
Copy link
Member

enxebre commented Jul 14, 2020

/approve

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: enxebre

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

The pull request process is described here

Details Needs approval from an approver in each of these files:

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

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 14, 2020
Copy link
Contributor

@JoelSpeed JoelSpeed left a comment

Choose a reason for hiding this comment

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

I was also under the impression that controller-runtime would log an error if we return it? We have made that assumption in a lot of places, so why are we not getting those logs?
https://github.com/kubernetes-sigs/controller-runtime/blob/bb96678bedc9d98361be219cb21562eb99ab9e15/pkg/internal/controller/controller.go#L235

@openshift-ci-robot
Copy link
Contributor

@Danil-Grigorev: The following tests failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/e2e-aws-operator ba68f93 link /test e2e-aws-operator
ci/prow/e2e-aws ba68f93 link /test e2e-aws
ci/prow/e2e-azure-operator ba68f93 link /test e2e-azure-operator

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Details

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.

@enxebre
Copy link
Member

enxebre commented Jul 17, 2020

closing in favour of #644

@Danil-Grigorev Is there an answer for #639 (review) so we can capture an action item for this?

@enxebre enxebre closed this Jul 17, 2020
@Danil-Grigorev
Copy link
Author

closing in favour of #644

@Danil-Grigorev Is there an answer for #639 (review) so we can capture an action item for this?

I'll look for conformation later.

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants