File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/python-common/ceph/deployment Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -2057,6 +2057,10 @@ def validate(self) -> None:
20572057 verify_positive_int (self .max_hosts , "Max hosts" )
20582058 verify_positive_int (self .max_namespaces , "Max namespaces" )
20592059 verify_positive_int (self .max_namespaces_per_subsystem , "Max namespaces per subsystem" )
2060+ max_per_subsys = self .max_namespaces_per_subsystem
2061+ if max_per_subsys is not None and max_per_subsys > 2048 :
2062+ raise SpecValidationError ("Max namespaces per subsystem can't be "
2063+ "greater than 2048" )
20602064 verify_positive_int (self .max_hosts_per_subsystem , "Max hosts per subsystem" )
20612065 verify_non_negative_number (self .subsystem_cache_expiration ,
20622066 "Subsystem cache expiration period" )
You can’t perform that action at this time.
0 commit comments