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/opens
tack-tripleo-validations/validations/check-network-gateway.yaml
Success! The validation passed for all hosts:
* undercloud
After changing the value of "gateway" to 192.168.24.1111 instead of 192.168.24.1 in the undercloud.conf file, it should fail as expected.
(undercloud) [stack@undercloud ~]$
(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/check-network-gateway.yaml
Task 'Test network_gateway if different from local_ip' failed:
Host: undercloud
Message: ping: 192.168.24.1111: Name or service not known
Failure! The validation failed for all hosts:
* undercloud