File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 3737 ServiceSpec , PlacementSpec , \
3838 HostPlacementSpec , IngressSpec , \
3939 TunedProfileSpec , \
40- MgmtGatewaySpec
40+ MgmtGatewaySpec , \
41+ NvmeofServiceSpec
4142from ceph .utils import str_to_datetime , datetime_to_str , datetime_now
4243from cephadm .serve import CephadmServe
4344from cephadm .services .cephadmservice import CephadmDaemonDeploySpec
@@ -3438,6 +3439,15 @@ def _apply_service_spec(self, spec: ServiceSpec) -> str:
34383439 if not mgmt_gw_daemons :
34393440 raise OrchestratorError ("The 'oauth2-proxy' service depends on the 'mgmt-gateway' service, but it is not configured." )
34403441
3442+ if spec .service_type == 'nvmeof' :
3443+ spec = cast (NvmeofServiceSpec , spec )
3444+ assert spec .pool is not None , "Pool cannot be None for nvmeof services"
3445+ try :
3446+ self ._check_pool_exists (spec .pool , spec .service_name ())
3447+ except OrchestratorError as e :
3448+ self .log .debug (f"{ e } " )
3449+ raise
3450+
34413451 if spec .placement .count is not None :
34423452 if spec .service_type in ['mon' , 'mgr' ]:
34433453 if spec .placement .count > max (5 , host_count ):
You can’t perform that action at this time.
0 commit comments