iptables-1.8.7/iptables/tests/shell/testcases/nft-only/0009-needless-bitwise_0 fails on s390x

Bug #1974056 reported by Dimitri John Ledkov
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu on IBM z Systems
In Progress
Undecided
bugproxy
iptables
Unknown
Unknown
iptables (Ubuntu)
New
Undecided
Unassigned

Bug Description

In Ubuntu, we execute the full iptables shell testcases across all architectures.

They seem to all pass everywhere, however

iptables-1.8.7/iptables/tests/shell/testcases/nft-only/0009-needless-bitwise_0

is currently failing on s390x like so:

command17 FAIL stderr: W: [FAILED] ././testcases/nft-only/0009-needless-bitwise_0: expected 0 but got 1

i wonder if there is some endian bug, as this is currently Ubuntu's only big-endian architecture.

this can be reproduced with:

pull-lp-source iptables
cd iptables-1.8.7/
chmod +x ./iptables/tests/shell/testcases/iptables/0007-zero-counters_0
cd iptables/tests/shell
sudo ./run-tests.sh --host

tags: added: rls-kk-incoming
description: updated
Frank Heimes (fheimes)
Changed in ubuntu-z-systems:
assignee: nobody → bugproxy (bugproxy)
tags: added: reverse-proxy-bugzilla
Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2022-05-25 04:39 EDT-------
Description by Canonical (LP#1974056):

command17 FAIL stderr: W: [FAILED] ././testcases/nft-only/0009-needless-bitwise_0: expected 0 but got 1

this can be reproduced with:

pull-lp-source iptables
cd iptables-1.8.7/
chmod +x ./iptables/tests/shell/testcases/iptables/0007-zero-counters_0
cd iptables/tests/shell
sudo ./run-tests.sh --host

tags: added: architecture-s39064 bugnameltc-198367 severity-high targetmilestone-inin2204
Frank Heimes (fheimes)
Changed in ubuntu-z-systems:
status: New → In Progress
Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2023-06-26 03:07 EDT-------
I was not able to reproduce this.
Runs fine on my machine (see below).
Any ideas how to continue?

root@m8360007:~/# cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.2 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

root@m8360007:~# pull-lp-source iptables
Found iptables 1.8.7-1ubuntu7 in mantic
Downloading iptables_1.8.7-1ubuntu7.dsc from ports.ubuntu.com (0.003 MiB)
[=====================================================>]100%
Public key not found, could not verify signature
Downloading iptables_1.8.7.orig.tar.bz2 from ports.ubuntu.com (0.685 MiB)
[=====================================================>]100%
Downloading iptables_1.8.7-1ubuntu7.debian.tar.xz from ports.ubuntu.com (0.084 MiB)
[=====================================================>]100%
root@m8360007:~# cd iptables-1.8.7/
root@m8360007:~/iptables-1.8.7# ll ./iptables/tests/shell/testcases/iptables/0007-zero-counters_0
-rw-r--r-- 1 root root 1682 Jun 26 08:59 ./iptables/tests/shell/testcases/iptables/0007-zero-counters_0
root@m8360007:~/iptables-1.8.7# chmod +x ./iptables/tests/shell/testcases/iptables/0007-zero-counters_0
root@m8360007:~/iptables-1.8.7# cd iptables/tests/shell
root@m8360007:~/iptables-1.8.7/iptables/tests/shell# sudo ./run-tests.sh --host

I: [OK] ././testcases/arptables/0001-arptables-save-restore_0
I: [OK] ././testcases/arptables/0002-arptables-restore-defaults_0
I: [OK] ././testcases/arptables/0003-arptables-verbose-output_0
I: [OK] ././testcases/chain/0001duplicate_1
[...]
I: [OK] ././testcases/nft-only/0007-mid-restore-flush_0
I: [OK] ././testcases/nft-only/0008-basechain-policy_0
I: [OK] ././testcases/nft-only/0009-needless-bitwise_0
I: nft results: [OK] 50 [FAILED] 0 [TOTAL] 50
I: combined results: [OK] 100 [FAILED] 0 [TOTAL] 100

Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2023-07-04 07:59 EDT-------
Is this issue reproducable on your side?
Or can we close this?

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Note this is still an issue, we just marked the given test case as ignored on s390x going forward.

The https://launchpad.net/ubuntu/+source/iptables/1.8.7-1ubuntu6 upload:
* disabled 0002-ebtables-save-restore_0 on x86
* disabled 0009-needless-bitwise_0 on s390x

See the diff at http://launchpadlibrarian.net/599916663/iptables_1.8.7-1ubuntu5_1.8.7-1ubuntu6.diff.gz

I will check again once we have newer iptables available.

Revision history for this message
bugproxy (bugproxy) wrote :

------- Comment From <email address hidden> 2023-07-05 12:00 EDT-------
Is this a new testcase, or did it work before?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.