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-5235: Fix mapi_instance_create_failed metric with accelerated networking #46

Merged

Conversation

RadekManak
Copy link
Contributor

We detect invalid VMsize and Accelerated Networking capability before creating the instance. And not attempt to create it when we know the configuration is invalid.
We should still increment the mapi_instance_create_failed metric if we are unable to create the machine because of invalid VMsize or when accelerated networking is requested and not supported.

@openshift-ci openshift-ci bot requested review from damdo and JoelSpeed January 5, 2023 14:47
@RadekManak RadekManak changed the title Fix mapi_instance_create_failed metric with accelerated networking OCPBUGS-5235: Fix mapi_instance_create_failed metric with accelerated networking Jan 5, 2023
@openshift-ci-robot openshift-ci-robot added jira/severity-low Referenced Jira bug's severity is low for the branch this PR is targeting. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Jan 5, 2023
@openshift-ci-robot
Copy link

@RadekManak: This pull request references Jira Issue OCPBUGS-5235, which is invalid:

  • expected the bug to target the "4.13.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:

We detect invalid VMsize and Accelerated Networking capability before creating the instance. And not attempt to create it when we know the configuration is invalid.
We should still increment the mapi_instance_create_failed metric if we are unable to create the machine because of invalid VMsize or when accelerated networking is requested and not supported.

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.

@RadekManak
Copy link
Contributor 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. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. labels Jan 5, 2023
@openshift-ci-robot
Copy link

@RadekManak: This pull request references Jira Issue OCPBUGS-5235, 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.13.0) matches configured target version for branch (4.13.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @sunzhaohua2

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-ci-robot openshift-ci-robot removed the jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. label Jan 5, 2023
Comment on lines +565 to +570
metrics.RegisterFailedInstanceCreate(&metrics.MachineLabels{
Name: s.scope.Machine.Name,
Namespace: s.scope.Machine.Namespace,
Reason: err.Error(),
})

Copy link
Contributor

Choose a reason for hiding this comment

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

Do we normally do this for errors or just invalid machine config? Wondering if this should only be in the first condition of the next if statement, WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We increment the metric when we call Azure API with a request needed to create machine that return error e.g. creating machine, IP, interface. We do this for all types of errors. Not just invalid config.

@RadekManak
Copy link
Contributor Author

@sunzhaohua2 Can we get this verified that it solves the issue.

@JoelSpeed
Copy link
Contributor

/lgtm

Will add approve once QE have verified

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

huali9 commented Jan 13, 2023

/label qe-approved

@openshift-ci openshift-ci bot added the qe-approved Signifies that QE has signed off on this PR label Jan 13, 2023
Copy link
Member

@damdo damdo left a comment

Choose a reason for hiding this comment

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

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 13, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: damdo

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:

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 13, 2023
@damdo
Copy link
Member

damdo commented Jan 13, 2023

/retest-required

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 6c619f4 and 2 for PR HEAD 9512266 in total

@damdo
Copy link
Member

damdo commented Jan 14, 2023

/retest-required

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jan 14, 2023

@RadekManak: 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.

@openshift-merge-robot openshift-merge-robot merged commit 578be79 into openshift:main Jan 14, 2023
@openshift-ci-robot
Copy link

@RadekManak: Jira Issue OCPBUGS-5235 is in an unrecognized state (ON_QA) and will not be moved to the MODIFIED state.

In response to this:

We detect invalid VMsize and Accelerated Networking capability before creating the instance. And not attempt to create it when we know the configuration is invalid.
We should still increment the mapi_instance_create_failed metric if we are unable to create the machine because of invalid VMsize or when accelerated networking is requested and not supported.

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.

@RadekManak
Copy link
Contributor Author

/cherry-pick release-4.12

@openshift-cherrypick-robot

@RadekManak: new pull request created: #115

In response to this:

/cherry-pick release-4.12

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-sigs/prow repository.

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. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. jira/severity-low Referenced Jira bug's severity is low 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. lgtm Indicates that a PR is ready to be merged. qe-approved Signifies that QE has signed off on this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants