Bug 2086278

Summary: Cloud init script edit add " hostname='' " when is should not be added
Product: Container Native Virtualization (CNV) Reporter: Yaacov Zamir <yzamir>
Component: User ExperienceAssignee: Tal Nisan <tnisan>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.11.0CC: cnv-qe-bugs, gouyang
Target Milestone: ---   
Target Release: 4.11.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: 2022-09-14 19:33:14 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 Yaacov Zamir 2022-05-15 09:55:23 UTC
Description of problem:
Cloud init script edit add " hostname='' " when is should not be added

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


How reproducible:


Steps to Reproduce:
1. Go to create vm wizard
2. Go to review tab scripts
3. choose to see the sctript view of cloudinit

Actual results:
a hostname='' is aded even if the hostname is empty

Expected results:
if hostname is empty, it should not be added to the script

Additional info:

Comment 1 Guohua Ouyang 2022-05-26 08:29:40 UTC
verified on v4.11.0-403(OCP v4.11.0-32)

Comment 5 errata-xmlrpc 2022-09-14 19:33:14 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.11.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-2022:6526