Bug 1956785

Summary: net_config_override of undercloud.conf only works with json and not yaml
Product: Red Hat OpenStack Reporter: Srinivas Atmakuri <satmakur>
Component: python-tripleoclientAssignee: Steve Baker <sbaker>
Status: CLOSED ERRATA QA Contact: David Rosenfeld <drosenfe>
Severity: low Docs Contact:
Priority: low    
Version: 16.1 (Train)CC: amcleod, hbrock, igallagh, jslagle, mburns, sbaker, vkoul
Target Milestone: z2Keywords: Documentation, Triaged
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-tripleoclient-12.6.1-2.20211223004900.a6fcdbf.el8ost Doc Type: Bug Fix
Doc Text:
Before this update, you could only configure the `net_config_override` parameter in `undercloud.conf` to point to a file in JSON format. With this update, you can now configure the `net_config_override` parameter in `undercloud.conf` to point to a file in either YAML or JSON format.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-23 22:10:08 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 Srinivas Atmakuri 2021-05-04 12:06:25 UTC
Description
=======
On setting net_config_override parameter, the undercloud uses a JSON or YAML format template to configure the networking with os-net-config and ignores the network parameters set in undercloud.conf. We can this parameter when you want to configure bonding or add an option to the interface.

But currently, the net_config_override is only working when a JSON file is passed and doesn't work for YAML.

Version-Release number of selected component (if applicable):
Red Hat OpenStack Platform - 16.1

Steps to reproduce
============
1. Deploy undercloud with net_config_override set
2. Pass a yaml file as input instead of JSON

Expected result
==========
Expect the undercloud_config to read the yaml file passed

Actual result
========
Yaml file is not read, the code runs into errors

Comment 3 Steve Baker 2021-12-15 21:52:23 UTC
I've backported the original fix to train and proposed a follow-up fix to master.

Alex, lets aim to get this fixed on 16.2. So maybe just fix the docs on 16.1?

Comment 12 errata-xmlrpc 2022-03-23 22:10:08 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 (Release of components for Red Hat OpenStack Platform 16.2.2), 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/RHBA-2022:1001