You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Dmitry Lysnichenko (JIRA)" <ji...@apache.org> on 2014/05/06 19:19:34 UTC

[jira] [Created] (AMBARI-5689) In some cases automated agent setup doesn't work

Dmitry Lysnichenko created AMBARI-5689:
------------------------------------------

             Summary: In some cases automated agent setup doesn't work
                 Key: AMBARI-5689
                 URL: https://issues.apache.org/jira/browse/AMBARI-5689
             Project: Ambari
          Issue Type: Task
          Components: agent
    Affects Versions: 1.6.0
            Reporter: Dmitry Lysnichenko
            Assignee: Dmitry Lysnichenko
             Fix For: 1.7.0


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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)