修复ct申请虚拟机流程
parent
e01c5d06c7
commit
d65c979618
|
@ -78,6 +78,7 @@ import com.bocloud.ims.service.internal.worker.LvmService;
|
|||
import com.bocloud.ims.service.model.ProcessResult;
|
||||
import com.bocloud.ims.service.resource.fusionsphere.utils.FusionSphereResourceUtils;
|
||||
import com.bocloud.ims.service.task.ResourceTaskNotice;
|
||||
import com.bocloud.ims.service.transporter.vendor.CloudTowerTransporter;
|
||||
import com.bocloud.ims.service.transporter.vendor.H3cTransporter;
|
||||
import com.bocloud.ims.service.transporter.vendor.PowervcTransporter;
|
||||
import com.bocloud.ims.service.transporter.vendor.SmartxTransporter;
|
||||
|
@ -327,6 +328,8 @@ public class ServerOperationHelper {
|
|||
private ResourceOperatorFactory resourceOperatorFactory;
|
||||
@Autowired
|
||||
private ProviderContextManager providerContextManager;
|
||||
@Autowired
|
||||
private CloudTowerTransporter cloudTowerTransporter;
|
||||
|
||||
/**
|
||||
* 获取云主机builder器
|
||||
|
@ -482,6 +485,12 @@ public class ServerOperationHelper {
|
|||
process = new SangforBuilder(context, vendor, serverDriver,cloudServerRepository,volumeRepository, dataStoreRepository,
|
||||
networkRepository, cosInternalService, serverRepository, shtermService);
|
||||
break;
|
||||
case CLOUDTOWER:
|
||||
process = new CloudTowerServerBuilder(cloudVendorRepository, serverRepository, cloudServerRepository,
|
||||
volumeRepository, volumeTemplateRepository, imageRepository, switcherRepository,
|
||||
networkRepository, subnetRepository, serverVolumeRepository, serverImageRepository,
|
||||
serverDriver, volumeDriver, serverTemplateDriver, cloudTowerTransporter, context, clusterRepository, networkCardRepository);
|
||||
break;
|
||||
default:
|
||||
//默认走acd的ServerBuilder
|
||||
process = new ResourceOperatorServerBuilder(resourceOperatorFactory, vendor, providerContextManager);
|
||||
|
|
Loading…
Reference in New Issue