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

[release-v1.58] Suppress alerts to reduce noise of dependent ones #3181

Merged

Conversation

arnongilboa
Copy link
Collaborator

@arnongilboa arnongilboa commented Apr 10, 2024

What this PR does / why we need it:
Manual backport of #3129 and #3128

Which issue(s) this PR fixes:
Fixes # https://issues.redhat.com/browse/CNV-38918

Special notes for your reviewer:

Release note:

Suppress alerts to reduce noise of dependent ones

Manual backport of kubevirt#3129

This is a follow-up to kubevirt#2998 introducing the following changes to alert
rules:
- CDIDefaultStorageClassDegraded - do not fire when no default SC
  (either k8s or virt).
- CDIDataImportCronOutdated - do not fire when no default SC (either
  k8s or virt), as DIC import DVs use default SC.
- CDINoDefaultStorageClass - fire not only when there is a pending DV
  (and PVC) but also when DV has an empty status (waiting for default
  SC etc.)

Signed-off-by: Arnon Gilboa <agilboa@redhat.com>
Manual backport of kubevirt#3128

It's time to get the storage capabilities for all no-provisioner storage
classes based on the existing PVs, and not only for those labeled with
`local.storage.openshift.io/owner-name`, as done so far.
It will also silence the unnecessary CDIStorageProfilesIncomplete alert
for local SC in the CI.

Signed-off-by: Arnon Gilboa <agilboa@redhat.com>
@kubevirt-bot kubevirt-bot added the release-note Denotes a PR that will be considered when it comes time to generate release notes. label Apr 10, 2024
@kubevirt-bot kubevirt-bot requested a review from awels April 10, 2024 14:21
@kubevirt-bot kubevirt-bot added the dco-signoff: yes Indicates the PR's author has DCO signed all their commits. label Apr 10, 2024
Copy link
Contributor

@ShellyKa13 ShellyKa13 left a comment

Choose a reason for hiding this comment

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

/lgtm

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Apr 11, 2024
@akalenyu
Copy link
Collaborator

/approve

@kubevirt-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: akalenyu

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

@kubevirt-bot kubevirt-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 11, 2024
@kubevirt-bot kubevirt-bot merged commit 793448a into kubevirt:release-v1.58 Apr 11, 2024
10 checks passed
arnongilboa added a commit to arnongilboa/containerized-data-importer that referenced this pull request May 2, 2024
Somehow dropped from the manual backport due to monitoring refactoring.
Missed by CI since it does not run the destructive lane where the
CDIDefaultStorageClassDegraded alert is tested [test_id:10720].
The kubevirt_cdi_dataimportcron_outdated utest does not check the actual
CDIDataImportCronOutdated alert but only the metric and labels, as
decided in order to save CI time.

Signed-off-by: Arnon Gilboa <agilboa@redhat.com>
kubevirt-bot pushed a commit that referenced this pull request May 3, 2024
Somehow dropped from the manual backport due to monitoring refactoring.
Missed by CI since it does not run the destructive lane where the
CDIDefaultStorageClassDegraded alert is tested [test_id:10720].
The kubevirt_cdi_dataimportcron_outdated utest does not check the actual
CDIDataImportCronOutdated alert but only the metric and labels, as
decided in order to save CI time.

Signed-off-by: Arnon Gilboa <agilboa@redhat.com>
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. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants