Bug 2117549 - Cannot edit cloud-init data after add ssh key
Summary: Cannot edit cloud-init data after add ssh key
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: User Experience
Version: 4.11.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.12.0
Assignee: Ugo Palatucci
QA Contact: Guohua Ouyang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-08-11 09:45 UTC by Guohua Ouyang
Modified: 2023-01-24 13:39 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-01-24 13:39:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
error (192.40 KB, image/png)
2022-08-11 09:45 UTC, Guohua Ouyang
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt-ui kubevirt-plugin pull 869 0 None Merged Bug 2117549: Cannot edit cloud-init data after add ssh key 2022-10-30 19:46:37 UTC
Red Hat Issue Tracker CNV-20427 0 None None None 2023-01-24 12:56:17 UTC

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


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