From ae3dc6b620975147d754eaa01498c3b1929e44cb Mon Sep 17 00:00:00 2001 From: Artem Osadchyi Date: Tue, 22 Sep 2015 16:52:43 +0300 Subject: [PATCH] Update indexes after adding security repo in MapR plugin The root cause of the bug is that repo with necessary package exists but indexes are not updated so the package is not available. Closes-Bug: #1498479 Change-Id: I38a0291e391057d8111ea304e4d00ad0c194e2e2 --- sahara/plugins/mapr/domain/service.py | 3 +-- sahara/plugins/mapr/resources/add_security_repos.sh | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sahara/plugins/mapr/domain/service.py b/sahara/plugins/mapr/domain/service.py index 4e286d57..149a2752 100644 --- a/sahara/plugins/mapr/domain/service.py +++ b/sahara/plugins/mapr/domain/service.py @@ -89,8 +89,7 @@ class Service(object): cmd = cluster_context.distro.create_install_cmd(packages) with instance.remote() as r: r.execute_command(cmd, run_as_root=True, - timeout=_INSTALL_PACKAGES_TIMEOUT, - raise_when_error=False) + timeout=_INSTALL_PACKAGES_TIMEOUT) def _get_packages(self, node_processes): result = [] diff --git a/sahara/plugins/mapr/resources/add_security_repos.sh b/sahara/plugins/mapr/resources/add_security_repos.sh index 78be7812..36f4e73e 100644 --- a/sahara/plugins/mapr/resources/add_security_repos.sh +++ b/sahara/plugins/mapr/resources/add_security_repos.sh @@ -4,3 +4,4 @@ cat >> /etc/apt/sources.list.d/security_repo.list << EOF deb http://security.ubuntu.com/ubuntu precise-security main deb http://security.ubuntu.com/ubuntu lucid-security main EOF +apt-get update