Skip to content

Commit

Permalink
Add right configuration for multibag to let CS process start
Browse files Browse the repository at this point in the history
  • Loading branch information
kuenishi committed Dec 17, 2015
1 parent 77d437b commit 2078845
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion riak_test/src/rtcs_config.erl
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,14 @@ update_admin_creds(Config, AdminKey) ->
proplists:delete(admin_key, Config)].

update_cs_port(Config, N) ->
Config2 = [{riak_host, {"127.0.0.1", pb_port(N)}} | proplists:delete(riak_host, Config)],
PBPort = case rt_config:get(flavor, basic) of
basic -> pb_port(N);
{multibag, _} ->
%% dev1 is the master cluster, so all CS nodes
%% are configured as that
pb_port(1)
end,
Config2 = [{riak_host, {"127.0.0.1", PBPort}} | proplists:delete(riak_host, Config)],
[{listener, {"127.0.0.1", cs_port(N)}} | proplists:delete(listener, Config2)].

update_stanchion_config(Prefix, Config, {AdminKey, _AdminSecret}) ->
Expand Down

0 comments on commit 2078845

Please sign in to comment.