File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
drivers/replication_topologies Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -240,6 +240,7 @@ def get_add_database_instances_first_steps(self):
240240 'workflow.steps.util.host_provider.AllocateIP' ,
241241 'workflow.steps.util.host_provider.CreateVirtualMachine' ,
242242 'workflow.steps.util.dns.CreateDNS' ,
243+ 'workflow.steps.util.dns.CheckIsReady' ,
243244 'workflow.steps.util.vm.WaitingBeReady' ,
244245 'workflow.steps.util.vm.UpdateOSDescription' ,
245246 'workflow.steps.util.volume_provider.NewVolume' ,
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ def execute(self):
9595
9696 max_read_hosts = Configuration .get_by_name_as_int ('max_read_hosts' , 5 )
9797 qtd_new_hosts = self .number_of_instances
98- current_read_nodes = len (self .database .infra .instances .filter (read_only = True ))
98+ current_read_nodes = len (self .database .infra .instances .filter (read_only = True , status = 1 ))
9999 total_read_hosts = qtd_new_hosts + current_read_nodes
100100 if total_read_hosts > max_read_hosts :
101101 raise exceptions .ReadOnlyHostsLimit (
You can’t perform that action at this time.
0 commit comments