OpenShift on OpenStack IPI installation fails with misconfigured install-config file
Issue
- The install-config is consumed but fails to create cluster with the below error.
DEBUG module.topology.data.openstack_networking_network_v2.external_network: Refreshing state...
ERROR
ERROR Error: Error in function call
ERROR
ERROR on ../../../tmp/openshift-install-919345938/topology/private-network.tf line 37, in resource "openstack_networking_subnet_v2" "nodes":
ERROR 37: end = cidrhost(local.nodes_cidr_block, 16000)
ERROR |----------------
ERROR | local.nodes_cidr_block is "102.0.0.0/24"
ERROR
ERROR Call to function "cidrhost" failed: prefix of 24 does not accommodate a host
ERROR numbered 16000.
ERROR
ERROR Failed to read tfstate: open /tmp/openshift-install-919345938/terraform.tfstate: no such file or directory
FATAL failed to fetch Cluster: failed to generate asset "Cluster": failed to create cluster: failed to apply Terraform: failed to complete the change
Environment
- Red Hat OpenShift Container Platform
- 4.5
- Red Hat OpenStack Platform
- 13
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.