ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Hurley (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-20996) Fallback Cluster Current Version Is Blank Which Causes Upgrade Errors
Date Thu, 11 May 2017 18:21:04 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-20996?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jonathan Hurley updated AMBARI-20996:
-------------------------------------
    Attachment: AMBARI-20996.patch

> 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)

Mime
View raw message