}
if(log.isDebugEnabled()){
log.debug("Volume " + volumeId + " became AVAILABLE");
}
Attachment attachment = blockStoreApi.attachVolumeInRegion(region, volumeId, instanceId, device);
if (attachment == null) {
log.fatal("Volume [id]: "+volumeId+" attachment for instance [id]: "+instanceId
+" was unsuccessful. [region] : " + region
+ ", [zone] : " + zone + " of Iaas : " + iaasInfo);
return null;
}
log.info("Volume [id]: "+volumeId+" attachment for instance [id]: "+instanceId
+" was successful [status]: "+attachment.getStatus().value()+". [region] : " + region
+ ", [zone] : " + zone + " of Iaas : " + iaasInfo);
return attachment.getStatus().value();
}