From 7a180df8683f8694dfbbc7980ba356e337a84cab Mon Sep 17 00:00:00 2001 From: Guo Ruijing Date: Tue, 19 Jul 2016 06:46:59 +0800 Subject: Minor fixes in fuel plugin 1. update yardstick tasks 2. fix typo 3. update comments in pre_build_hook Change-Id: Ib7fc87838d121dc35fb84220fbb0a9909c6592e1 Signed-off-by: Guo Ruijing --- fuel-plugin/deployment_scripts/install.sh | 6 +++++- fuel-plugin/deployment_tasks.yaml | 2 +- fuel-plugin/fuel_ping.yaml | 2 +- fuel-plugin/pre_build_hook | 4 +++- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/fuel-plugin/deployment_scripts/install.sh b/fuel-plugin/deployment_scripts/install.sh index 84ef96c48..76ef433c2 100755 --- a/fuel-plugin/deployment_scripts/install.sh +++ b/fuel-plugin/deployment_scripts/install.sh @@ -8,7 +8,11 @@ VAR_HOME=/var/lib/yardstick rm -rf $BIN_HOME; mkdir -p $BIN_HOME rm -rf $VAR_HOME; mkdir -p $VAR_HOME -sudo apt-get install -y python-dev python-pip libffi-dev libssl-dev libxml2-dev libxslt1-dev +apt-get install -y python-dev python-pip libffi-dev libssl-dev libxml2-dev libxslt1-dev + +#apt-get install python-virtualenv cannot work +#use pip to work around the issue + pip install virtualenv # create python virtual env diff --git a/fuel-plugin/deployment_tasks.yaml b/fuel-plugin/deployment_tasks.yaml index 90fae7192..6d53198b7 100644 --- a/fuel-plugin/deployment_tasks.yaml +++ b/fuel-plugin/deployment_tasks.yaml @@ -3,7 +3,7 @@ role: [yardstick] requires: [deploy_start] required_for: [deploy_end] - tasks: [hiera, setup_repositories, fuel_pkgs, globals, tools, logging, netconfig, yardstick-install] + tasks: [hiera, setup_repositories, fuel_pkgs, globals, tools, logging, netconfig] parameters: strategy: type: parallel diff --git a/fuel-plugin/fuel_ping.yaml b/fuel-plugin/fuel_ping.yaml index e367e98d1..550dfbc42 100644 --- a/fuel-plugin/fuel_ping.yaml +++ b/fuel-plugin/fuel_ping.yaml @@ -40,4 +40,4 @@ context: networks: test: - cidr: '192.169.111.0/24' + cidr: '192.168.111.0/24' diff --git a/fuel-plugin/pre_build_hook b/fuel-plugin/pre_build_hook index 9446d2a1a..9c0a40e65 100755 --- a/fuel-plugin/pre_build_hook +++ b/fuel-plugin/pre_build_hook @@ -10,7 +10,9 @@ function build_pkg { ubuntu) rm -rf ${DIR}/repositories/ubuntu; mkdir -p ${DIR}/repositories/ubuntu - # don't support online installation now + # fixme: don't support offline installation now since pip in + # deployment_scripts/install.sh needs to access to internet + # # cd ${DIR}/repositories/ubuntu # Use aptititude; apt-get -d will skip download if package is already installed # sudo apt-get install aptitude -y -- cgit 1.2.3-korg