As it, the validation is passing successfully.
(undercloud) [stack@undercloud ~]$ ANSIBLE_RETRY_FILES_ENABLED=false ANSIBLE_STDOUT_CALLBACK=validation_output ansible-playbook -i /usr/bin/tripleo-ansible-inventory /usr/share/openstack-tripleo-validations/validations/ctlplane-ip-range.yaml
Success! The validation passed for all hosts:
* undercloud
After changing dhcp_end value to 192.168.24.20 instead of 192.168.24.30, the validation fails as expected
(undercloud) [stack@undercloud ~]$ ANSIBLE_RETRY_FILES_ENABLED=false ANSIBLE_STDOUT_CALLBACK=validation_output ansible-playbook -i /usr/bin/tripleo-ansible-inventory /usr/share/openstack-tripleo-validations/validations/ctlplane-ip-range.yaml
Task 'Check the size of the DHCP range for overcloud nodes' failed:
Host: undercloud
Message: The IP range 192.168.24.5 - 192.168.24.20 contains 16 addresses.
This might not be enough for the deployment or later scaling.
Failure! The validation failed for all hosts:
* undercloud