Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-3611 Support Docker Containers In LinuxContainerExecutor
  3. YARN-7810

TestDockerContainerRuntime test failures due to UID lookup of a non-existent user

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.0, 2.10.0, 2.9.1, 3.0.3
    • Component/s: None
    • Labels:
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      YARN-7782 enabled the Docker runtime feature to remap the username to uid:gid form for launching Docker containers. The feature does an id -u and id -G to get the UID and GIDs. This fails with the test user, as that user doesn't actually exist on the host.

      [ERROR] testContainerLaunchWithCustomNetworks(org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.runtime.TestDockerContainerRuntime)  Time elapsed: 0.411 s  <<< ERROR!
      org.apache.hadoop.yarn.server.nodemanager.containermanager.runtime.ContainerExecutionException: 
      ExitCodeException exitCode=1: id: 'run_as_user': no such user
      
      	at org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.runtime.DockerLinuxContainerRuntime.getUserIdInfo(DockerLinuxContainerRuntime.java:711)
      	at org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.runtime.DockerLinuxContainerRuntime.launchContainer(DockerLinuxContainerRuntime.java:757)
      	at org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.runtime.TestDockerContainerRuntime.testContainerLaunchWithCustomNetworks(TestDockerContainerRuntime.java:599)

        Attachments

        1. YARN-7810-branch-3.0.001.patch
          18 kB
          Eric Yang
        2. YARN-7810-branch-2.002.patch
          16 kB
          Shane Kumpf
        3. YARN-7810-branch-2.001.patch
          18 kB
          Eric Yang
        4. YARN-7810.002.patch
          24 kB
          Shane Kumpf
        5. YARN-7810.001.patch
          24 kB
          Shane Kumpf

          Activity

            People

            • Assignee:
              shanekumpf@gmail.com Shane Kumpf
              Reporter:
              shanekumpf@gmail.com Shane Kumpf
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: