[Bug 2045000] [NEW] nvme-stas 2.3-1ubuntu1 autopkgtest hanging on s390x

Olivier Gayot 2045000 at bugs.launchpad.net
Tue Nov 28 09:34:37 UTC 2023


Public bug reported:

On s390x, the test-suite for nvme-stas hangs and then times out:

596s test_clear (test-gtimer.Test.test_clear) ... ok
596s test_new_timer (test-gtimer.Test.test_new_timer) ... ok
596s test_start_timer (test-gtimer.Test.test_start_timer) ... ok
596s test_AsyncTask (test-gutil.GutilUnitTest.test_AsyncTask) ... ok
596s test__data_matches_ip (test-iputil.Test.test__data_matches_ip) ... ok
596s test_get_interface (test-iputil.Test.test_get_interface)
10600s Check that get_interface() returns the right info ...

I am able to reproduce the issue consistently on a s390x host.

The function that is hanging is the following:

> def net_if_addrs():
>     with socket.socket(socket.AF_NETLINK, socket.SOCK_RAW) as sock:
>         sock.sendall(GETADDRCMD)
>         nlmsg = sock.recv(8192)     # This call blocks forever

where:

> GETADDRCMD = _nlmsg(RTM_GETADDR, NLM_F_REQUEST | NLM_F_ROOT,
_ifaddrmsg())

and

> def _ifaddrmsg(family=0, prefixlen=0, flags=0, scope=0, index=0):
>     '''Implement this C struct:
>     struct ifaddrmsg {
>         __u8   ifa_family;
>         __u8   ifa_prefixlen;  /* The prefix length        */
>         __u8   ifa_flags;      /* Flags            */
>         __u8   ifa_scope;      /* Address scope        */
>         __u32  ifa_index;      /* Link index           */
>     };
>     '''
>     return struct.pack('<BBBBL', family, prefixlen, flags, scope, index)

This is presumably an endianness issue since s390x uses big-endian.

** Affects: nvme-stas (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: update-excuse

** Tags added: proposed-migration

** Tags removed: proposed-migration
** Tags added: update-excuse

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to nvme-stas in Ubuntu.
https://bugs.launchpad.net/bugs/2045000

Title:
  nvme-stas 2.3-1ubuntu1 autopkgtest hanging on s390x

Status in nvme-stas package in Ubuntu:
  New

Bug description:
  On s390x, the test-suite for nvme-stas hangs and then times out:

  596s test_clear (test-gtimer.Test.test_clear) ... ok
  596s test_new_timer (test-gtimer.Test.test_new_timer) ... ok
  596s test_start_timer (test-gtimer.Test.test_start_timer) ... ok
  596s test_AsyncTask (test-gutil.GutilUnitTest.test_AsyncTask) ... ok
  596s test__data_matches_ip (test-iputil.Test.test__data_matches_ip) ... ok
  596s test_get_interface (test-iputil.Test.test_get_interface)
  10600s Check that get_interface() returns the right info ...

  I am able to reproduce the issue consistently on a s390x host.

  The function that is hanging is the following:

  > def net_if_addrs():
  >     with socket.socket(socket.AF_NETLINK, socket.SOCK_RAW) as sock:
  >         sock.sendall(GETADDRCMD)
  >         nlmsg = sock.recv(8192)     # This call blocks forever

  where:

  > GETADDRCMD = _nlmsg(RTM_GETADDR, NLM_F_REQUEST | NLM_F_ROOT,
  _ifaddrmsg())

  and

  > def _ifaddrmsg(family=0, prefixlen=0, flags=0, scope=0, index=0):
  >     '''Implement this C struct:
  >     struct ifaddrmsg {
  >         __u8   ifa_family;
  >         __u8   ifa_prefixlen;  /* The prefix length        */
  >         __u8   ifa_flags;      /* Flags            */
  >         __u8   ifa_scope;      /* Address scope        */
  >         __u32  ifa_index;      /* Link index           */
  >     };
  >     '''
  >     return struct.pack('<BBBBL', family, prefixlen, flags, scope, index)

  This is presumably an endianness issue since s390x uses big-endian.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvme-stas/+bug/2045000/+subscriptions




More information about the foundations-bugs mailing list