'agent_flavor': fields.String,
'agent_image': fields.String,
'public_network': fields.String,
- 'volume_size': fields.Integer
+ 'volume_size': fields.Integer,
+ 'availability_zone': fields.String
}
'public_network': fields.String,
'stack_created': fields.Boolean,
'stack_id': fields.String,
- 'volume_size': fields.Integer
+ 'volume_size': fields.Integer,
+ 'availability_zone': fields.String
}
'public_network': storperf.public_network,
'volume_size': storperf.volume_size,
'stack_created': storperf.is_stack_created,
+ 'availability_zone': storperf.availability_zone,
'stack_id': storperf.stack_id})
@swagger.operation(
storperf.public_network = request.json['public_network']
if ('volume_size' in request.json):
storperf.volume_size = request.json['volume_size']
+ if ('availability_zone' in request.json):
+ storperf.availabilty_zone = request.json['availability_zone']
storperf.create_stack()
if storperf.stack_id is None:
'agent_image': storperf.agent_image,
'public_network': storperf.public_network,
'volume_size': storperf.volume_size,
+ 'availability_zone': storperf.availability_zone,
'stack_id': storperf.stack_id})
except Exception as e:
- The OpenStack flavor to use when creating the VMs
- The name of the public network that agents will use
- The size, in gigabytes, of the Cinder volumes to create
+- The availability zone (optional) in which the VM is to be launched. Defaults to **nova**.
The ReST API is a POST to http://StorPerf:5000/api/v1.0/configurations and
takes a JSON payload as follows.
"agent_flavor": string
"agent_image": string,
"public_network": string,
- "volume_size": int
+ "volume_size": int,
+ "availability_zone": string
}
This call will block until the stack is created, at which point it will return