Direct prepare.sh log into log file

Also remove ansible/python2-docker installation from prepare.sh as it is useless
for target node.

Change-Id: I90ae9a34f6319bb418aeabdc70405e14b48ed893
Signed-off-by: Zhijiang Hu <hu.zhijiang@zte.com.cn>
This commit is contained in:
Zhijiang Hu 2017-11-09 21:45:20 -05:00
parent eb2ff4e153
commit 35095c89b3
2 changed files with 1 additions and 4 deletions

View File

@ -30,7 +30,6 @@ echo -e "[Service]\nMountFlags=shared\nEnvironmentFile=/etc/sysconfig/docker\nEx
systemctl daemon-reload
systemctl restart docker
systemctl enable docker
yum install -y python2-docker
yum -y install ntp
systemctl enable ntpd.service
@ -47,8 +46,6 @@ chkconfig network on
systemctl disable firewalld
systemctl stop firewalld
yum -y install ansible
# multicast related
prepare_dir=$(dirname $(readlink -f "$0"))
yum install -y $prepare_dir/daisy4nfv-jasmine*.rpm

View File

@ -323,7 +323,7 @@ def _thread_bin(req, cluster_id, host, root_passwd, fp, host_name_ip_list,
'ssh -o StrictHostKeyChecking='
'no %s %s/prepare.sh %s' %
(host_ip, host_prepare_file, docker_registry_ip),
shell=True, stderr=subprocess.STDOUT)
shell=True, stdout=fp, stderr=fp)
except subprocess.CalledProcessError as e:
message = "exec prepare.sh on %s failed!", host_ip
LOG.error(message)