libhugetlbfs failed with "[Errno 95] Operation not supported" on s390x zVM

Bug #1729510 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Won't Fix
Undecided
Unassigned
linux (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Steps:
1. sudo apt-get install git python-minimal -y
2. git clone --depth=1 git://kernel.ubuntu.com/ubuntu/autotest-client-tests
3. git clone --depth=1 git://kernel.ubuntu.com/ubuntu/autotest
4. rm -fr autotest/client/tests
5. ln -sf ~/autotest-client-tests autotest/client/tests
6. AUTOTEST_PATH=/home/ubuntu/autotest sudo -E autotest/client/autotest-local --verbose autotest/client/tests/libhugetlbfs/control

It will failed with the following python code piece when trying to access /proc/sys/vm/nr_hugepages:

utils.write_one_line('/proc/sys/vm/nr_hugepages', str(pages_requested))

With error message:
  [Errno 95] Operation not supported

For Xenial, the error message is:
  [Errno 524] Unknown error 524

This issue is not a regression.

Full error log:

$ AUTOTEST_PATH=/home/ubuntu/autotest sudo -E autotest/client/autotest-local --verbose autotest/client/tests/libhugetlbfs/control

07:20:37 INFO | Writing results to /home/ubuntu/autotest/client/results/default
07:20:37 DEBUG| Initializing the state engine
07:20:37 DEBUG| Persistent state client.steps now set to []
07:20:37 DEBUG| Persistent option harness now set to None
07:20:37 DEBUG| Persistent option harness_args now set to None
07:20:37 DEBUG| Selected harness: standalone
07:20:48 INFO | START ---- ---- timestamp=1509607248 localtime=Nov 02 07:20:48
07:20:48 DEBUG| Persistent state client._record_indent now set to 1
07:20:48 INFO | START libhugetlbfs libhugetlbfs timestamp=1509607248 localtime=Nov 02 07:20:48
07:20:48 DEBUG| Persistent state client._record_indent now set to 2
07:20:48 DEBUG| Persistent state client.unexpected_reboot now set to ('libhugetlbfs', 'libhugetlbfs')
07:20:49 DEBUG| Running 'apt-get install --yes --force-yes build-essential git gcc'
07:20:50 DEBUG| [stdout] Reading package lists...
07:20:50 DEBUG| [stdout] Building dependency tree...
07:20:50 DEBUG| [stdout] Reading state information...
07:20:50 DEBUG| [stdout] build-essential is already the newest version (12.4ubuntu1).
07:20:50 DEBUG| [stdout] gcc is already the newest version (4:7.2.0-1ubuntu1).
07:20:50 DEBUG| [stdout] git is already the newest version (1:2.14.1-1ubuntu4).
07:20:50 DEBUG| [stdout] The following packages were automatically installed and are no longer required:
07:20:50 DEBUG| [stdout] containerd linux-headers-4.13.0-14 linux-headers-4.13.0-14-generic
07:20:50 DEBUG| [stdout] linux-image-4.13.0-14-generic linux-image-extra-4.13.0-14-generic runc
07:20:50 DEBUG| [stdout] Use 'sudo apt autoremove' to remove them.
07:20:50 DEBUG| [stdout] 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
07:20:50 ERROR| [stderr] W: --force-yes is deprecated, use one of the options starting with --allow instead.
07:20:50 DEBUG| Running 'which gcc'
07:20:50 DEBUG| [stdout] /usr/bin/gcc
07:20:53 ERROR| Exception escaping from test:
Traceback (most recent call last):
  File "/home/ubuntu/autotest/client/shared/test.py", line 378, in _exec
    _cherry_pick_call(self.initialize, *args, **dargs)
  File "/home/ubuntu/autotest/client/shared/test.py", line 738, in _cherry_pick_call
    return func(*p_args, **p_dargs)
  File "/home/ubuntu/autotest/client/tests/libhugetlbfs/libhugetlbfs.py", line 39, in initialize
    str(pages_requested))
  File "/home/ubuntu/autotest/client/shared/utils.py", line 408, in write_one_line
    open_write_close(filename, line.rstrip('\n') + '\n')
  File "/home/ubuntu/autotest/client/shared/utils.py", line 416, in open_write_close
    f.close()
IOError: [Errno 95] Operation not supported

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: linux-image-4.13.0-16-generic 4.13.0-16.19
ProcVersionSignature: Ubuntu 4.13.0-16.19-generic 4.13.4
Uname: Linux 4.13.0-16-generic s390x
NonfreeKernelModules: zfs zunicode zavl zcommon znvpair
AlsaDevices: Error: command ['ls', '-l', '/dev/snd/'] failed with exit code 2: ls: cannot access '/dev/snd/': No such file or directory
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
ApportVersion: 2.20.7-0ubuntu3
Architecture: s390x
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord': 'arecord'
CRDA: Error: command ['iw', 'reg', 'get'] failed with exit code 1: nl80211 not found.
Date: Thu Nov 2 07:18:00 2017
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
Lspci:

Lsusb: Error: command ['lsusb'] failed with exit code 1:
PciMultimedia:

ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=C
 SHELL=/bin/bash
ProcFB: Error: [Errno 2] No such file or directory: '/proc/fb'
ProcKernelCmdLine: root=/dev/mapper/kl04vg01-kl04root crashkernel=196M BOOT_IMAGE=0
RelatedPackageVersions:
 linux-restricted-modules-4.13.0-16-generic N/A
 linux-backports-modules-4.13.0-16-generic N/A
 linux-firmware 1.169
RfKill: Error: [Errno 2] No such file or directory: 'rfkill': 'rfkill'
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :
Changed in linux (Ubuntu):
assignee: nobody → Po-Hsu Lin (cypressyew)
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1729510

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Po-Hsu Lin (cypressyew)
Changed in linux (Ubuntu):
status: Incomplete → In Progress
description: updated
Po-Hsu Lin (cypressyew)
description: updated
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

The system got HUGETLB enabled in the config:

$ cat /boot/config-4.13.0-16-generic | grep HUGETLB
CONFIG_CGROUP_HUGETLB=y
CONFIG_HUGETLBFS=y
CONFIG_HUGETLB_PAGE=y

But there is no hugepage_size in meminfo:
$ cat /proc/meminfo | grep Hugepagesize

Looks like hugepage is not supported. I will fix the detection part in our test suite.

Not sure if this is an expected behaviour in the kernel.

Changed in linux (Ubuntu):
status: In Progress → Confirmed
assignee: Po-Hsu Lin (cypressyew) → nobody
Po-Hsu Lin (cypressyew)
description: updated
Revision history for this message
Sean Feole (sfeole) wrote :

very old bug, with no action on it, marking bug as incomplete and will
close in 5 days if no update.

Changed in ubuntu-kernel-tests:
status: New → Incomplete
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

As 17.10 has reaches its EOL, and the test was blacklisted on Bionic and onward.
I will mark this task as Won't fix.

Changed in ubuntu-kernel-tests:
status: Incomplete → Won't Fix
Changed in linux (Ubuntu):
status: Incomplete → Won't Fix
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.