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

[CLI] MTA CLI - failed to load provider settings open /opt/output/dependencies.yaml: no such file or directory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • MTA 7.2.0
    • MTA 7.1.0
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • None

      -

      User Story:
      Trying to do a PoC with a basic application (attached, just build it with $ mvn clean package) to show our customers how to use the migration toolkit to migrate from EAP 7 to EAP 8.
      -

      As a TAM
      I want migrate an EAP 7 based application
      so that our customer can migrate to EAP 8
      -

      Acceptance Criteria:

      The mta cli command successfully runs:

       

      $ cd SessionReplication-main
      $  mvn clean package
      $ cd ..
      $ ./darwin-mta-cli-710 analyze --input SessionReplication-main/target/counter-0.0.1-SNAPSHOT.war --output salida --source eap7 --target eap8 --overwrite --log-level 10
      /opt/homebrew/bin/podman run --rm --name IiWTypKjwEdSOLxh --entrypoint /usr/local/bin/mta-cli --env RUN_MODE=container registry.redhat.io/mta/mta-cli-rhel9:7.1.0 analyze --list-sourcesDEBU[0000] executing command                             args="run --rm --name IiWTypKjwEdSOLxh --entrypoint /usr/local/bin/mta-cli --env RUN_MODE=container registry.redhat.io/mta/mta-cli-rhel9:7.1.0 analyze --list-sources" cmd=/usr/local/bin/mta-cli container tool=/opt/homebrew/bin/podman
      /opt/homebrew/bin/podman run --rm --name TKNUGHYuXlIDIelN --entrypoint /usr/local/bin/mta-cli --env RUN_MODE=container registry.redhat.io/mta/mta-cli-rhel9:7.1.0 analyze --list-targetsDEBU[0000] executing command                             args="run --rm --name TKNUGHYuXlIDIelN --entrypoint /usr/local/bin/mta-cli --env RUN_MODE=container registry.redhat.io/mta/mta-cli-rhel9:7.1.0 analyze --list-targets" cmd=/usr/local/bin/mta-cli container tool=/opt/homebrew/bin/podman
      UNKN[0001] valid java file found                        
      NQKuUKLNGZggwQVe
      DEBU[0001] created container network                     network=NQKuUKLNGZggwQVe
      wICwWZRayvnjqwrJ
      DEBU[0001] created container volume                      volume=wICwWZRayvnjqwrJ
      INFO[0001] starting first provider                       provider=java
      /opt/homebrew/bin/podman run -d --rm --name enSuopeaokfJbxiH --network NQKuUKLNGZggwQVe -v wICwWZRayvnjqwrJ:/opt/input/source/counter-0.0.1-SNAPSHOT.war registry.redhat.io/mta/mta-java-external-provider-rhel9:7.1.0 --port=61811DEBU[0001] executing command                             args="run -d --rm --name enSuopeaokfJbxiH --network NQKuUKLNGZggwQVe -v wICwWZRayvnjqwrJ:/opt/input/source/counter-0.0.1-SNAPSHOT.war registry.redhat.io/mta/mta-java-external-provider-rhel9:7.1.0 --port=61811" cmd= container tool=/opt/homebrew/bin/podman
      ecf01c732e2268e1fd15ef5afe8c9eedeb6d478cda02e09cccf9f703f014752c
      DEBU[0001] created directory for provider settings       dir=/var/folders/3m/lfp14jj910j9dkskdynkmh5h0000gn/T/analyze-config-4072790138
      UNKN[0001] provider options config not found, using default options 
      INFO[0001] running dependency retrieval during analysis 
      INFO[0001] running source code analysis                  args="--provider-settings=/opt/input/config/settings.json --output-file=/opt/output/output.yaml --context-lines=100 --rules=/opt/rulesets/ --verbose=10 --label-selector=((konveyor.io/target=eap8) && (konveyor.io/source=eap7)) || (discovery) --dep-label-selector=(!konveyor.io/dep-source=open-source) --dep-output-file=/opt/output/dependencies.yaml" input=/Users/emunoz/Documents/TAM/Cuentas/keralty/poc-eap7-eap8/SessionReplication-main/target/counter-0.0.1-SNAPSHOT.war log=/Users/emunoz/Documents/TAM/Cuentas/keralty/poc-eap7-eap8/salida/analysis.log output=/Users/emunoz/Documents/TAM/Cuentas/keralty/poc-eap7-eap8/salida volumes="{\"/Users/emunoz/Documents/TAM/Cuentas/keralty/poc-eap7-eap8/salida\":\"/opt/output\",\"/var/folders/3m/lfp14jj910j9dkskdynkmh5h0000gn/T/analyze-config-4072790138\":\"/opt/input/config\",\"wICwWZRayvnjqwrJ\":\"/opt/input/source/counter-0.0.1-SNAPSHOT.war\"}"
      INFO[0001] generating analysis log in file               file=/Users/emunoz/Documents/TAM/Cuentas/keralty/poc-eap7-eap8/salida/analysis.log
      /opt/homebrew/bin/podman run --rm --name MRsjxjKDZkICdECr --network container:enSuopeaokfJbxiH --entrypoint /usr/local/bin/konveyor-analyzer -v wICwWZRayvnjqwrJ:/opt/input/source/counter-0.0.1-SNAPSHOT.war -v /Users/emunoz/Documents/TAM/Cuentas/keralty/poc-eap7-eap8/salida:/opt/output -v /var/folders/3m/lfp14jj910j9dkskdynkmh5h0000gn/T/analyze-config-4072790138:/opt/input/config registry.redhat.io/mta/mta-cli-rhel9:7.1.0 --provider-settings=/opt/input/config/settings.json --output-file=/opt/output/output.yaml --context-lines=100 --rules=/opt/rulesets/ --verbose=10 --label-selector=((konveyor.io/target=eap8) && (konveyor.io/source=eap7)) || (discovery) --dep-label-selector=(!konveyor.io/dep-source=open-source) --dep-output-file=/opt/output/dependencies.yamlDEBU[0001] executing command                             args="run --rm --name MRsjxjKDZkICdECr --network container:enSuopeaokfJbxiH --entrypoint /usr/local/bin/konveyor-analyzer -v wICwWZRayvnjqwrJ:/opt/input/source/counter-0.0.1-SNAPSHOT.war -v /Users/emunoz/Documents/TAM/Cuentas/keralty/poc-eap7-eap8/salida:/opt/output -v /var/folders/3m/lfp14jj910j9dkskdynkmh5h0000gn/T/analyze-config-4072790138:/opt/input/config registry.redhat.io/mta/mta-cli-rhel9:7.1.0 --provider-settings=/opt/input/config/settings.json --output-file=/opt/output/output.yaml --context-lines=100 --rules=/opt/rulesets/ --verbose=10 --label-selector=((konveyor.io/target=eap8) && (konveyor.io/source=eap7)) || (discovery) --dep-label-selector=(!konveyor.io/dep-source=open-source) --dep-output-file=/opt/output/dependencies.yaml" cmd=/usr/local/bin/konveyor-analyzer container tool=/opt/homebrew/bin/podman
      DEBU[0107] getting provider container logs               container=enSuopeaokfJbxiH
      INFO[0107] 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=counter-0.0.1-SNAPSHOT.war --deps-output-list=/opt/output/dependencies.yaml && cp -r /usr/local/static-report /opt/output" output=/Users/emunoz/Documents/TAM/Cuentas/keralty/poc-eap7-eap8/salida
      /opt/homebrew/bin/podman run --rm --name yhUeBcAhwZXppgKU --entrypoint /bin/sh -v /Users/emunoz/Documents/TAM/Cuentas/keralty/poc-eap7-eap8/salida:/opt/output -v /Users/emunoz/Documents/TAM/Cuentas/keralty/poc-eap7-eap8/SessionReplication-main/target/counter-0.0.1-SNAPSHOT.war:/opt/input/source/counter-0.0.1-SNAPSHOT.war/counter-0.0.1-SNAPSHOT.war registry.redhat.io/mta/mta-cli-rhel9:7.1.0 -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=counter-0.0.1-SNAPSHOT.war --deps-output-list=/opt/output/dependencies.yaml && cp -r /usr/local/static-report /opt/outputDEBU[0107] executing command                             args="run --rm --name yhUeBcAhwZXppgKU --entrypoint /bin/sh -v /Users/emunoz/Documents/TAM/Cuentas/keralty/poc-eap7-eap8/salida:/opt/output -v /Users/emunoz/Documents/TAM/Cuentas/keralty/poc-eap7-eap8/SessionReplication-main/target/counter-0.0.1-SNAPSHOT.war:/opt/input/source/counter-0.0.1-SNAPSHOT.war/counter-0.0.1-SNAPSHOT.war registry.redhat.io/mta/mta-cli-rhel9:7.1.0 -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=counter-0.0.1-SNAPSHOT.war --deps-output-list=/opt/output/dependencies.yaml && cp -r /usr/local/static-report /opt/output" cmd=/bin/sh container tool=/opt/homebrew/bin/podman
      2024/09/12 22:56:48 failed to load provider settings open /opt/output/dependencies.yaml: no such file or directory
      ERRO[0107] container run error                           error="exit status 1"
      ERRO[0107] failed to generate static report              error="2024/09/12 22:56:48 failed to load provider settings open /opt/output/dependencies.yaml: no such file or directory\n"
      DEBU[0107] removing temp dirs                           
      DEBU[0107] stopping container                            container=enSuopeaokfJbxiH
      DEBU[0108] removing container network                    network=NQKuUKLNGZggwQVe
      DEBU[0108] removing created volume                       volume=wICwWZRayvnjqwrJ
      Error: 2024/09/12 22:56:48 failed to load provider settings open /opt/output/dependencies.yaml: no such file or directory 

              emcmulla@redhat.com Emily McMullan
              emunoz@redhat.com Elkin Dario Munoz Duarte
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: