From 1754fe0cd71c3f28aad047fd125d2e2fd6590d7d Mon Sep 17 00:00:00 2001 From: Nikolas Hermanns Date: Fri, 31 Mar 2017 11:05:06 +0200 Subject: Fix permission when installing Change-Id: I8f5546bddbf634fa05337caa7c4d48a3f4f1db6b Signed-off-by: Nikolas Hermanns --- odl-pipeline/lib/odl_reinstaller/odl_reinstaller.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'odl-pipeline/lib/odl_reinstaller') 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) -- cgit 1.2.3-korg