Bug 2117549

Summary: Cannot edit cloud-init data after add ssh key
Product: Container Native Virtualization (CNV) Reporter: Guohua Ouyang <gouyang>
Component: User ExperienceAssignee: Ugo Palatucci <upalatuc>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.11.0CC: gouyang, hstastna, upalatuc
Target Milestone: ---   
Target Release: 4.12.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-01-24 13:39:30 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:
Attachments:
Description Flags
error none

Description Guohua Ouyang 2022-08-11 09:45:44 UTC
Created attachment 1904902 [details]
error

Description of problem:
Cannot edit cloud-init data after add ssh key, error like below:
Error "spec.template.spec.accessCredentials[0] requires a configDrive volume to exist when the configDrive propagationMethod is in use." for field "spec.template.spec.accessCredentials[0].sshPublicKey.propagationMethod".

Version-Release number of selected component (if applicable):
v4.11.0-83

How reproducible:
100%

Steps to Reproduce:
1. add ssh key to a vm
2. and then try to edit the cloud-init data
3.

Actual results:
error occurs

Expected results:
no error show, cloud-init data is edited

Additional info:

Comment 2 Guohua Ouyang 2022-09-08 05:31:03 UTC
(In reply to Hilda Stastna from comment #1)
> Hi Guohua,
> 
> I cannot reproduce the bug. Works as expected, no any error after adding a
> new ssh key to a VM, and editing the cloud-init data still available.
> Can you, please, check, if this bug is still reproducible or to provide more
> detailed info about steps to reproduce? Thanks!

Did you click "Apply" button on the cloud-init edit modal?
1. add ssh key to a vm
2. edit the cloud-init data, like changing the username or password
3. click "Apply"

Comment 3 Hilda Stastna 2022-09-08 10:07:06 UTC
Hi Guohua,

with these new steps to reproduce, I finally can reproduce. Thanks!

Comment 7 errata-xmlrpc 2023-01-24 13:39:30 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.12.0 Images 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-2023:0408