Bug 1804777
Summary: | Alertmanager: Prevent duplicate/same router label keys on Receiver forms | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | bpeterse |
Component: | Management Console | Assignee: | David Taylor <dtaylor> |
Status: | CLOSED ERRATA | QA Contact: | Yadan Pei <yapei> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 4.4 | CC: | aos-bugs, bpeterse, dtaylor, jcaiani, jokerman, xiaocwan, yapei |
Target Milestone: | --- | ||
Target Release: | 4.4.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Cause: Admin -> Cluster Settings -> Global Configuration -> Alertmanager -> Create Receiver. You are able create two routing labels with the same name/key.
Consequence: When 2 pairs of routing label have same key, it only shows latest one on list page. But if one of them use regular expression, detail page separate them as 2 pairs. If both of them are using/not using regular expression, the first one is replaced by second one.
Fix: Added validation and prevent adding two routing labels with same name/key.
Result: When one enters a routing label name which already exists they are presented with an error message "Routing Label names must be unique" and Save button is disabled until label name is changed.
|
Story Points: | --- |
Clone Of: | 1804049 | Environment: | |
Last Closed: | 2020-05-04 11:37:45 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1804049 | ||
Bug Blocks: |
Description
bpeterse
2020-02-19 15:49:53 UTC
Solution does work now. When adding 2nd label with same key, whenever user use Regular Expression or not, it shows the error message "Routing label names must be unique." User can not create labels with same key. This could be Verified. Tested on 4.4.0-0.nightly-2020-03-01-175612 *** Bug 1810275 has been marked as a duplicate of this bug. *** Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:0581 |