Bug 1636693

Summary: Validate routed networks enabled if multiple subnets in conf
Product: Red Hat OpenStack Reporter: Harald Jensås <hjensas>
Component: python-tripleoclientAssignee: Harald Jensås <hjensas>
Status: CLOSED ERRATA QA Contact: Alexander Chuzhoy <sasha>
Severity: medium Docs Contact:
Priority: medium    
Version: 14.0 (Rocky)CC: bfournie, hbrock, jslagle, jstransk, mburns, mlammon
Target Milestone: betaKeywords: Triaged
Target Release: 14.0 (Rocky)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-tripleoclient-10.6.1-0.20181010222405.8c8f259.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-11 11:53:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Harald Jensås 2018-10-06 20:58:36 UTC
Description of problem:
In queens (Prior to containerizing the undercloud) we had a validation in place to ensure routed networks was enabled if multiple subnets are defined in undercloud.conf.

When the undercloud was containerized this validation was lost.

The validation should be re-implemented.

Comment 5 mlammon 2018-11-16 14:49:51 UTC
install latest osp 14 
14   -p 2018-11-13.1

environement:
openstack-tripleo-heat-templates-9.0.1-0.20181013060879.el7ost.noarch



cat undercloud.conf
[DEFAULT]
# Network interface on the Undercloud that will be handling the PXE
# boots and DHCP for Overcloud instances. (string value)
local_interface = eth0
local_ip = 192.168.24.1/24
undercloud_public_host = 192.168.24.2
undercloud_admin_host = 192.168.24.3
#TODO: use release >= 10 when RHBZ#1633193 is resolved
undercloud_ntp_servers=clock.redhat.com
container_images_file=/home/stack/containers-prepare-parameter.yaml
docker_insecure_registries=docker-registry.engineering.redhat.com,brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888
undercloud_service_certificate = /etc/pki/instack-certs/undercloud.pem
hieradata_override = /home/stack/hiera_override.yaml
enable_node_discovery = true
enable_routed_networks = false
subnets = ctlplane-subnet,ctlplane-leaf1,ctlplane-leaf2

[ctlplane-subnet]
local_subnet = ctlplane-subnet
cidr = 192.168.24.0/24
dhcp_start = 192.168.24.5
dhcp_end = 192.168.24.24
gateway = 192.168.24.1
inspection_iprange = 192.168.24.100,192.168.24.120
masquerade = false
#TODO(skatlapa): add param to override masq

[ctlplane-leaf1]
cidr = 192.168.25.0/24
dhcp_start = 192.168.25.10
dhcp_end = 192.168.25.30
gateway = 192.168.25.254
inspection_iprange = 192.168.25.100,192.168.25.120
masquerade = false

[ctlplane-leaf2]
cidr = 192.168.26.0/24
dhcp_start = 192.168.26.10
dhcp_end = 192.168.26.30
gateway = 192.168.26.254
inspection_iprange = 192.168.26.100,192.168.26.120
masquerade = false

# try and install and get error as expected. 
(undercloud) [stack@undercloud-0 ~]$ openstack undercloud install
Multiple subnets specified: ['ctlplane-subnet', 'ctlplane-leaf1', 'ctlplane-leaf2'] but routed networks are not enabled.
An error occurred during configuration validation, please check your host configuration and try again.
Error message: Multiple subnets specified: ['ctlplane-subnet', 'ctlplane-leaf1', 'ctlplane-leaf2'] but routed networks are not enabled.

Comment 7 errata-xmlrpc 2019-01-11 11:53:41 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2019:0045