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

[CLI] The issue is empty running analysis using Python application

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • MTA 7.1.1
    • MTA 7.1.0
    • MTA CLI
    • None
    • 5
    • False
    • Hide

      None

      Show
      None
    • False
    • No

      Description of problem:

      Application used analyzer-lsp/examples/python

      Python provider, using cmd:  ./kantra analyze --input=/path/to/analyzer-lsp/examples/python --output=~/output_dir_2 --provider python --rules /path/to/python_rules/python-rules.yaml and observed that no issue is triggered.

      python-rules.yaml

      output.yaml

      analysis.log

      provider.log

       

      INFO[0000] running windup shim                           args="convert --outputdir=/opt/shimoutput /opt/xmlrules" output="/home/karishmapunwatkar/~/output_dir_2" volumes="{\"/tmp/transform-output-2096420862\":\"/opt/shimoutput\"}"
      INFO[0000] generating shim log in file                   file="/home/karishmapunwatkar/~/output_dir_2/shim.log"
      /usr/bin/podman run --rm --name lQjfgwOWoTTbWAew --entrypoint /usr/local/bin/windup-shim -v /tmp/transform-output-2096420862:/opt/shimoutput:z quay.io/konveyor/kantra:latest convert --outputdir=/opt/shimoutput /opt/xmlrules/etc/cni/net.d/jYBmuOClVWAuBNqV.conflist
      ewRQbQiiizNgrnAj
      INFO[0000] starting first provider                       provider=python
      /usr/bin/podman run -d --rm --name BXjhxYAPNQtObzbT --network jYBmuOClVWAuBNqV -v ewRQbQiiizNgrnAj:/opt/input/source:z quay.io/konveyor/generic-external-provider:latest --port=465110f681906e7302570beaa4d339322afd43068e30c96ba6f809dc426bb15b91226
      INFO[0000] creating temp ruleset                         name=custom-ruleset path=/tmp/analyze-rules-1710784317
      INFO[0000] running source code analysis                  args="--provider-settings=/opt/input/config/settings.json --output-file=/opt/output/output.yaml --context-lines=100 --rules=/opt/input/rules/ --verbose=4" input=/home/karishmapunwatkar/anlyzer_lsp/analyzer-lsp/examples/python log="/home/karishmapunwatkar/~/output_dir_2/analysis.log" output="/home/karishmapunwatkar/~/output_dir_2" volumes="{\"/home/karishmapunwatkar/~/output_dir_2\":\"/opt/output\",\"/tmp/analyze-config-158488793\":\"/opt/input/config\",\"/tmp/analyze-rules-1710784317\":\"/opt/input/rules/analyze-rules-1710784317\",\"/tmp/m2-repo-17016621\":\"/root/.m2\",\"/tmp/transform-output-2096420862\":\"/opt/rulesets/convert\",\"ewRQbQiiizNgrnAj\":\"/opt/input/source\"}"
      INFO[0000] generating analysis log in file               file="/home/karishmapunwatkar/~/output_dir_2/analysis.log"
      /usr/bin/podman run --rm --name JMTZdKCCpmtbwmEn --network container:BXjhxYAPNQtObzbT --entrypoint /usr/local/bin/konveyor-analyzer -v ewRQbQiiizNgrnAj:/opt/input/source:z -v /home/karishmapunwatkar/~/output_dir_2:/opt/output:z -v /tmp/transform-output-2096420862:/opt/rulesets/convert:z -v /tmp/m2-repo-17016621:/root/.m2:z -v /tmp/analyze-config-158488793:/opt/input/config:z -v /tmp/analyze-rules-1710784317:/opt/input/rules/analyze-rules-1710784317:z quay.io/konveyor/kantra:latest --provider-settings=/opt/input/config/settings.json --output-file=/opt/output/output.yaml --context-lines=100 --rules=/opt/input/rules/ --verbose=4INFO[0007] generating static report                      args="/usr/local/bin/js-bundle-generator --output-path=/usr/local/static-report/output.js --analysis-output-list=/opt/output/output.yaml --application-name-list=python && cp -r /usr/local/static-report /opt/output" output="/home/karishmapunwatkar/~/output_dir_2"
      /usr/bin/podman run --rm --name rXqCOpJAFRZdmCTR --entrypoint /bin/sh -v /home/karishmapunwatkar/anlyzer_lsp/analyzer-lsp/examples/python:/opt/input/source:z -v /home/karishmapunwatkar/~/output_dir_2:/opt/output:z quay.io/konveyor/kantra:latest -c /usr/local/bin/js-bundle-generator --output-path=/usr/local/static-report/output.js --analysis-output-list=/opt/output/output.yaml --application-name-list=python && cp -r /usr/local/static-report /opt/output2024/06/27 14:32:41 dependency output path not provided, only parsing analysis output
      INFO[0007] Static report created. Access it at this URL:  URL="file:/home/karishmapunwatkar/~/output_dir_2/static-report/index.html"
       
      
      

        1. analysis.log
          0.3 kB
        2. output.yaml
          1.0 kB
        3. provider.log
          1 kB
        4. python-rules.yaml
          0.4 kB
        5. rules.yaml
          0.6 kB
        6. Screenshot from 2024-06-27 15-47-21.png
          Screenshot from 2024-06-27 15-47-21.png
          48 kB
        7. Screenshot from 2024-08-16 20-38-24.png
          Screenshot from 2024-08-16 20-38-24.png
          75 kB

              emcmulla@redhat.com Emily McMullan
              rhn-support-kpunwatk Karishma Punwatkar
              Karishma Punwatkar Karishma Punwatkar
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: