Bug 1758349 - Pre-introspection 'ctlplane-ip-range' check needs to account for default values
Summary: Pre-introspection 'ctlplane-ip-range' check needs to account for default values
Keywords:
Status: CLOSED DUPLICATE of bug 1719109
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-validations
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: RHOS Maint
QA Contact: nlevinki
URL:
Whiteboard:
Depends On:
Blocks: 1715822
TreeView+ depends on / blocked
 
Reported: 2019-10-03 21:31 UTC by Thom Carlin
Modified: 2019-10-04 08:16 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-10-04 08:15:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Thom Carlin 2019-10-03 21:31:50 UTC
Description of problem:

Running 'ctlplane-ip-range' pre-introspection check against undercloud.conf with default values for ctlplane-subnet returns misleading error

Version-Release number of selected component (if applicable):

13-z

How reproducible:

100%

Steps to Reproduce:
1. Setup undercloud.conf with default ctlplane-subnet values for dhcp_start, dhcp_end
2. Run ctlplane-ip-range validation

Actual results:

[...]
TASK [Check the size of the DHCP range for overcloud nodes] ********************
fatal: [undercloud]: FAILED! => {"changed": false, "msg": "Argument start () must be an IP\nArgument end () must be an IP"}

PLAY RECAP *********************************************************************
undercloud                 : ok=4    changed=0    unreachable=0    failed=1   

Expected results:


TASK [Check the size of the DHCP range for overcloud nodes] ********************
ok: [undercloud]

PLAY RECAP *********************************************************************
undercloud                 : ok=5    changed=0    unreachable=0    failed=0   

Additional info:

Workaround:
1) edit undercloud.conf
a) for each control plane subnet (default = ctlplane-subnet) section:
i) Specify a value for dhcp_start (e.g. "dhcp_start = 192.168.24.5")
ii) Specify a value for dhcp_end (e.g. "dhcp_end = 192.168.24.29")
Rerun validation

N.B. The check is for >= 25 ip addresses in range (see https://docs.openstack.org/tripleo-validations/queens/validations-pre-introspection-details.html#ctlplane-ip-range).  This will be addressed in a separate bz


Note You need to log in before you can comment on or make changes to this bug.