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

Added metrics for failures caused by OpenStack services. #536

Merged
merged 2 commits into from Jul 12, 2021

Conversation

gryf
Copy link
Member

@gryf gryf commented Jun 28, 2021

In Kuryr-kubernetes we mainly rely on two services: Neutron for ports
creating and Octavia for load balancers. Sometimes we observe that either
ports or load balancer hangs in some states indefinitely. In such case,
after we timeout, kuryr controller will crash, leaving ambiguous log
message.

In this patch we introduce two new Prometheus metrics - one for Port and
the other for load balancer, which will be updated during such
situation.

@openshift-ci openshift-ci bot requested review from dulek and luis5tb June 28, 2021 12:44
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 28, 2021
Copy link
Contributor

@MaysaMacedo MaysaMacedo left a comment

Choose a reason for hiding this comment

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

Looks good. Just a couple of suggestions:

@gryf gryf force-pushed the alerting branch 2 times, most recently from 2fe8239 to d30ed89 Compare July 6, 2021 12:22

self.load_balancer_readiness = prometheus_client.Count(
'kuryr_load_balancer_readiness',
'Increasing this metric indicates issues with creating Octavia LB',
Copy link
Contributor

@dulek dulek Jul 7, 2021

Choose a reason for hiding this comment

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

How about : "This counter is increased when Kuryr notices that an Octavia load balancer is stuck in an unexpected state"?

registry=self.registry)

self.port_readiness = prometheus_client.Count(
'kuryr_port_readiness', 'Increasing this metric indicates issues '
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe "This counter is increased when Kuryr times out waiting for Neutron to move port to ACTIVE"?

@dulek
Copy link
Contributor

dulek commented Jul 7, 2021

Looks good, just minor remarks on wording. I'm not 100% confident mine's better though.

gryf added 2 commits July 9, 2021 10:58
In Kuryr-kubernetes we mainly rely on two services: Neutron for ports
creating and Octavia for load balancers. Sometimes we observe that either
ports or load balancer hangs in some states indefinitely. In such case,
after we timeout, kuryr controller will crash, leaving ambiguous log
message.

In this patch we introduce two new Prometheus metrics - one for Port and
the other for load balancer, which will be updated during such
situation.
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 9, 2021

@gryf: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/e2e-openstack-kuryr fd8b0e5 link /test e2e-openstack-kuryr

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.

@MaysaMacedo
Copy link
Contributor

Looks good and ocp installation passed, but destroy failed, probably due to the octavia issue.

@MaysaMacedo
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 12, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 12, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gryf, MaysaMacedo

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-merge-robot openshift-merge-robot merged commit b13944a into openshift:master Jul 12, 2021
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. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants