summaryrefslogtreecommitdiffstats
path: root/odl-pipeline/lib
diff options
context:
space:
mode:
authorNikolas Hermanns <nikolas.hermanns@ericsson.com>2017-03-31 11:05:06 +0200
committerNikolas Hermanns <nikolas.hermanns@ericsson.com>2017-03-31 11:06:08 +0200
commit1754fe0cd71c3f28aad047fd125d2e2fd6590d7d (patch)
tree8a5fc70cbcf12b1fe27f949e83759a7bb8607848 /odl-pipeline/lib
parent6e3875bb506dc99a46e06df032590c11f63ac555 (diff)
Fix permission when installing
Change-Id: I8f5546bddbf634fa05337caa7c4d48a3f4f1db6b Signed-off-by: Nikolas Hermanns <nikolas.hermanns@ericsson.com>
Diffstat (limited to 'odl-pipeline/lib')
-rw-r--r--odl-pipeline/lib/odl_reinstaller/odl_reinstaller.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/odl-pipeline/lib/odl_reinstaller/odl_reinstaller.py b/odl-pipeline/lib/odl_reinstaller/odl_reinstaller.py
index 372c200..34a6732 100644
--- a/odl-pipeline/lib/odl_reinstaller/odl_reinstaller.py
+++ b/odl-pipeline/lib/odl_reinstaller/odl_reinstaller.py
@@ -106,7 +106,8 @@ class ODLReInstaller(Service):
if '.rpm' in odl_artifact:
LOG.info('Installing %s on node %s'
% (odl_artifact, node.name))
- node.execute('yum remove -y opendaylight; yum install -y %s'
+ node.execute('yum remove -y opendaylight', as_root=True)
+ node.execute('yum install -y %s'
% (tar_tmp_path + odl_artifact), as_root=True)
node.execute('rm -rf ' + tar_tmp_path, as_root=True)
LOG.info('Starting Opendaylight on node %s' % node.name)