Bug 2024448 - When ssh_authorized_keys is empty in form view it should not appear in yaml view
Summary: When ssh_authorized_keys is empty in form view it should not appear in yaml view
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Console Kubevirt Plugin
Version: 4.8
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.10.0
Assignee: Matan Schatzman
QA Contact: Guohua Ouyang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-11-18 06:47 UTC by Yaacov Zamir
Modified: 2022-03-10 16:29 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-10 16:28:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
empty ssh_authorized_keys in the yaml view (47.63 KB, image/png)
2021-11-18 06:47 UTC, Yaacov Zamir
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 10600 0 None open Bug 2024448: Yaml editor will not show empty ssh array 2021-12-02 09:48:19 UTC
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-10 16:29:08 UTC

Description Yaacov Zamir 2021-11-18 06:47:25 UTC
Created attachment 1842499 [details]
empty ssh_authorized_keys in the yaml view

Description of problem:
When editing cloud init section using the create VM wizard, we can opt out filling the ssh_authorized_keys form item, but when editing the yaml view the ssh_authorized_keys is re-populated with empty string

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


How reproducible:


Steps to Reproduce:
1.Use the wizard to create a VM and choose customize VM
2.Go to advanced section and choose cloud-init
3.in the form leave ssh_authorized_keys empty and toggle to yaml view

Actual results:
ssh_authorized_keys is set to empty string ''

Expected results:
no ssh_authorized_keys field in the yaml

Additional info:

Comment 2 Guohua Ouyang 2021-12-06 08:24:00 UTC
verified on 4.10.0-0.ci-2021-12-05-113922

Comment 6 errata-xmlrpc 2022-03-10 16:28:46 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 (Moderate: OpenShift Container Platform 4.10.3 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-2022:0056


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