Gate scripts need to remove the awk output trim
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Fix Released
|
Critical
|
Kevin Carter | ||
Icehouse |
Won't Fix
|
Critical
|
Kevin Carter | ||
Juno |
Invalid
|
Critical
|
Kevin Carter | ||
Trunk |
Fix Released
|
Critical
|
Kevin Carter |
Bug Description
The Awk output trim found in all of the gate scripts needs to be removed. This output trimming makes it impossible to troubleshoot issues within the playbooks while also having the side effect of not trapping anything that fails. Awk, when used with a pipe, will always return 0 no matter what was done using the command. This means that if a playbook execution were to fail when called bu the gate-check-
Awk test case:
``` bash
# Test with executed command
~$ echo hi | awk BOKEN
~$ echo $?
0
# Test with known failed command
~$ false | awk BOKEN
~$ echo $?
0
```
While the filter had good intentions we need to figure out a different solution, however while we are figuring that different solution out we need to remove the filter for accurate gating.
Fix proposed to branch: icehouse /review. openstack. org/164481
Review: https:/