Attempt to deploy undercloud with:
[ctlplane-subnet]
host_routes = [{destination: 10.10.10.0, nexthop: 192.168.0.1}]
Result:
The undercloud deployment fails with:
BadRequestException: 400: Client Error for url: https://192.168.0.2:13696/v2.0/subnets, Invalid input for host_routes. Reason: \\\\\\'10.10.10.0\\\\\\' is not a recognized CIDR, \\\\\\'10.
10.10.0/32\\\\\\' is recommended.\\\\n\\'\\n[2019-05-21 18:37:48,330] (heat-config) [ERROR] Error running /var/lib/heat-config/heat-config-script/76c4f6a2-f668-4c4e-b270-c2588b8b17a2. [1]\\n
\\n'",
Error is valid, the 'destination' of a route need to be a network_address/subnet_prefix (For example: 10.10.10.0/24)
This bug is regarding validation of undercloud.conf input. 'host_routes' option could be validated in pre-flight instead of failing the deployment at the very end when networks are created.