Guillaume Coré
2019-02-26 23969db5eccd72002a90b7df6d209a4fdaeb49cb
refs
author Guillaume Coré <gucore@redhat.com>
Tuesday, February 26, 2019 11:55 +0100
committer Guillaume Coré <gucore@redhat.com>
Tuesday, February 26, 2019 12:28 +0100
commit23969db5eccd72002a90b7df6d209a4fdaeb49cb
tree 0328fd6e44d8eb0938ecc642e9658c6b89819c1e tree | zip | gz
parent 41e318e12207b259ec6e2270e584f87ab28e040b view | diff
OCP 4: do not try to delete DNS records if there are none

This commit fixes the error:

TASK [Delete all record from the zone] *****************************************
Tuesday 26 February 2019 01:06:36 -0500 (0:00:00.276) 0:43:40.451 ******
fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["aws", "route53",
"change-resource-record-sets", "--hosted-zone-id=Z2Q4202QQ6KZW4",
"--change-batch=file:///...workdir/bd94_Z2Q4202QQ6KZW4_delete_records.json"],
"delta": "0:00:00.336782", "end": "2019-02-26 01:06:37.028327",
"msg": "non-zero return code",
"rc": 255, "start":
"2019-02-26 01:06:36.691545",
"stderr": "\nParameter validation failed:\nInvalid length for parameter
ChangeBatch.Changes, value: 0, valid range: 1-inf", "stderr_lines":
["", "Parameter validation failed:", "Invalid length for parameter
ChangeBatch.Changes, value: 0, valid range: 1-inf"], "stdout": "",
"stdout_lines": []}
1 files modified
55 ■■■■ changed files
ansible/configs/ocp4-coreos-deployer/delete_zone.yml 55 ●●●● diff | view | raw | blame | history