add trustme exec for bare node
Change-Id: I21c77d93e864b0aec9d006df94be4e17f13ef155 Signed-off-by: luyao <lu.yao135@zte.com.cn>
This commit is contained in:
parent
14d0ecba24
commit
3c8d0b2916
@ -53,7 +53,7 @@ if [ $? != 0 ]; then
|
||||
print_log "delete pub key of $ip from known_hosts failed"
|
||||
exit 1
|
||||
fi
|
||||
sshpass -p $passwd ssh -o StrictHostKeyChecking=no $ip "touch ~/.ssh/authorized_keys"
|
||||
sshpass -p $passwd ssh -o StrictHostKeyChecking=no $ip "mkdir -p ~/.ssh && touch ~/.ssh/authorized_keys"
|
||||
if [ $? != 0 ]; then
|
||||
print_log "ssh $ip to create file authorized_keys failed"
|
||||
exit 1
|
||||
|
@ -340,6 +340,8 @@ class KOLLAInstallTask(Thread):
|
||||
with open(self.log_file, "w+") as fp:
|
||||
for host in hosts_list:
|
||||
host_ip = host['mgtip']
|
||||
cmd = '/var/lib/daisy/kolla/trustme.sh %s ossdbg1' % host_ip
|
||||
daisy_cmn.subprocess_call(cmd, fp)
|
||||
config_nodes_hosts(host_name_ip_list, host_ip)
|
||||
cmd = 'sshpass -p ossdbg1 ssh -o StrictHostKeyChecking=no %s \
|
||||
"if [ ! -d %s ];then mkdir %s;fi" ' % \
|
||||
|
Loading…
Reference in New Issue
Block a user