modify install error
Change-Id: I0960aa29c4d4566d395dce978c2671089d75eb09 Signed-off-by: luyao <lu.yao135@zte.com.cn>
This commit is contained in:
parent
22a3024ce4
commit
f18d6ac561
@ -1946,7 +1946,7 @@ class Controller(controller.BaseController):
|
||||
|
||||
try:
|
||||
subprocess.check_output(
|
||||
'clush -S -w %s yum install jq'
|
||||
'clush -S -w %s yum install -y jq'
|
||||
% (discover_host_meta['ip'],),
|
||||
shell=True, stderr=subprocess.STDOUT)
|
||||
except subprocess.CalledProcessError as e:
|
||||
|
@ -101,7 +101,7 @@ function get_public_ip
|
||||
{
|
||||
local_ip_list=`ifconfig | grep "inet " | grep -v "127.0.0.1" | awk -F' ' {'print $2'} `
|
||||
|
||||
local def_gw_if=`route | grep default | awk -F' ' '{print $8}'|uniq`
|
||||
local def_gw_if=`route | grep default | awk -F' ' '{print $8}'|uniq|head -1`
|
||||
public_ip=""
|
||||
if [[ -n "$def_gw_if" ]];then
|
||||
public_ip=`ifconfig "$def_gw_if" | grep 'inet ' | cut -d: -f2 | awk '{ print $2}'`
|
||||
|
@ -69,6 +69,7 @@ function all_install
|
||||
install_rpm_by_yum "daisy"
|
||||
|
||||
write_install_log "install daisy dashboard rpm"
|
||||
install_rpm_by_yum "python-django"
|
||||
install_rpm_by_daisy_yum "python-django-horizon"
|
||||
install_rpm_by_yum "daisy-dashboard"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user