Fix shell test suite
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
iptables (Ubuntu) |
Fix Released
|
Undecided
|
Andreas Hasenack | ||
Focal |
Fix Released
|
Undecided
|
Andreas Hasenack |
Bug Description
[ Impact ]
The shell test suite (iptables/
W: [FAILED] ././testcases/
W: [FAILED] ././testcases/
After some troubleshooting, it turns out this is happening because of an unsorted order in the output of iptables-save, which was fixed[1] in later releases of iptables. The code was trying to compensate for that, but there was a small mistake[2] in a case/esac globbing:
case "$XT_MULTI" in
-*/xtables-
+*xtables-
The upstream fix includes other similar changes in other tests, but in the case of focal, the above is the minimal fix needed.
Note that this shell test suite is not being run in focal, just in later ubuntu releases. But since the fix for #1992454 is adding such a test, I decided to fix the shell test run and add it to the existing DEP8 tests for focal via this bug, so we have test parity between focal and later ubuntu releases.
1. https:/
2. https:/
[ Test Plan ]
Verify that the DEP8 tests now include a run-tests.sh test suite, and that it passes.
[ Where problems could occur ]
If the fix is incorrect, it would affect only the already-failing firewalld test. But in addition to fixing that test, we are now also including a full test run of all shell tests, something which wasn't being done for focal until now. While these tests are passing now, they could fail in a future iptables SRU, or turn out to be flaky. They are being run in ubuntu releases after focal, though, so that is a good sign.
[ Other Info ]
This fix is being included in the same upload as bug #1992454.
[ Original Description ]
The shell test suite (iptables/
W: [FAILED] ././testcases/
W: [FAILED] ././testcases/
After some troubleshooting, it turns out this is happening because of an unsorted order in the output of iptables-save, which was fixed[1] in later releases of iptables. The code was trying to compensate for that, but there was a small mistake[2] in a case/esac globbing:
case "$XT_MULTI" in
-*/xtables-
+*xtables-
1. https:/
2. https:/
tags: | added: server-todo |
description: | updated |
Changed in iptables (Ubuntu Focal): | |
status: | New → In Progress |
assignee: | nobody → Andreas Hasenack (ahasenack) |
Changed in iptables (Ubuntu): | |
status: | In Progress → Fix Released |
description: | updated |
description: | updated |
description: | updated |
Hello Andreas, or anyone else affected,
Accepted iptables into focal-proposed. The package will build now and be available at https:/ /launchpad. net/ubuntu/ +source/ iptables/ 1.8.4-3ubuntu2. 1 in a few hours, and then in the -proposed repository.
Please help us by testing this new package. See https:/ /wiki.ubuntu. com/Testing/ EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification- needed- focal to verification- done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification- failed- focal. In either case, without details of your testing we will not be able to proceed.
Further information regarding the verification process can be found at https:/ /wiki.ubuntu. com/QATeam/ PerformingSRUVe rification . Thank you in advance for helping!
N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.