undercloud.conf subnet defenition host_routes not validated

Bug #1830005 reported by Harald Jensås
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Triaged
Medium
Unassigned

Bug Description

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.

Changed in tripleo:
milestone: none → train-1
Changed in tripleo:
milestone: train-1 → train-2
Changed in tripleo:
milestone: train-2 → train-3
Changed in tripleo:
milestone: train-3 → ussuri-1
Changed in tripleo:
milestone: ussuri-1 → ussuri-2
wes hayutin (weshayutin)
Changed in tripleo:
milestone: ussuri-2 → ussuri-3
wes hayutin (weshayutin)
Changed in tripleo:
milestone: ussuri-3 → ussuri-rc3
wes hayutin (weshayutin)
Changed in tripleo:
milestone: ussuri-rc3 → victoria-1
Changed in tripleo:
milestone: victoria-1 → victoria-3
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.