Bug 2187664 - No secret found while attaching existing secret to a template
Summary: No secret found while attaching existing secret to a template
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: User Experience
Version: 4.13.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.14.0
Assignee: Ugo Palatucci
QA Contact: Guohua Ouyang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-04-18 11:30 UTC by Guohua Ouyang
Modified: 2023-11-08 14:05 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-08 14:05:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
[video] no secret found while attaching secret to template (1.41 MB, application/octet-stream)
2023-04-18 11:30 UTC, Guohua Ouyang
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt-ui kubevirt-plugin pull 1274 0 None open Bug 2187664: vm with no namespace means default 2023-04-24 10:06:07 UTC
Red Hat Issue Tracker CNV-28206 0 None None None 2023-04-18 11:33:57 UTC
Red Hat Product Errata RHSA-2023:6817 0 None None None 2023-11-08 14:05:42 UTC

Description Guohua Ouyang 2023-04-18 11:30:54 UTC
Created attachment 1957957 [details]
[video] no secret found while attaching secret to template

Description of problem:
Clone a template and try to attach existing secret to the template, it does not found any secret even there are existed secrets in current namespace

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. add some secrets to current namespace
2. clone a template
3. add existing secret to the template

Actual results:
no secret found

Expected results:
secret from current namespace should be found in the list

Additional info:

Comment 1 Ugo Palatucci 2023-04-21 14:15:59 UTC
@gouyang i can see from other clusters that the auto-test-secret resource has an empty key named 'key'.

This secret selector filter all the secrets that do not contain a public key using a regular expression.

Comment 2 Guohua Ouyang 2023-04-23 00:53:25 UTC
(In reply to Ugo Palatucci from comment #1)
> @gouyang i can see from other clusters that the auto-test-secret
> resource has an empty key named 'key'.
> 
> This secret selector filter all the secrets that do not contain a public key
> using a regular expression.

You can try to create a secret on your own and try again, all secrets are not found never matter whether does it has valid data or not, the problem only happens to template but not VM.

Comment 4 Guohua Ouyang 2023-04-28 03:44:41 UTC
verified on kubevirt-console-plugin-rhel9-container-v4.14.0-1047

Comment 6 errata-xmlrpc 2023-11-08 14:05:28 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 (Important: OpenShift Virtualization 4.14.0 Images security and bug fix 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-2023:6817


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