Bug 2181557

Summary: SSH secrets attached to multiple VMs created via the UI are deleted if the original VM is deleted
Product: Container Native Virtualization (CNV) Reporter: Phillip Bailey <phbailey>
Component: User ExperienceAssignee: Phillip Bailey <phbailey>
Status: CLOSED CURRENTRELEASE QA Contact: Guohua Ouyang <gouyang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.14.0CC: gouyang
Target Milestone: ---   
Target Release: 4.14.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-02 05:28:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Phillip Bailey 2023-03-24 14:09:23 UTC
Description of problem:

If an SSH secret that is attached to an existing VM is added to a new VM created using the catalog or InstanceType flows as an existing secret and the VM to which that secret was originally attached is deleted, the secret will be deleted and removed from the newly created VM.

How reproducible: 100%


Steps to Reproduce:
1. Create a VM via the catalog or InstanceTypes flows. Customize the VM in the process and add a new SSH secret
2. Create another VM via the catalog or InstanceTypes flow. Customize the VM in the process and add the secret from step 1 as an existing secret.
3. Delete the original VM.
4. Check the SSH secret on the VM created in step 2.

Actual results: 
There is no secret.


Expected results:
The secret still exists and is still attached to the VM.

Comment 1 Guohua Ouyang 2023-08-02 05:28:57 UTC
Close the issue as we use new mechanism for the secret used by VMs.