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

[CLI] Analysis failes with error 125 on D/S

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Blocker Blocker
    • MTA 7.1.0
    • MTA 7.1.0
    • MTA CLI
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • No

      Description of problem:

      Can't run analysis using mta-cli, fails with error `unable to retrieve auth token`, or if explicit auth was performed - fails with error `manifest unknown`

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

      CLI: 7.1.0-9, MTA: 7.1.0-19

      How reproducible:

      100%

      Steps to Reproduce:
      1. Make sure VPN is enabled
      2. Download binary with the python tool
      3. Run downloaded binary to perform analysis
      4. Try to authenticate at registry.redhat.io
      5. Re-run analysis command

      Actual results:

      It fails with error `unable to retrieve auth token`, or if explicit auth was performed - fails with error `manifest unknown`

      Expected results:

      Analysis should be performed successfuly.

      Additional info:

      igor@ibragins:~$ podman images
      REPOSITORY                                                       TAG         IMAGE ID      CREATED      SIZE
      registry.redhat.io/mta/mta-cli-rhel9                             7.1.        38c754d2d696  4 days ago   1.51 GB
      registry-proxy.engineering.redhat.com/rh-osbs/mta-mta-cli-rhel9  7.1.0-9     38c754d2d696  4 days ago   1.51 GB
      quay.io/konveyor/java-external-provider                          latest      d5a33b2a7f58  5 days ago   1.05 GB
      quay.io/konveyor/kantra                                          latest      efcf56cf1767  9 days ago   1.69 GB
      registry.redhat.io/mta/mta-cli-rhel9                             7.0.3       4b710aa66552  6 weeks ago  1.07 GB
      registry-proxy.engineering.redhat.com/rh-osbs/mta-mta-cli-rhel9  7.0.3-16    2acd66ab0dfa  6 weeks ago  1.06 GB
      
      igor@ibragins:~$ mta-cli analyze --overwrite --input /home/igor/github.com/kantra-cli-tests/data/applications/jee-example-app-1.0.0.ear --output /home/igor/MTA/reports --source weblogic --target eap7
      /usr/bin/podman run --rm --name zMYIhTCIrMGYMVvd --entrypoint /usr/local/bin/mta-cli --env RUN_MODE=container registry.redhat.io/mta/mta-cli-rhel9:7.1.0 analyze --list-sourcesTrying to pull registry.redhat.io/mta/mta-cli-rhel9:7.1.0...
      Error: initializing source docker://registry.redhat.io/mta/mta-cli-rhel9:7.1.0: unable to retrieve auth token: invalid username/password: unauthorized: Please login to the Red Hat Registry using your Customer Portal credentials. Further instructions can be found here: https://access.redhat.com/RegistryAuthentication
      ERRO[0000] container run error                           error="exit status 125"
      ERRO[0000] failed listing labels                         error="Trying to pull registry.redhat.io/mta/mta-cli-rhel9:7.1.0...\nError: initializing source docker://registry.redhat.io/mta/mta-cli-rhel9:7.1.0: unable to retrieve auth token: invalid username/password: unauthorized: Please login to the Red Hat Registry using your Customer Portal credentials. Further instructions can be found here: https://access.redhat.com/RegistryAuthentication\n"
      ERRO[0000] failed to validate flags                      error="unknown source: \"weblogic\""
      Error: unknown source: "weblogic"
      igor@ibragins:~$ podman login registry.redhat.io
      Username: ibragins@redhat.com
      Password: 
      Login Succeeded!
      igor@ibragins:~$ mta-cli analyze --overwrite --input /home/igor/github.com/kantra-cli-tests/data/applications/jee-example-app-1.0.0.ear --output /home/igor/MTA/reports --source weblogic --target eap7
      /usr/bin/podman run --rm --name RZYCzxpYBFnDYnGp --entrypoint /usr/local/bin/mta-cli --env RUN_MODE=container registry.redhat.io/mta/mta-cli-rhel9:7.1.0 analyze --list-sourcesTrying to pull registry.redhat.io/mta/mta-cli-rhel9:7.1.0...
      Error: initializing source docker://registry.redhat.io/mta/mta-cli-rhel9:7.1.0: reading manifest 7.1.0 in registry.redhat.io/mta/mta-cli-rhel9: manifest unknown
      ERRO[0000] container run error                           error="exit status 125"
      ERRO[0000] failed listing labels                         error="Trying to pull registry.redhat.io/mta/mta-cli-rhel9:7.1.0...\nError: initializing source docker://registry.redhat.io/mta/mta-cli-rhel9:7.1.0: reading manifest 7.1.0 in registry.redhat.io/mta/mta-cli-rhel9: manifest unknown\n"
      ERRO[0000] failed to validate flags                      error="unknown source: \"weblogic\""
      Error: unknown source: "weblogic"
      

              emcmulla@redhat.com Emily McMullan
              ibragins@redhat.com Igor Braginsky
              Igor Braginsky Igor Braginsky
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: