@Override
public void execute(CloudStackClient cloudStackClient, Pool pool, DelegateExecution execution) {
Network network = checkNotNull(pool.getNetwork(), "Please configure a network for the pool");
String securityGroupName = SecurityGroups.formatNameFromBusinessKey(execution.getProcessBusinessKey());
SecurityGroup securityGroup;
try {
LOG.info("Creating SecurityGroup {}", securityGroupName);
securityGroup = SecurityGroups.createSecurityGroup(cloudStackClient, securityGroupName);
} catch (IllegalStateException e) {
LOG.info("Failed creating SecurityGroup {} - checking if it exists", securityGroupName);