This bug is awaiting verification that the linux/5.13.0-24.24 kernel in
-proposed solves the problem. Please test the kernel and update this bug
with the results. If the problem is solved, change the tag
'verification-needed-impish' to 'verification-done-impish'. If the
problem still exists, change the tag 'verification-needed-impish' to
'verification-failed-impish'.

If verification is not done by 5 working days from today, this fix will
be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how
to enable and use -proposed. Thank you!


** Tags added: verification-needed-impish

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1938964

Title:
  icmp_redirect from selftests fails on F/kvm (unary operator expected)

Status in ubuntu-kernel-tests:
  In Progress
Status in linux package in Ubuntu:
  In Progress
Status in linux source package in Focal:
  Fix Committed
Status in linux source package in Hirsute:
  Fix Committed
Status in linux source package in Impish:
  Fix Committed
Status in linux source package in Jammy:
  In Progress

Bug description:
  [Impact]
  If any sub-test in this icmp_redirect.sh is failing but not expected
  to fail. The script will complain:
      ./icmp_redirect.sh: line 72: [: 1: unary operator expected

  This is because when the sub-test is not expected to fail, we won't
  pass any value for the xfail local variable in log_test() and thus
  it's empty. Fix this by passing 0 as the 4th variable to log_test()
  for non-xfail cases.

  This issue can be found on our KVM kernel with SRU tests, they're
  failing because of missing some kernel configs.

  [Fix]
  * 39d8622c72 "selftests: icmp_redirect: pass xfail=0 to log_test()"

  This patch can be cherry-picked into all of the affected kernels.

  [Test Plan]
  Run the patched icmp_redirect.sh script with a KVM kernel (e.g. F/kvm),
  and this "unary operator expected" error message should no longer exist.

  [Where problems could occur]
  Change limited to test script, it won't have any impact to real kernel
  function. And this issue is most likely specific to KVM kernels.

  
  == Original Bug Report ==
  icmp_redirect from selftect is failing on F/kvm 5.4.0-1045.47

   # selftests: net: icmp_redirect.sh
   #
   # ###########################################################################
   # Legacy routing
   # ###########################################################################
   #
   # TEST: IPv4: redirect exception                                      [ OK ]
   # TEST: IPv6: redirect exception                                      [ OK ]
   # TEST: IPv4: redirect exception plus mtu                             [ OK ]
   # TEST: IPv6: redirect exception plus mtu                             [ OK ]
   # TEST: IPv4: routing reset                                           [ OK ]
   # TEST: IPv6: routing reset                                           [ OK ]
   # TEST: IPv4: mtu exception                                           [ OK ]
   # TEST: IPv6: mtu exception                                           [ OK ]
   # TEST: IPv4: mtu exception plus redirect                             [ OK ]
   # TEST: IPv6: mtu exception plus redirect                             [XFAIL]
   #
   # ###########################################################################
   # Legacy routing with VRF
   # ###########################################################################
   #
   # Error: Unknown device type.
   # Cannot find device "red"
   # Error: argument "red" is wrong: Invalid VRF
   #
   # Error: argument "red" is wrong: Invalid VRF
   #
   # Cannot find device "red"
   # Cannot find device "red"
   # Error: argument "red" is wrong: Not a valid VRF name
   #
   # Error: argument "red" is wrong: Invalid VRF
   #
   # ./icmp_redirect.sh: line 71: [: 1: unary operator expected
   # TEST: IPv4: redirect exception                                      [FAIL]
   # Error: argument "red" is wrong: Invalid VRF
   #
   # TEST: IPv6: redirect exception                                      [XFAIL]
   # Error: argument "red" is wrong: Invalid VRF
   #
   # ./icmp_redirect.sh: line 71: [: 1: unary operator expected
   # TEST: IPv4: redirect exception plus mtu                             [FAIL]
   # Error: argument "red" is wrong: Invalid VRF
   #
   # TEST: IPv6: redirect exception plus mtu                             [XFAIL]
   # Error: argument "red" is wrong: Invalid VRF
   #
   # ./icmp_redirect.sh: line 71: [: 1: unary operator expected
   # TEST: IPv4: routing reset                                           [FAIL]
   # Error: argument "red" is wrong: Invalid VRF
   #
   # TEST: IPv6: routing reset                                           [XFAIL]
   # Error: argument "red" is wrong: Invalid VRF
   #
   # ./icmp_redirect.sh: line 71: [: 1: unary operator expected
   # TEST: IPv4: mtu exception                                           [FAIL]
   # Error: argument "red" is wrong: Invalid VRF
   #
   # TEST: IPv6: mtu exception                                           [XFAIL]
   # Error: argument "red" is wrong: Invalid VRF
   #
   # ./icmp_redirect.sh: line 71: [: 1: unary operator expected
   # TEST: IPv4: mtu exception plus redirect                             [FAIL]
   # Error: argument "red" is wrong: Invalid VRF
   #
   # TEST: IPv6: mtu exception plus redirect                             [XFAIL]
   #
   # ###########################################################################
   # Routing with nexthop objects
   # ###########################################################################
   #
   # TEST: IPv4: redirect exception                                      [ OK ]
   # TEST: IPv6: redirect exception                                      [ OK ]
   # TEST: IPv4: redirect exception plus mtu                             [ OK ]
   # TEST: IPv6: redirect exception plus mtu                             [ OK ]
   # TEST: IPv4: routing reset                                           [ OK ]
   # TEST: IPv6: routing reset                                           [ OK ]
   # TEST: IPv4: mtu exception                                           [ OK ]
   # TEST: IPv6: mtu exception                                           [ OK ]
   # TEST: IPv4: mtu exception plus redirect                             [ OK ]
   # TEST: IPv6: mtu exception plus redirect                             [XFAIL]
   #
   # ###########################################################################
   # Routing with nexthop objects and VRF
   # ###########################################################################
   #
   # Error: Unknown device type.
   # Cannot find device "red"
   # Error: argument "red" is wrong: Invalid VRF
   #
   # Error: argument "red" is wrong: Invalid VRF
   #
   # Cannot find device "red"
   # Cannot find device "red"
   # Error: argument "red" is wrong: Not a valid VRF name
   #
   # Error: argument "red" is wrong: Invalid VRF
   #
   # ./icmp_redirect.sh: line 71: [: 1: unary operator expected
   # TEST: IPv4: redirect exception                                      [FAIL]
   # Error: argument "red" is wrong: Invalid VRF
   #
   # TEST: IPv6: redirect exception                                      [XFAIL]
   # Error: argument "red" is wrong: Invalid VRF
   #
   # ./icmp_redirect.sh: line 71: [: 1: unary operator expected
   # TEST: IPv4: redirect exception plus mtu                             [FAIL]
   # Error: argument "red" is wrong: Invalid VRF
   #
   # TEST: IPv6: redirect exception plus mtu                             [XFAIL]
   # Error: argument "red" is wrong: Invalid VRF
   #
   # ./icmp_redirect.sh: line 71: [: 1: unary operator expected
   # TEST: IPv4: routing reset                                           [FAIL]
   # Error: argument "red" is wrong: Invalid VRF
   #
   # TEST: IPv6: routing reset                                           [XFAIL]
   # Error: argument "red" is wrong: Invalid VRF
   #
   # ./icmp_redirect.sh: line 71: [: 1: unary operator expected
   # TEST: IPv4: mtu exception                                           [FAIL]
   # Error: argument "red" is wrong: Invalid VRF
   #
   # TEST: IPv6: mtu exception                                           [XFAIL]
   # Error: argument "red" is wrong: Invalid VRF
   #
   # ./icmp_redirect.sh: line 71: [: 1: unary operator expected
   # TEST: IPv4: mtu exception plus redirect                             [FAIL]
   # Error: argument "red" is wrong: Invalid VRF
   #
   # TEST: IPv6: mtu exception plus redirect                             [XFAIL]
   #
   # Tests passed:  18
   # Tests failed:  10
   # Tests xfailed:  12
   not ok 35 selftests: net: icmp_redirect.sh # exit=1

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-kernel-tests/+bug/1938964/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to