Bug 1956785 - net_config_override of undercloud.conf only works with json and not yaml
Summary: net_config_override of undercloud.conf only works with json and not yaml
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-tripleoclient
Version: 16.1 (Train)
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: z2
: 16.2 (Train on RHEL 8.4)
Assignee: Steve Baker
QA Contact: David Rosenfeld
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-04 12:06 UTC by Srinivas Atmakuri
Modified: 2024-06-14 01:26 UTC (History)
7 users (show)

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.
Clone Of:
Environment:
Last Closed: 2022-03-23 22:10:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1927090 0 None None None 2021-05-04 12:06:25 UTC
OpenStack gerrit 821880 0 None MERGED Don't assume json network config in validations 2022-01-04 20:35:35 UTC
OpenStack gerrit 821887 0 None MERGED make net_config_override of undercloud.conf work with yaml 2022-01-04 20:35:39 UTC
Red Hat Issue Tracker OSP-3610 0 None None None 2021-12-15 21:33:05 UTC
Red Hat Product Errata RHBA-2022:1001 0 None None None 2022-03-23 22:10:32 UTC

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


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