Uploaded image for project: 'Migration Toolkit for Applications'
  1. Migration Toolkit for Applications
  2. MTA-3239 [CLI] .NET analysis fails on Windows when using the --rules argument
  3. MTA-3391

[QE] Verify for ([CLI] .NET analysis fails on Windows when using the --rules argument )

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • MTA 7.1.1
    • None
    • QE-Task
    • None
    • 2
    • False
    • Hide

      None

      Show
      None
    • False

      Description of problem:

      In order to analyze a .NET application on Windows, the PODMAN_BIN variable should be set to the docker binary path and Docker should be in "Windows containers mode".

      When one of these prequisites are not satisfied, the error messages are not user-friendly and they can lead to confusions.

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

      How reproducible: Always  

      Steps to Reproduce:
      1. Run the following command: windows-mta-cli.exe analyze --input ./nerd-dinner --output ./report --overwrite --rules ./rules

      The rules used are the ones added in https://github.com/konveyor/rulesets/pull/76/files

      Actual results:

      time="2024-07-08T16:30:33+02:00" level=debug msg="created directory for XML rules" dir="C:\\Users\\Brugui\\AppData\\Local\\Temp\\transform-rules-1386297626"
      time="2024-07-08T16:30:33+02:00" level=debug msg="created directory for converted XML rules" dir="C:\\Users\\Brugui\\AppData\\Local\\Temp\\transform-output-3442368665"
      time="2024-07-08T16:30:33+02:00" level=info msg="running windup shim" args="convert --outputdir=/opt/shimoutput /opt/xmlrules" output="D:\\cli\\report" volumes="{\"./rules\":\"/opt/xmlrules/rules\",\"C:\\\\Users\\\\Brugui\\\\AppData\\\\Local\\\\Temp\\\\transform-output-3442368665\":\"/opt/shimoutput\"}"
      time="2024-07-08T16:30:33+02:00" level=info msg="generating shim log in file" file="D:\\cli\\report\\shim.log"
      C:\Program Files\RedHat\Podman\podman.exe run --rm --name DbwTikXcqNBwCviV --entrypoint /usr/local/bin/windup-shim -v C:\Users\Brugui\AppData\Local\Temp\transform-output-3442368665:/opt/shimoutput -v rules:/opt/xmlrules/rules registry.redhat.io/mta/mta-cli-rhel9:7.1.0 convert --outputdir=/opt/shimoutput /opt/xmlrulestime="2024-07-08T16:30:33+02:00" level=debug msg="executing command" args="run --rm --name DbwTikXcqNBwCviV --entrypoint /usr/local/bin/windup-shim -v C:\\Users\\Brugui\\AppData\\Local\\Temp\\transform-output-3442368665:/opt/shimoutput -v rules:/opt/xmlrules/rules registry.redhat.io/mta/mta-cli-rhel9:7.1.0 convert --outputdir=/opt/shimoutput /opt/xmlrules" cmd=/usr/local/bin/windup-shim container tool="C:\\Program Files\\RedHat\\Podman\\podman.exe"
      time="2024-07-08T16:30:35+02:00" level=unknown msg="Got component" component language="[{\"Name\":\"C#\",\"Aliases\":[\"csharp\",\"dotnet\",\".NET\"],\"Weight\":46,\"Frameworks\":[\"v4.5\"],\"Tools\":[],\"CanBeComponent\":true,\"CanBeContainerComponent\":false},{\"Name\":\"JavaScript\",\"Aliases\":[\"js\",\"node\",\"nodejs\",\"TypeScript\"],\"Weight\":51,\"Frameworks\":[],\"Tools\":[],\"CanBeComponent\":true,\"CanBeContainerComponent\":false},{\"Name\":\"Smalltalk\",\"Aliases\":[\"squeak\"],\"Weight\":46,\"Frameworks\":[],\"Tools\":[],\"CanBeComponent\":false,\"CanBeContainerComponent\":false}]" path="D:\\cli\\nerd-dinner\\mvc4\\NerdDinner\\"
      Error: failed to find driver or plugin "nat"
      Error: exit status 125

      The same happens when PODMAN_BIN points to a docker exe
      **

      D:\cli>windows-mta-cli.exe analyze --input nerd-dinner --output ./report --overwrite --log-level 10 --rules ./rules
      time="2024-07-08T17:36:17+02:00" level=debug msg="created directory for XML rules" dir="C:\\Users\\Brugui\\AppData\\Local\\Temp\\transform-rules-1942094290"
      time="2024-07-08T17:36:17+02:00" level=debug msg="created directory for converted XML rules" dir="C:\\Users\\Brugui\\AppData\\Local\\Temp\\transform-output-879429949"
      time="2024-07-08T17:36:17+02:00" level=info msg="running windup shim" args="convert --outputdir=/opt/shimoutput /opt/xmlrules" output="D:\\cli\\report" volumes="{\"./rules\":\"/opt/xmlrules/rules\",\"C:\\\\Users\\\\Brugui\\\\AppData\\\\Local\\\\Temp\\\\transform-output-879429949\":\"/opt/shimoutput\"}"
      time="2024-07-08T17:36:17+02:00" level=info msg="generating shim log in file" file="D:\\cli\\report\\shim.log"
      C:\Program Files\Docker\Docker\resources\bin\docker.exe run --rm --name HHZvnPvrbqpBCMGK --entrypoint /usr/local/bin/windup-shim -v C:\Users\Brugui\AppData\Local\Temp\transform-output-879429949:/opt/shimoutput -v rules:/opt/xmlrules/rules registry.redhat.io/mta/mta-cli-rhel9:7.1.0 convert --outputdir=/opt/shimoutput /opt/xmlrulestime="2024-07-08T17:36:17+02:00" level=debug msg="executing command" args="run --rm --name HHZvnPvrbqpBCMGK --entrypoint /usr/local/bin/windup-shim -v C:\\Users\\Brugui\\AppData\\Local\\Temp\\transform-output-879429949:/opt/shimoutput -v rules:/opt/xmlrules/rules registry.redhat.io/mta/mta-cli-rhel9:7.1.0 convert --outputdir=/opt/shimoutput /opt/xmlrules" cmd=/usr/local/bin/windup-shim container tool="C:\\Program Files\\Docker\\Docker\\resources\\bin\\docker.exe"
      time="2024-07-08T17:36:18+02:00" level=unknown msg="Got component" component language="[{\"Name\":\"C#\",\"Aliases\":[\"csharp\",\"dotnet\",\".NET\"],\"Weight\":46,\"Frameworks\":[\"v4.5\"],\"Tools\":[],\"CanBeComponent\":true,\"CanBeContainerComponent\":false},{\"Name\":\"JavaScript\",\"Aliases\":[\"js\",\"node\",\"nodejs\",\"TypeScript\"],\"Weight\":51,\"Frameworks\":[],\"Tools\":[],\"CanBeComponent\":true,\"CanBeContainerComponent\":false},{\"Name\":\"Smalltalk\",\"Aliases\":[\"squeak\"],\"Weight\":46,\"Frameworks\":[],\"Tools\":[],\"CanBeComponent\":false,\"CanBeContainerComponent\":false}]" path="D:\\cli\\nerd-dinner\\mvc4\\NerdDinner\\"
      Error response from daemon: failed to find driver or plugin "nat"
      Error: exit status 1

       

      Expected results:

      The errors should be clear to the user for both prequisites

              ibragins@redhat.com Igor Braginsky
              istein@redhat.com Ilanit Stein
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: