[ 
https://issues.apache.org/jira/browse/AMBARI-20996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16032033#comment-16032033
 ] 

Hudson commented on AMBARI-20996:
---------------------------------

FAILURE: Integrated in Jenkins build Ambari-trunk-Commit #7555 (See 
[https://builds.apache.org/job/Ambari-trunk-Commit/7555/])
AMBARI-20996 - Fallback Cluster Current Version Is Blank Which Causes (jhurley: 
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=7b0ccdae5572e4e96795f29f16dddb92c7e0128a])
* (edit) 
ambari-common/src/main/python/resource_management/libraries/functions/version.py
* (edit) ambari-server/src/test/python/TestVersion.py
* (edit) 
ambari-common/src/main/python/resource_management/libraries/functions/stack_features.py
* (edit) 
ambari-server/src/main/java/org/apache/ambari/server/serveraction/upgrades/UpdateDesiredStackAction.java
* (edit) 
ambari-server/src/main/java/org/apache/ambari/server/state/RepositoryVersionState.java


> 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
>
>         Attachments: AMBARI-20996.patch
>
>
> 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