TestMemoryWithSubgroups.java fails Permission denied

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • 27
    • Affects Version/s: 21, 27
    • Component/s: hotspot
    • generic
    • linux

      Test containers/docker/TestMemoryWithSubgroups.java fails on some docker images. The test log snippet shows below:

      [STDOUT]
      mkdir: cannot create directory '/sys/fs/cgroup/memory': Permission denied
      sh: /sys/fs/cgroup/memory/test/cgroup.procs: No such file or directory
      sh: /sys/fs/cgroup/cgroup.subtree_control: Permission denied
      sh: /sys/fs/cgroup/memory/cgroup.subtree_control: No such file or directory
      sh: /sys/fs/cgroup/memory/test/memory.max: No such file or directory

      The root cause is the default user inside docker image is non-root. So there is no provilege permission inside docker container. Shows as below:
      > docker run --rm jdk-internal:test-containers-docker-TestMemoryWithSubgroups-subgroup bash -c "whoami"
      qa-001

            Assignee:
            Sendao Yan
            Reporter:
            Sendao Yan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: