From: Nikolas Hermanns Date: Fri, 31 Mar 2017 09:05:06 +0000 (+0200) Subject: Fix permission when installing X-Git-Tag: opnfv-5.0.RC1~50 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F09%2F32909%2F1;p=sdnvpn.git Fix permission when installing Change-Id: I8f5546bddbf634fa05337caa7c4d48a3f4f1db6b Signed-off-by: Nikolas Hermanns --- 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)