RedHat-EMEA-SSA-Team / stc

Playbooks for OCP env validation, preparations and installation
Apache License 2.0
30 stars 18 forks source link

check_dns check the "wrong" dns name #76

Closed rbo closed 5 years ago

rbo commented 5 years ago

apps_dns in env.yml:

apps_dns: apps.ocp311.bohne.io

Checks fails:

TASK [check_dns : debug] **************************************************************************************************************************************
Sunday 17 March 2019  12:15:33 -0400 (0:00:00.438)       0:34:51.395 **********
fatal: [lb]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'stdout'\n\nThe error appears to have been in '/home/cloud-user/stc/playbooks/roles/check_dns/tasks/main.yml': line 11, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n  changed_when: false\n- debug:\n  ^ here\n"}
ok: [bastion] => {
    "msg": "api.ocp311.bohne.io resolved to Server:\t\t192.168.1.100\nAddress:\t192.168.1.100#53\n\nNon-authoritative answer:\nName:\tapi.ocp311.bohne.io\nAddress: 95.216.125.130"
}

Because:

$ dig +short apps.ocp311.bohne.io
$ dig +short safd.apps.ocp311.bohne.io
95.216.125.130

There is no entry for apps.ocp311.bohne.io, it's only for *.apps.ocp311.bohne.io!

rbo commented 5 years ago

My fault, still checking apps."{{apps_dns}}"

https://github.com/RedHat-EMEA-SSA-Team/stc/blob/master/playbooks/roles/check_dns/tasks/main.yml#L7