Cannot find any hosts on 'overcloud' in network 'ctlplane'
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
DeployedServerPortMapneed to match the names inHostnameMapwith the extension-ctlplane. Make sure thehostnamesof the host matches in the templates,HostnameMapand on the servers themselves. For example, in the below, we can see the names arecontroller-Nin theHostnameMap, andcontroller-N-ctlplanein theDeployedServerPortMap
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
DeployedServerPortMapandHostnameMap:
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