diff options
author | JingLu5 <lvjing5@huawei.com> | 2016-09-02 08:28:00 +0800 |
---|---|---|
committer | JingLu5 <lvjing5@huawei.com> | 2016-09-02 08:28:00 +0800 |
commit | 8ce629194f3ce9e37e97456ad24bd14f3ffd7a68 (patch) | |
tree | 24edb616eb61aee86bc4349b55b4d2a163981d01 /tests/ci/yardstick-verify | |
parent | aed848064e0b4046ff05c2e438884e6ae7a029f1 (diff) |
Add raw image support for lxd scenario
JIRA: YARDSTICK-325
Provide a raw format yardstick-trusty-server image when runing os-nosdn-lxd-ha
or os-nosdn-lxd-noha scenarios
Change-Id: I7bd1dcfe187f529134f6b30d4dd4c887f5639048
Signed-off-by: JingLu5 <lvjing5@huawei.com>
Diffstat (limited to 'tests/ci/yardstick-verify')
-rwxr-xr-x | tests/ci/yardstick-verify | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/ci/yardstick-verify b/tests/ci/yardstick-verify index 5ac0850df..8670bf4d0 100755 --- a/tests/ci/yardstick-verify +++ b/tests/ci/yardstick-verify @@ -269,9 +269,16 @@ load_yardstick_image() rm -f $VIVID_KERNEL $VIVID_IMAGE cd $YARDSTICK_REPO_DIR fi + + if [ "$DEPLOY_SCENARIO" == "os-nosdn-lxd-ha" -o "$DEPLOY_SCENARIO" == "os-nosdn-lxd-noha" ]; then + DISK_FORMAT="raw" + else + DISK_FORMAT="qcow2" + fi + output=$(eval glance --os-image-api-version 1 image-create \ --name yardstick-trusty-server \ - --is-public true --disk-format qcow2 \ + --is-public true --disk-format $DISK_FORMAT \ --container-format bare \ $EXTRA_PARAMS \ --file $QCOW_IMAGE) |