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

Hadoop QA commented on AMBARI-9812:
-----------------------------------

{color:red}-1 overall{color}.  Here are the results of testing the latest 
attachment 
  
http://issues.apache.org/jira/secure/attachment/12701067/AMBARI-9812_branch-2.0.0.patch
  against trunk revision .

    {color:green}+1 @author{color}.  The patch does not contain any @author 
tags.

    {color:red}-1 tests included{color}.  The patch doesn't appear to include 
any new or modified tests.
                        Please justify why no new tests are needed for this 
patch.
                        Also please list what manual steps were performed to 
verify this patch.

    {color:green}+1 javac{color}.  The applied patch does not increase the 
total number of javac compiler warnings.

    {color:green}+1 release audit{color}.  The applied patch does not increase 
the total number of release audit warnings.

    {color:green}+1 core tests{color}.  The patch passed unit tests in 
ambari-server.

Test results: 
https://builds.apache.org/job/Ambari-trunk-test-patch/1832//testReport/
Console output: 
https://builds.apache.org/job/Ambari-trunk-test-patch/1832//console

This message is automatically generated.

> Exception during after-INSTALL hook (HDP 2.0.6) if stack version contains 
> letters
> ---------------------------------------------------------------------------------
>
>                 Key: AMBARI-9812
>                 URL: https://issues.apache.org/jira/browse/AMBARI-9812
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server, stacks
>    Affects Versions: 2.0.0
>            Reporter: Romain Lenoel
>            Priority: Critical
>             Fix For: 2.0.0
>
>         Attachments: AMBARI-9812.patch, AMBARI-9812_branch-2.0.0.patch
>
>
> When trying to install a stack named "2.2.XXX" which simply extends HDP-2.2 
> (and so 2.0.6), the following exception is raised :
> {code}
> Traceback (most recent call last):
>   File 
> "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py",
>  line 35, in <module>
>     AfterInstallHook().execute()
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
>  line 208, in execute
>     method(env)
>   File 
> "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py",
>  line 31, in hook
>     setup_hdp_install_directory()
>   File 
> "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py",
>  line 26, in setup_hdp_install_directory
>     if params.hdp_stack_version != "" and 
> compare_versions(params.stack_version_unformatted, '2.2') >= 0:
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/version.py",
>  line 73, in compare_versions
>     return cmp(_normalize(version1, desired_segments=max_segments), 
> _normalize(version2, 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: 'XXX'
> {code}
> The exception raises because of the use of the unformatted version name in 
> the following code {code}File 
> "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py",
>  line 26, in setup_hdp_install_directory
>     if params.hdp_stack_version != "" and 
> compare_versions(params.stack_version_unformatted, '2.2') >= 0{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to