Bug 2037554 - Mismatched wave number error message should include the wave numbers that are in conflict
Summary: Mismatched wave number error message should include the wave numbers that are...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Telco Edge
Version: 4.10
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: 4.10.0
Assignee: Jim Ramsay
QA Contact: yliu1
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-05 21:39 UTC by Jim Ramsay
Modified: 2022-03-10 16:37 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-10 16:37:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift-kni cnf-features-deploy pull 913 0 None open Bug 2037554: ztp: Add detail to error message for policy wave mis-match 2022-01-19 16:42:56 UTC
Github openshift-kni cnf-features-deploy pull 916 0 None open Bug 2037554: ztp: refactor policy wave logic with more unit tests 2022-01-20 15:15:27 UTC
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-10 16:37:22 UTC

Description Jim Ramsay 2022-01-05 21:39:52 UTC
Description of problem:
When I get an error from PolicyGenerator because of a mismatched wave annotation, I would like to see, in the error message, what wave numbers are in conflict (as a hint to how I can fix the problem)

How reproducible:
100%

Steps to Reproduce:
1. Add a mismatched wave number to a policy
2. Run policygenerator
3. Read the error message

Actual results:
2022/01/05 16:19:54 Could not build the entire policy defined by /tmp/kust-plugin-config-243619969: ran.openshift.io/ztp-deploy-wave annotation in Resource PaoSubscriptionCatalogSource.yaml doesn't match with Policy common-cnfdf03-subscriptions-policy

Expected results:
Some mention of what the wave number is in the policy under consideration and what the wave number is of the source file that doesn't match.  For example:

2022/01/05 16:19:54 Could not build the entire policy defined by /tmp/kust-plugin-config-243619969: ran.openshift.io/ztp-deploy-wave annotation in Resource PaoSubscriptionCatalogSource.yaml (wave: 1) doesn't match with Policy common-cnfdf03-subscriptions-policy (wave: 2)

Comment 10 errata-xmlrpc 2022-03-10 16:37:12 UTC
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 (Moderate: OpenShift Container Platform 4.10.3 security update), 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/RHSA-2022:0056


Note You need to log in before you can comment on or make changes to this bug.