We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8aa9829 + e681d37 commit 9944ed1Copy full SHA for 9944ed1
src/pybind/mgr/cephadm/module.py
@@ -3433,7 +3433,7 @@ def _apply_service_spec(self, spec: ServiceSpec) -> str:
3433
f"group name '{nvmeof_spec.group}' and service id '{nvmeof_spec.service_id}'")
3434
for sspec in [s.spec for s in self.spec_store.get_by_service_type('nvmeof')]:
3435
nspec = cast(NvmeofServiceSpec, sspec)
3436
- if nvmeof_spec.group == nspec.group:
+ if nvmeof_spec.group == nspec.group and nvmeof_spec.service_id != nspec.service_id:
3437
raise OrchestratorError(f"Cannot create nvmeof service with group {nvmeof_spec.group}. That group is already "
3438
f"being used by the service {nspec.service_name()}")
3439
0 commit comments