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:
parent
eb2ff4e153
commit
35095c89b3
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user