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

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.1.0, 2.10.0, 2.9.2, 3.0.3
    • None
    • 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-2.002.patch
          16 kB
          Shane Kumpf
        2. YARN-7810-branch-2.001.patch
          18 kB
          Eric Yang
        3. YARN-7810-branch-3.0.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

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

            Dates

              Created:
              Updated:
              Resolved: