Skip to content

Commit

Permalink
Merge pull request ceph#334 from leonidc/issue_284
Browse files Browse the repository at this point in the history
create_subsystem should fail if --enable-ha=true, and --ana-reporting…
  • Loading branch information
leonidc authored Nov 22, 2023
2 parents be63c22 + 81958f1 commit 2acfd4a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions control/grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,8 @@ def create_subsystem_safe(self, request, context=None):

if self.is_discovery_nqn(request.subsystem_nqn):
raise Exception(f"Can't create a discovery subsystem")
if request.enable_ha == True and request.ana_reporting == False:
raise Exception(f"Validation Error: HA enabled but ANA-reporting is disabled ")

min_cntlid = self.config.getint_with_default("gateway", "min_controller_id", 1)
max_cntlid = self.config.getint_with_default("gateway", "max_controller_id", 65519)
Expand Down

0 comments on commit 2acfd4a

Please sign in to comment.