Created attachment 1868933 [details] invalid-template Description of problem: When typing the name policy-scc-[ID] in the creation policy wizard, the policy can be created successfully, but no status for this policy. Version-Release number of selected component (if applicable): 0323 DS build How reproducible: Steps to Reproduce: 1. Create policy using policy wizard 2. check this policy Actual results: The policy can be created but no status Expected results: Should break the policy creating if set invalid policy template name Additional info:
G2Bsync 1088171574 comment RobDolares Tue, 05 Apr 2022 01:11:07 UTC `G2BSync` Fix has been merged - Please verify and close.
Retested failed 2.5.0-DOWNSTREAM-2022-04-08-01-51-11. see 0408-retest attachment file. ``` 2022-04-11T09:39:40.097Z error policy-template-sync controller/controller.go:114 Failed to create the policy template {"Request.Namespace": "local-cluster", "Request.Name": "default.retest-1", "PolicyTemplateName": "policy-namespace-[ID]", "error": "ConfigurationPolicy.policy.open-cluster-management.io \"policy-namespace-[ID]\" is invalid: metadata.name: Invalid value: \"policy-namespace-[ID]\": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')"} sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile /remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime.1/pkg/internal/controller/controller.go:114 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler /remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime.1/pkg/internal/controller/controller.go:311 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem /remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime.1/pkg/internal/controller/controller.go:266 sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2 /remote-source/deps/gomod/pkg/mod/sigs.k8s.io/controller-runtime.1/pkg/internal/controller/controller.go:227 ```
G2Bsync 1098244901 comment RobDolares Wed, 13 Apr 2022 16:19:46 UTC `G2Bsync` Additional validation added to wizard - please verify and close Verified with snapshot: `2.5.0-SNAPSHOT-2022-04-12-21-04-43`: <kbd></kbd> <kbd></kbd>
Verified on 2.5.0-DOWNSTREAM-2022-04-18-17-36-04.
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 (Important: Red Hat Advanced Cluster Management 2.5 security updates, images, and bug fixes), 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:4956
This comment was flagged a spam, view the edit history to see the original text if required.