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
@@ -3391,6 +3392,15 @@ def _apply_service_spec(self, spec: ServiceSpec) -> str:
33913392 if not mgmt_gw_daemons :
33923393 raise OrchestratorError ("The 'oauth2-proxy' service depends on the 'mgmt-gateway' service, but it is not configured." )
33933394
3395+ if spec .service_type == 'nvmeof' :
3396+ spec = cast (NvmeofServiceSpec , spec )
3397+ assert spec .pool is not None , "Pool cannot be None for nvmeof services"
3398+ try :
3399+ self ._check_pool_exists (spec .pool , spec .service_name ())
3400+ except OrchestratorError as e :
3401+ self .log .debug (f"{ e } " )
3402+ raise
3403+
33943404 if spec .placement .count is not None :
33953405 if spec .service_type in ['mon' , 'mgr' ]:
33963406 if spec .placement .count > max (5 , host_count ):
You can’t perform that action at this time.
0 commit comments