~
 
 
network-environment.yaml?
resource_registry:
  # Network Interface templates to use (these files must exist). You can
  # override these by including one of the net-*.yaml environment files,
  # such as net-bond-with-vlans.yaml, or modifying the list here.
  # Port assignments for the Controller
  OS::TripleO::Controller::Net::SoftwareConfig:
    ../network/config/bond-with-vlans/controller.yaml
  # Port assignments for the Compute
  OS::TripleO::Compute::Net::SoftwareConfig:
    ../network/config/bond-with-vlans/compute.yaml
parameter_defaults:
   J3MgmtNetCidr: '
80.0.1.0/24'
  J3MgmtAllocationPools: [{'start': '80.0.1.4', 'end': '80.0.1.250'}]
  J3MgmtNetworkVlanID: 400
  TenantNetCidr: '
172.16.0.0/24'
  TenantAllocationPools: [{'start': '172.16.0.4', 'end': '172.16.0.250'}]
  TenantNetworkVlanID: 416
  TenantNetPhysnetMtu: 1500
  InternalApiNetCidr: '
172.16.2.0/24'
  InternalApiAllocationPools: [{'start': '172.16.2.4', 'end': '172.16.2.250'}]
  InternalApiNetworkVlanID: 418
  ExternalNetCidr: '
10.0.1.0/24'
  ExternalAllocationPools: [{'start': '10.0.1.85', 'end': '10.0.1.98'}]
  ExternalNetworkVlanID: 408
  DnsServers: []
  NeutronNetworkType: 'geneve,vlan'
  NeutronNetworkVLANRanges: 'datacentre:1:1000'
  BondInterfaceOvsOptions: "bond_mode=active-backup"
 
I typically use:
-e 
/usr/share/openstack-tripleo-heat-templates/environments/network-isolation.yaml
-e 
/usr/share/openstack-tripleo-heat-templates/environments/network-environment.yaml
-e /home/stack/templates/environments/network-overrides.yaml
The network-isolation.yaml and network-environment.yaml are Jinja2 
rendered based on the -n input, so too keep in sync with change in the 
`-n` file reference the file in 
/usr/share/opentack-tripleo-heat-templates. Then add overrides in 
network-overrides.yaml as neede.
[Loke] : we are using this as like only, I do not know what you pass in network-overrides.yaml but I pass other files as per commands as below:
[stack@undercloud templates]$ cat environment.yaml
parameter_defaults:
  ControllerCount: 3
  TimeZone: 'Asia/Kolkata'
  NtpServer: ['30.30.30.3']
  NeutronBridgeMappings: datacentre:br-ex,baremetal:br-baremetal
  NeutronFlatNetworks: datacentre,baremetal
[stack@undercloud templates]$ cat ironic-config.yaml
parameter_defaults:
    IronicEnabledHardwareTypes:
        - ipmi
        - redfish
    IronicEnabledPowerInterfaces:
        - ipmitool
        - redfish
    IronicEnabledManagementInterfaces:
        - ipmitool
        - redfish
    IronicCleaningDiskErase: metadata
    IronicIPXEEnabled: true
    IronicInspectorSubnets:
    - ip_range: 172.23.3.100,172.23.3.150
    IPAImageURLs: '["
http://30.30.30.1:8088/agent.kernel", "
http://30.30.30.1:8088/agent.ramdisk"]'
    IronicInspectorInterface: 'br-baremetal'
[stack@undercloud templates]$
[stack@undercloud templates]$ cat node-info.yaml
parameter_defaults:
  OvercloudControllerFlavor: control
  OvercloudComputeFlavor: compute
  ControllerCount: 3
  ComputeCount: 1
[stack@undercloud templates]$
 
>      -e 
> /usr/share/openstack-tripleo-heat-templates/environments/services/ironic-conductor.yaml 
> \
>      -e 
> /usr/share/openstack-tripleo-heat-templates/environments/services/ironic-inspector.yaml 
> \
>      -e 
> /usr/share/openstack-tripleo-heat-templates/environments/services/ironic-overcloud.yaml 
> \
>      -e /home/stack/templates/ironic-config.yaml \
>      -e 
> /usr/share/openstack-tripleo-heat-templates/environments/docker-ha.yaml \
>      -e 
> /usr/share/openstack-tripleo-heat-templates/environments/podman.yaml \
>      -e /home/stack/containers-prepare-parameter.yaml/
> 
> **/home/stack/templates/ironic-config.yaml :
> (overcloud) [stack@undercloud ~]$ cat 
> /home/stack/templates/ironic-config.yaml
> parameter_defaults:
>      IronicEnabledHardwareTypes:
>          - ipmi
>          - redfish
>      IronicEnabledPowerInterfaces:
>          - ipmitool
>          - redfish
>      IronicEnabledManagementInterfaces:
>          - ipmitool
>          - redfish
>      IronicCleaningDiskErase: metadata
>      IronicIPXEEnabled: true
>      IronicInspectorSubnets:
>      - ip_range: 172.23.3.100,172.23.3.150
>      IPAImageURLs: '["http://30.30.30.1:8088/agent.kernel 
> <http://30.30.30.1:8088/agent.kernel>", 
> "http://30.30.30.1:8088/agent.ramdisk 
> <http://30.30.30.1:8088/agent.ramdisk>"] >      IronicInspectorInterface: 'br-baremetal'
> 
> Also the baremetal network(provisioning)(172.23.3.x)  is  routed with 
> ctlplane/admin network (30.30.30.x)
> 
Unless the network you created in the overcloud is named `provisioning`, 
these parameters may be relevant.
IronicCleaningNetwork:
   default: 'provisioning'
   description: Name or UUID of the *overcloud* network used for cleaning
                bare metal nodes. The default value of "provisioning" can be
                left during the initial deployment (when no networks are
                created yet) and should be changed to an actual UUID in
                a post-deployment stack update.
   type: string
IronicProvisioningNetwork:
   default: 'provisioning'
   description: Name or UUID of the *overcloud* network used for 
provisioning
                of bare metal nodes, if IronicDefaultNetworkInterface is
                set to "neutron". The default value of "provisioning" can be
                left during the initial deployment (when no networks are
                created yet) and should be changed to an actual UUID in
                a post-deployment stack update.
   type: string
IronicRescuingNetwork:
   default: 'provisioning'
   description: Name or UUID of the *overcloud* network used for resucing
                of bare metal nodes, if IronicDefaultRescueInterface is not
                set to "no-rescue". The default value of "provisioning" 
can be
                left during the initial deployment (when no networks are
                created yet) and should be changed to an actual UUID in
                a post-deployment stack update.
   type: string
> *Query:*
> 
>  1. any other location/way where we should add these so that they are
>     included without error.
> 
>         *ServiceNetMap:*
> 
>         *    IronicApiNetwork: provisioning*
> 
>         *    IronicNetwork: provisioning*
> 
`provisioning` network is defined in -n 
/home/stack/templates/network_data.yaml right? 
[Loke]: No it does not have any entry for provisioning in this file, it is network entry for J3Mgmt,Tenant,InternalApi, and External. These n/w's are added as vlan based under the br-ext bridge. 
provisioning network I am creating after the overcloud is deployed and before the baremetal node is provisioned. 
in the provisioning network, we are giving the range of the ironic network. (172.23.3.x)
 
And an entry in 
'networks' for the controller role in /home/stack/templates/roles_data.yaml?
[Loke]: we also did not added a similar entry in the roles_data.yaml as well.
Just to add with these two files we have rendered the remaining templates. 
 
>       2. Also are these commands(mentioned above) configure Baremetal
>     services are fine.
> 
Yes, what you are doing makes sense.
I'm actually not sure why it did'nt work with your previous 
configuration, it got the information about NBP file and obviously 
attempted to download it from 30.30.30.220. With routing in place, that 
should work.
Changeing the ServiceNetMap to move IronicNetwork services to the 
172.23.3 would avoid the routing.
[Loke] : we can try this but are somehow not able to do so because of some weird reasons.  
What is NeutronBridgeMappings?
  br-baremetal maps to the physical network of the overcloud 
`provisioning` neutron network?
 
[Loke] : yes , we create br-barmetal and then we create provisioning network mapping it to br-baremetal.