From 63fa71cc462c00f19bc1949f3e2b32f42721388b Mon Sep 17 00:00:00 2001 From: MofassirArif Date: Tue, 12 Jan 2016 03:12:23 -0800 Subject: error handling for the files being input to the framework. iperf bug fix for the bare metal testing, renamed all the iperf config files. added more detail to the help. Change-Id: I16cfb1c05599cd0b803e735e6a75083e3e6733ec Signed-off-by: MofassirArif (cherry picked from commit 4c06a4ed3b3b22e3dbcddb33dda33ca773dfae11) --- func/create_zones.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'func/create_zones.py') diff --git a/func/create_zones.py b/func/create_zones.py index a21fb41f..44ba7568 100644 --- a/func/create_zones.py +++ b/func/create_zones.py @@ -107,6 +107,9 @@ class create_zones: for x in range(len(zone_machine)): compute_index = self.get_compute_num(D[x]) + if compute_index > len(hyper_list): + print '\n The specified compute node doesnt exist. using compute 1' + compute_index = 1 if not self.check_aggregate(nova, hostnA[compute_index]): agg_idA = nova.aggregates.create(hostnA[compute_index], D[x]) nova.aggregates.add_host(aggregate=agg_idA, host=hostnA[compute_index]) -- cgit 1.2.3-korg