Container undercloud - preflight validation fail on undercloud_admin_host

Bug #1791088 reported by Harald Jensås on 2018-09-06
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
High
Harald Jensås

Bug Description

When multiple subnets are configured validations fail with:

Config option undercloud_public_host "172.20.0.3" not in defined CIDR "172.20.0.64/26"
Config option undercloud_admin_host "172.20.0.2" not in defined CIDR "172.20.0.64/26"
An error occurred during configuration validation, please check your host configuration and try again.
Error message: Config option undercloud_admin_host "172.20.0.2" not in defined CIDR "172.20.0.64/26"

The following configuration used;

[DEFAULT]

enable_routed_networks = true
enable_tempest = false
enable_ui = false
inspection_interface = br-ctlplane
ipxe_enabled = true
local_interface = eth1
local_ip = 172.20.0.1/26
local_mtu = 1500
local_subnet = ctlplane-subnet
overcloud_domain_name = localdomain
scheduler_max_attempts = 2
subnets = ctlplane-subnet,leaf1,leaf2
#subnets = ctlplane-subnet
undercloud_admin_host = 172.20.0.2
undercloud_debug = true
undercloud_hostname = leafs.lab.example.com
undercloud_nameservers = 172.20.0.254
undercloud_ntp_servers = 0.se.pool.ntp.org
undercloud_public_host = 172.20.0.3

[ctlplane-subnet]
cidr = 172.20.0.0/26
dhcp_start = 172.20.0.10
dhcp_end = 172.20.0.19
inspection_iprange = 172.20.0.20,172.20.0.29
gateway = 172.20.0.62
masquerade = true

[leaf1]
cidr = 172.20.0.64/26
dhcp_start = 172.20.0.70
dhcp_end = 172.20.0.79
inspection_iprange = 172.20.0.80,172.20.0.89
gateway = 172.20.0.126
masquerade = true

[leaf2]
cidr = 172.20.0.128/26
dhcp_start = 172.20.0.130
dhcp_end = 172.20.0.139
inspection_iprange = 172.20.0.140,172.20.0.149
gateway = 172.20.0.190
masquerade = true

Fix proposed to branch: master
Review: https://review.openstack.org/600439

Changed in tripleo:
status: Triaged → In Progress

Reviewed: https://review.openstack.org/600439
Committed: https://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?id=c0c66a93c0641ebf591124cb05ee50e5ed5fda07
Submitter: Zuul
Branch: master

commit c0c66a93c0641ebf591124cb05ee50e5ed5fda07
Author: Harald Jensås <email address hidden>
Date: Thu Sep 6 14:56:40 2018 +0200

    Only validate admin and public host in local_subnet cidr

    When multiple subnets are configured validations where failing
    becuase the admin and public host addresses where checked
    for all subnets. The admin and public host addresses should
    only be validated against the cidr of the local_subnet.

    Closes-Bug: #1791088
    Change-Id: Ie9a6f88cc449c135593a0df0426e4d8054b38183

Changed in tripleo:
status: In Progress → Fix Released

This issue was fixed in the openstack/python-tripleoclient 11.0.0 release.

Reviewed: https://review.opendev.org/671470
Committed: https://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?id=9fd921b5fcac6e407cec3e9cb7ac9f13fe121017
Submitter: Zuul
Branch: stable/rocky

commit 9fd921b5fcac6e407cec3e9cb7ac9f13fe121017
Author: Harald Jensås <email address hidden>
Date: Thu Sep 6 14:56:40 2018 +0200

    Only validate admin and public host in local_subnet cidr

    When multiple subnets are configured validations where failing
    becuase the admin and public host addresses where checked
    for all subnets. The admin and public host addresses should
    only be validated against the cidr of the local_subnet.

    Closes-Bug: #1791088
    Change-Id: Ie9a6f88cc449c135593a0df0426e4d8054b38183
    (cherry picked from commit c0c66a93c0641ebf591124cb05ee50e5ed5fda07)

tags: added: in-stable-rocky

This issue was fixed in the openstack/python-tripleoclient 10.7.1 release.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers