Jonathan Hurley created AMBARI-20996:
----------------------------------------

             Summary: Fallback Cluster Current Version Is Blank Which Causes 
Upgrade Errors
                 Key: AMBARI-20996
                 URL: https://issues.apache.org/jira/browse/AMBARI-20996
             Project: Ambari
          Issue Type: Bug
          Components: ambari-server
    Affects Versions: trunk
            Reporter: Jonathan Hurley
            Assignee: Jonathan Hurley
            Priority: Critical
             Fix For: trunk


Without a "current cluster version", the value being passed into python is 
currently {{None}}. This will be changed as we begin passing down service 
repository versions instead.

However, in the meantime, there are upgrade failures when this value is empty 
since the fallback code is trying to use "HDP-2.5" and is not able to normalize 
this out to "2.5.0.0":

{code}
File 
"/var/lib/ambari-agent/cache/common-services/STORM/0.9.1/package/scripts/params_linux.py",
 line 77, in <module>

    stack_supports_ranger_kerberos = 
check_stack_feature(StackFeature.RANGER_KERBEROS_SUPPORT, 
version_for_stack_feature_checks)

  File 
"/usr/lib/python2.6/site-packages/resource_management/libraries/functions/stack_features.py",
 line 57, in check_stack_feature

    if compare_versions(stack_version, min_version, format = True) < 0:

  File 
"/usr/lib/python2.6/site-packages/resource_management/libraries/functions/version.py",
 line 77, in compare_versions

    return cmp(_normalize(v1, desired_segments=max_segments), _normalize(v2, 
desired_segments=max_segments))

  File 
"/usr/lib/python2.6/site-packages/resource_management/libraries/functions/version.py",
 line 34, in _normalize

    return [int(x) for x in v_list]

ValueError: invalid literal for int() with base 10: ''
{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to