Cannot find any hosts on 'overcloud' in network 'ctlplane'

Solution Verified - Updated -

Environment

Red Hat OpenStack Platform 16

Issue

During overcloud deployment with pre-provisioned servers, we get the following error:

Deploying overcloud configuration
Cannot find any hosts on 'overcloud' in network 'ctlplane'

Resolution

  • Hostnames in DeployedServerPortMap need to match the names in HostnameMap with the extension -ctlplane. Make sure the hostnames of the host matches in the templates, HostnameMap and on the servers themselves. For example, in the below, we can see the names are controller-N in theHostnameMap, and controller-N-ctlplane in the DeployedServerPortMap
  parameter_defaults:
    DeployedServerPortMap:
      controller-0-ctlplane:
        fixed_ips:
          - ip_address: 192.168.24.3
        subnets:
          - cidr: 24
        network:
          tags:
            192.168.24.0/24
      controller-1-ctlplane:
        fixed_ips:
          - ip_address: 192.168.24.1
        subnets:
          - cidr: 24
        network:
          tags:
            192.168.24.0/24
      controller-2-ctlplane:
        fixed_ips:
          - ip_address: 192.168.24.2
        subnets:
          - cidr: 24
        network:
          tags:
            192.168.24.0/24

HostnameMap file:

parameter_defaults:
 HostnameMap:
  overcloud-controller-0: controller-0
  overcloud-controller-1: controller-1
  overcloud-controller-2: controller-2

Root Cause

  • Difference in names between DeployedServerPortMap and HostnameMap:
  parameter_defaults:
    DeployedServerPortMap:
      controller-0-ctlplane:
        fixed_ips:
          - ip_address: 192.168.24.3
        subnets:
          - cidr: 24
        network:
          tags:
            192.168.24.0/24
      controller-1-ctlplane:
        fixed_ips:
          - ip_address: 192.168.24.1
        subnets:
          - cidr: 24
        network:
          tags:
            192.168.24.0/24
      controller-2-ctlplane:
        fixed_ips:
          - ip_address: 192.168.24.2
        subnets:
          - cidr: 24
        network:
          tags:
            192.168.24.0/24

HostnameMap file:

parameter_defaults:
 HostnameMap:
  overcloud-controller-0: controller0
  overcloud-controller-1: controller1
  overcloud-controller-2: controller2

Note the missing hyphen between controller and the index:
controller0 vs controller-0

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments