ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-9106) RMF checks existence of hbase_2_2_* packages incorrectly
Date Tue, 13 Jan 2015 21:02:35 GMT

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

Hudson commented on AMBARI-9106:
--------------------------------

SUCCESS: Integrated in Ambari-trunk-Commit-docker #743 (See [https://builds.apache.org/job/Ambari-trunk-Commit-docker/743/])
AMBARI-9106. RMF checks existence of hbase_2_2_* packages incorrectly (dlysnichenko) (dlysnichenko:
http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=b3ff359ad3ac00cbc045fb1d8fe2b9c3955ffd81)
* ambari-common/src/main/python/resource_management/core/providers/package/yumrpm.py
* ambari-common/src/main/python/resource_management/core/providers/package/zypper.py
* ambari-agent/src/test/python/resource_management/TestPackageResource.py
* ambari-common/src/main/python/resource_management/core/providers/package/apt.py


> RMF checks existence of hbase_2_2_* packages incorrectly
> --------------------------------------------------------
>
>                 Key: AMBARI-9106
>                 URL: https://issues.apache.org/jira/browse/AMBARI-9106
>             Project: Ambari
>          Issue Type: Task
>          Components: ambari-server
>    Affects Versions: 2.0.0
>            Reporter: Dmitry Lysnichenko
>            Assignee: Dmitry Lysnichenko
>             Fix For: 2.0.0
>
>         Attachments: AMBARI-9106.patch
>
>
> STR:
> 1) Install multinode cluster
> 2) Imagine that cluster deployment fails on  node host1 (strictly at the same time when
some package like hbase_2_2_* is installed on any other node host2)
> 3) Now  ambari-server sends CANCEL commands to all hosts, and agent on host2 kills yum
process during installation. As a result, some hbase_2_2_* packages are installed and some
are not.
> 3) Retry cluster installation once more.
> 4) On host2, full package set for hbase_2_2_* is never installed:
> {code}
> [root@112 data]# grep -ri hbase_2_2 output-* 
> output-25.txt:2014-12-22 17:49:04,598 - Package['hbase_2_2_*'] {}
> output-25.txt:2014-12-22 17:49:05,137 - Skipping installing existent package hbase_2_2_*
> output-26.txt:2014-12-22 17:49:09,322 - Package['hbase_2_2_*'] {}
> output-26.txt:2014-12-22 17:49:09,816 - Skipping installing existent package hbase_2_2_*
> output-98.txt:2014-12-22 17:56:07,910 - Package['hbase_2_2_*'] {}
> output-98.txt:2014-12-22 17:56:08,419 - Skipping installing existent package hbase_2_2_*
> [root@112 data]# rpm -qa hbase_2_2_*
> hbase_2_2_0_0_2041-doc-0.98.4.2.2.0.0-2041.el6.noarch
> {code}
> while full package set for hbase_2_2_* is
> {code}
> [root@111 ~]# rpm -qa |grep hbase
> ranger_2_2_0_0_2041-hbase-plugin-0.4.0.2.2.0.0-2041.el6.x86_64
> hbase_2_2_0_0_2041-regionserver-0.98.4.2.2.0.0-2041.el6.noarch
> hbase_2_2_0_0_2041-0.98.4.2.2.0.0-2041.el6.noarch
> hbase_2_2_0_0_2041-thrift-0.98.4.2.2.0.0-2041.el6.noarch
> hbase_2_2_0_0_2041-rest-0.98.4.2.2.0.0-2041.el6.noarch
> hbase_2_2_0_0_2041-doc-0.98.4.2.2.0.0-2041.el6.noarch
> hbase_2_2_0_0_2041-thrift2-0.98.4.2.2.0.0-2041.el6.noarch
> hbase_2_2_0_0_2041-master-0.98.4.2.2.0.0-2041.el6.noarch
> {code}
> The issue here is that RMF implementation of  package  existence checks does not work
correctly with globs like "hbase_2_2_*". If at least one package that matches glob is installed,
it believes that all packages are installed. 
> Probably the same issue with Ubuntu (did not check)
> I've assigned this jira to myself since my patch will simplify fixing this issue.



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

Mime
View raw message