From dae84efd66a637f5cb0f3179312e3dc11e42864c Mon Sep 17 00:00:00 2001 From: vmud213 Date: Thu, 20 Aug 2020 11:24:37 +0000 Subject: [PATCH] Fix network_data path for dhcpless deployments The curent path "openstack/latest/metadata/network_data.json" is not being used by Glean. This path must be changed to "openstack/latest/network_data.json" as per the code here https://opendev.org/opendev/glean/src/branch/master/glean/cmd.py#L1317-L1331 Change-Id: I7a6bb699f171585119c91d0808ff0c85d04104bf Story: #2008042 Task: #40704 --- ironic/drivers/modules/redfish/boot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ironic/drivers/modules/redfish/boot.py b/ironic/drivers/modules/redfish/boot.py index 445ee0d578..b7cb3170c9 100644 --- a/ironic/drivers/modules/redfish/boot.py +++ b/ironic/drivers/modules/redfish/boot.py @@ -623,8 +623,8 @@ def _prepare_deploy_iso(task, params, mode): json.dump(network_data, f, indent=2) files_info = { - metadata_fileobj.name: 'openstack/latest/meta' - 'data/network_data.json' + metadata_fileobj.name: 'openstack/latest/' + 'network_data.json' } with tempfile.NamedTemporaryFile(