Container undercloud - preflight validation fail on undercloud_admin_host

Bug #1791088 reported by Harald Jensås
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (master)

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

Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (master)

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
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient 11.0.0

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (stable/rocky)

Fix proposed to branch: stable/rocky
Review: https://review.opendev.org/671470

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (stable/rocky)

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
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient 10.7.1

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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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