aboutsummaryrefslogtreecommitdiffstats
path: root/integration/storperf/openstack.sh
diff options
context:
space:
mode:
authorzhihui wu <wu.zhihui1@zte.com.cn>2017-08-01 17:51:04 +0800
committerzhihui wu <wu.zhihui1@zte.com.cn>2017-08-01 17:51:04 +0800
commit61e134112a356d298e0e370832ec676caf2e85ef (patch)
tree0ae4ce43443f0d55546eaae812f45d673ad5cc11 /integration/storperf/openstack.sh
parent06b4f3801918ff5548b25e3897a49fe3e3953d9a (diff)
Find nova vs. vm mapping relation
Find nova vs. vm mapping relation, and save it to a json file named "nova_vm.json" JIRA: QTIP-253 Change-Id: Ib9b6356525d78cd69752843ff65425a4628bd160 Signed-off-by: zhihui wu <wu.zhihui1@zte.com.cn>
Diffstat (limited to 'integration/storperf/openstack.sh')
-rwxr-xr-xintegration/storperf/openstack.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/integration/storperf/openstack.sh b/integration/storperf/openstack.sh
index 011aadb7..99701871 100755
--- a/integration/storperf/openstack.sh
+++ b/integration/storperf/openstack.sh
@@ -56,3 +56,10 @@ create_storperf_flavor()
fi
openstack flavor show storperf
}
+
+
+nova_vm_mapping()
+{
+ rm ./nova_vm.json
+ openstack server list --name storperf-agent -c ID -c Host --long -f json > nova_vm.json
+} \ No newline at end of file