Dec 04 01:43:12.495 E ns/openshift-dns pod/dns-default-954mg node/ip-10-0-133-153.ec2.internal container=dns-node-resolver container exited with code 255 (Error): kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]\n
shows up fairly frequently in our upgrade logs. This is caused when all the child pids exit before the trap command completes, causing kill to get no arguments.
The fix is fairly standard in similar scripts - use pipe to xargs -r kill to tolerate empty.
verified with 4.4.0-0.nightly-2019-12-20-210709 and issue has been fixed.
trap 'jobs -p | xargs kill || true; wait; exit 0' TERM
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.