Uploaded image for project: 'Migration Toolkit for Applications'
  1. Migration Toolkit for Applications
  2. MTA-3542

[CLI] Listing targets and sources fails on Windows with docker windows containers mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • MTA 8.0.0
    • MTA 7.1.0
    • MTA CLI
    • False
    • Hide

      None

      Show
      None
    • False
    • None

      Description of problem:

       Listing targets and sources fails on Windows when overriding the PODMAN_BIN env variable to point to the Docker binary and Docker is configured to use Windows Containers

      Version-Release number of selected component (if applicable): 7.1.0

      How reproducible: Always 

      Steps to Reproduce:

      1. Override the PODMAN_BIN env variable to point to the Docker binary and configure Docker to use Windows Containers
      2. Set the RUNNER_IMG Env variable to quay.io/konveyor/kantra:v0.5.0-beta.3 

      3. Run `windows-mta-cli-710-22.exe analyze --list-targets`

      Actual results:

       

      D:\redhat>windows-mta-cli-710-22.exe analyze --list-targets
      C:\Program Files\Docker\Docker\resources\bin\docker.exe run --rm --name SFheBGvgrcTnxBxX --entrypoint /usr/local/bin/mta-cli --env RUN_MODE=container quay.io/konveyor/kantra:v0.5.0-beta.3 analyze --list-targetsdocker: Error response from daemon: container 6a14a7ed4a8019d9d8f67869767b532524a10e4335f71a9d2173f1b77d592bf8 encountered an error during hcs::System::CreateProcess: /usr/local/bin/mta-cli analyze --list-targets: failure in a Windows system call: The system cannot find the file specified. (0x2)
      [Event Detail:  Provider: 00000000-0000-0000-0000-000000000000]
      [Event Detail:  Provider: 00000000-0000-0000-0000-000000000000]
      [Event Detail: onecore\vm\compute\management\orchestration\vmhostedcontainer\processmanagement.cpp(173)\vmcomputeagent.exe!00007FF67D5DFECD: (caller: 00007FF67D584C97) Exception(2) tid(3dc) 80070002 The system cannot find the file specified.
          CallContext:[\Bridge_ProcessMessage\VmHostedContainer_ExecuteProcess]
       Provider: 00000000-0000-0000-0000-000000000000].
      time="2024-07-31T16:44:50+02:00" level=error msg="container run error" error="exit status 127"
      time="2024-07-31T16:44:50+02:00" level=error msg="failed listing labels" error="docker: Error response from daemon: container 6a14a7ed4a8019d9d8f67869767b532524a10e4335f71a9d2173f1b77d592bf8 encountered an error during hcs::System::CreateProcess: /usr/local/bin/mta-cli analyze --list-targets: failure in a Windows system call: The system cannot find the file specified. (0x2)\n[Event Detail:  Provider: 00000000-0000-0000-0000-000000000000]\n[Event Detail:  Provider: 00000000-0000-0000-0000-000000000000]\n[Event Detail: onecore\\vm\\compute\\management\\orchestration\\vmhostedcontainer\\processmanagement.cpp(173)\\vmcomputeagent.exe!00007FF67D5DFECD: (caller: 00007FF67D584C97) Exception(2) tid(3dc) 80070002 The system cannot find the file specified.\r\n    CallContext:[\\Bridge_ProcessMessage\\VmHostedContainer_ExecuteProcess] \n Provider: 00000000-0000-0000-0000-000000000000].\n"
      time="2024-07-31T16:44:50+02:00" level=error msg="failed to list rule labels" error="docker: Error response from daemon: container 6a14a7ed4a8019d9d8f67869767b532524a10e4335f71a9d2173f1b77d592bf8 encountered an error during hcs::System::CreateProcess: /usr/local/bin/mta-cli analyze --list-targets: failure in a Windows system call: The system cannot find the file specified. (0x2)\n[Event Detail:  Provider: 00000000-0000-0000-0000-000000000000]\n[Event Detail:  Provider: 00000000-0000-0000-0000-000000000000]\n[Event Detail: onecore\\vm\\compute\\management\\orchestration\\vmhostedcontainer\\processmanagement.cpp(173)\\vmcomputeagent.exe!00007FF67D5DFECD: (caller: 00007FF67D584C97) Exception(2) tid(3dc) 80070002 The system cannot find the file specified.\r\n    CallContext:[\\Bridge_ProcessMessage\\VmHostedContainer_ExecuteProcess] \n Provider: 00000000-0000-0000-0000-000000000000].\n"
      Error: docker: Error response from daemon: container 6a14a7ed4a8019d9d8f67869767b532524a10e4335f71a9d2173f1b77d592bf8 encountered an error during hcs::System::CreateProcess: /usr/local/bin/mta-cli analyze --list-targets: failure in a Windows system call: The system cannot find the file specified. (0x2)
      [Event Detail:  Provider: 00000000-0000-0000-0000-000000000000]
      [Event Detail:  Provider: 00000000-0000-0000-0000-000000000000]
      [Event Detail: onecore\vm\compute\management\orchestration\vmhostedcontainer\processmanagement.cpp(173)\vmcomputeagent.exe!00007FF67D5DFECD: (caller: 00007FF67D584C97) Exception(2) tid(3dc) 80070002 The system cannot find the file specified.
          CallContext:[\Bridge_ProcessMessage\VmHostedContainer_ExecuteProcess]
       Provider: 00000000-0000-0000-0000-000000000000].
      
       

       

      Expected results:

      The commands to list sources and targets should work as expected. 

       

            rh-ee-dzager David Zager
            rh-ee-abrugaro Alejandro Brugarolas
            Alejandro Brugarolas Alejandro Brugarolas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: