Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-5689

In some cases automated agent setup doesn't work

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.6.0
    • 1.6.1
    • ambari-agent
    • None

    Description

      setupAgent.py will fail in such test scenarios:

      • In case if script will be started without parameters - script will failed without reasonable error output.
      • In case if script will be started without passed project version string and repository in the system will contain at least one available version of agent.
        For example:
        function call retcode = getOptimalVersion("") will always return exitcode 1, as any founded in repository version will not match blank string
      • In case if script will be started without passed project version.
        Error output will fail, because of projectVersion variable will contain "None" type, not string.
      • In case if repository will contain several versions of packages with versions like "1.0.1, 1.0.3-SNAPSHOT, 1.0.5" getAvaliableAgentPackageVersions and findNearestAgentPackageVersion functions will return wrong result "1.0.1, 1.0.3" and version 1.0.5 will be missed.

      Attachments

        Issue Links

          Activity

            People

              dmitriusan Dmitry Lysnichenko
              dmitriusan Dmitry Lysnichenko
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: