incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smoha...@apache.org
Subject [2/3] git commit: AMBARI-2631. Host cleanup left two packages (ambari-log4j, libconfuse). (Oleksandr Diachenko via smohanty)
Date Wed, 24 Jul 2013 02:00:20 GMT
AMBARI-2631. Host cleanup left two packages (ambari-log4j, libconfuse). (Oleksandr Diachenko
via smohanty)


Project: http://git-wip-us.apache.org/repos/asf/incubator-ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ambari/commit/ef29cb54
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/ef29cb54
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/ef29cb54

Branch: refs/heads/branch-1.2.5
Commit: ef29cb54b78442146ec6f9a11e53e2a37c14516f
Parents: 724a331
Author: Sumit Mohanty <smohanty@hortonworks.com>
Authored: Thu Jul 11 20:45:34 2013 -0700
Committer: Sumit Mohanty <smohanty@hortonworks.com>
Committed: Tue Jul 23 18:59:05 2013 -0700

----------------------------------------------------------------------
 ambari-agent/src/main/python/ambari_agent/HostCleanup.py |  2 +-
 ambari-agent/src/main/python/ambari_agent/HostInfo.py    |  2 +-
 ambari-agent/src/test/python/TestHostInfo.py             | 11 ++++++-----
 3 files changed, 8 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/ef29cb54/ambari-agent/src/main/python/ambari_agent/HostCleanup.py
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/python/ambari_agent/HostCleanup.py b/ambari-agent/src/main/python/ambari_agent/HostCleanup.py
index 0714341..975d6a0 100644
--- a/ambari-agent/src/main/python/ambari_agent/HostCleanup.py
+++ b/ambari-agent/src/main/python/ambari_agent/HostCleanup.py
@@ -35,7 +35,7 @@ logger = logging.getLogger()
 configFile = "/etc/ambari-agent/conf/ambari-agent.ini"
 
 PACKAGE_ERASE_CMD_RHEL = "yum erase -y {0}"
-PACKAGE_ERASE_CMD_SUSE = "zypper remove --quiet -n {0}"
+PACKAGE_ERASE_CMD_SUSE = "zypper -n -q remove {0}"
 USER_ERASE_CMD = "userdel -rf {0}"
 PROC_KILL_CMD = "kill -9 {0}"
 ALT_DISP_CMD = "alternatives --display {0}"

http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/ef29cb54/ambari-agent/src/main/python/ambari_agent/HostInfo.py
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/python/ambari_agent/HostInfo.py b/ambari-agent/src/main/python/ambari_agent/HostInfo.py
index 6505fd1..ac35b72 100644
--- a/ambari-agent/src/main/python/ambari_agent/HostInfo.py
+++ b/ambari-agent/src/main/python/ambari_agent/HostInfo.py
@@ -71,7 +71,7 @@ class HostInfo:
 
   # Additional packages to look for (search packages that start with these)
   ADDITIONAL_PACKAGES = [
-    "rrdtool", "rrdtool-python", "nagios", "ganglia", "gmond", "gweb"
+    "rrdtool", "rrdtool-python", "nagios", "ganglia", "gmond", "gweb", "libconfuse", "ambari-log4j"
   ]
 
   # ignores packages from repos whose names start with these strings

http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/ef29cb54/ambari-agent/src/test/python/TestHostInfo.py
----------------------------------------------------------------------
diff --git a/ambari-agent/src/test/python/TestHostInfo.py b/ambari-agent/src/test/python/TestHostInfo.py
index 7c18bb3..75eefd7 100644
--- a/ambari-agent/src/test/python/TestHostInfo.py
+++ b/ambari-agent/src/test/python/TestHostInfo.py
@@ -144,7 +144,8 @@ class TestHostInfo(TestCase):
                                                     @HDP-1.3.0
                       oracle-server-db.x86          1.3.17-2
                                                     @Oracle-11g
-                      ambari-log4j.noarch           1.2.5.9-1             @AMBARI.dev-1.x"""
+                      ambari-log4j.noarch           1.2.5.9-1             @AMBARI.dev-1.x
+                      libconfuse.x86_64             2.7-4.el6             @HDP-epel"""
     result = {}
     result['out'] = stringToRead
     result['err'] = ""
@@ -154,15 +155,15 @@ class TestHostInfo(TestCase):
     hasZy_mock.return_value = False
     installedPackages = []
     packageAnalyzer.allInstalledPackages(installedPackages)
-    self.assertEqual(8, len(installedPackages))
+    self.assertEqual(9, len(installedPackages))
     for package in installedPackages:
       self.assertTrue(package[0] in ["AMBARI.dev.noarch", "PyXML.x86_64", "oracle-server-db.x86",
                                  "Red_Hat_Enterprise_Linux-Release_Notes-6-en-US.noarch",
-                                 "hcatalog.noarch", "hesiod.x86_64", "hive.noarch", "ambari-log4j.noarch"])
+                                 "hcatalog.noarch", "hesiod.x86_64", "hive.noarch", "ambari-log4j.noarch",
"libconfuse.x86_64"])
       self.assertTrue(package[1] in ["1.x-1.el6", "0.8.4-19.el6", "3-7.el6", "3.1.0-19.el6",
-                                 "0.11.0.1.3.0.0-107.el6", "1.2.5.9-1", "1.3.17-2"])
+                                 "0.11.0.1.3.0.0-107.el6", "1.2.5.9-1", "1.3.17-2", "1.2.5.9-1",
"2.7-4.el6"])
       self.assertTrue(package[2] in ["installed", "koji-override-0", "HDP-1.3.0",
-                                 "koji-override-0/$releasever", "AMBARI.dev-1.x", "Oracle-11g"])
+                                 "koji-override-0/$releasever", "AMBARI.dev-1.x", "Oracle-11g",
"HDP-epel"])
 
     packages = packageAnalyzer.getInstalledPkgsByNames(["AMBARI", "Red_Hat_Enterprise", "hesiod",
"hive"],
                                                        installedPackages)


Mime
View raw message