Comment 7 for bug 1870529

Revision history for this message
Harald Jensås (harald-jensas) wrote :

@Mihai, I see the doc's are not fully clear. There is currently no way to auto-populate the physical_network when ironic node ports are discovered during introspection.

As a workaround set the attribute with:
  openstack baremetal port set --physical-network $PHYSNET $PORT_UUID

Alternatively add the ports in instackenv.json, to have the field set on node import. i.e

    {
      "name": "lab-controller-0",
      "pm_type": "idrac",
      "pm_addr": "192.168.100.101",
      "pm_user": "root",
      "pm_password": "secret",
      "capabilities": "node:controller-0,profile:control,boot_mode:uefi,boot_option:local",
      "ports": [{"address": "11:11:11:11:11:11"}]
    },

   ^^ This will set the physical_network to 'ctlplane' on import.
   If you need to set a different physical_network it can be specified in instackenv.json as well, with:

    {
      "name": "lab-controller-0",
      "pm_type": "idrac",
      "pm_addr": "192.168.100.101",
      "pm_user": "root",
      "pm_password": "secret",
      "capabilities": "node:controller-0,profile:control,boot_mode:uefi,boot_option:local",
      "ports": [{"address": "11:11:11:11:11:11", "physical_network": "some_net"}]
    },

I have also started work on a fix. Initially ironic Inspector need support to populate the physical_network field. My proposed patches does this based on a CIDR map in inspectors config. In TripleO we can populate the CIDR map in ironic Inspector config internally based on the existing undercloud.conf data. See: https://review.opendev.org/720010 and https://review.opendev.org/718594