ERROR Call to function cidrhost failed: prefix of X does not accommodate a host
Issue
-
IPI installation of OpenShift on
OpenStack
fails with the following error:DEBUG module.bootstrap.data.openstack_images_image_v2.bootstrap_image: Refreshing state... ERROR ERROR Error: Error in function call ERROR ERROR on ../../tmp/openshift-install-273350470/topology/private-network.tf line 31, in resource "openstack_networking_subnet_v2" "nodes": ERROR 31: end = cidrhost(local.nodes_cidr_block, 16000) ERROR |---------------- ERROR | local.nodes_cidr_block is "10.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-273350470/terraform.tfstate: no such file or directory FATAL failed to fetch Cluster: failed to generate asset "Cluster": failed to create cluster: failed to apply using Terraform
Environment
- Red Hat OpenShift Container Platform
- 4.x
- Red Hat OpenStack Platform
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.