@@ -873,6 +873,14 @@ def run(self):
873
873
elif sub_command in ['deploy-cleaner' ]:
874
874
ret = self .storage_node__deploy_cleaner (sub_command , args )
875
875
elif sub_command in ['add-node' ]:
876
+ if not self .developer_mode :
877
+ args .jm_percent = '3'
878
+ args .number_of_distribs = 4
879
+ args .small_bufsize = '0'
880
+ args .large_bufsize = '0'
881
+ args .enable_ha_jm = False
882
+ args .ha_jm_count = '3'
883
+ args .id_device_by_nqn = False
876
884
ret = self .storage_node__add_node (sub_command , args )
877
885
elif sub_command in ['delete' ]:
878
886
ret = self .storage_node__delete (sub_command , args )
@@ -883,6 +891,12 @@ def run(self):
883
891
elif sub_command in ['get' ]:
884
892
ret = self .storage_node__get (sub_command , args )
885
893
elif sub_command in ['restart' ]:
894
+ if not self .developer_mode :
895
+ args .max_snap = '0'
896
+ args .max_prov = ''
897
+ args .number_of_devices = '0'
898
+ args .small_bufsize = '0'
899
+ args .large_bufsize = '0'
886
900
ret = self .storage_node__restart (sub_command , args )
887
901
elif sub_command in ['shutdown' ]:
888
902
ret = self .storage_node__shutdown (sub_command , args )
@@ -972,10 +986,50 @@ def run(self):
972
986
elif args .command in ['cluster' ]:
973
987
sub_command = args_dict ['cluster' ]
974
988
if sub_command in ['deploy' ]:
989
+ if not self .developer_mode :
990
+ args .ha_jm_count = '3'
991
+ args .blk_size = '512'
992
+ args .page_size = '2097152'
993
+ args .grafana_endpoint = ''
994
+ args .distr_bs = '4096'
995
+ args .max_queue_size = '128'
996
+ args .inflight_io_threshold = '4'
997
+ args .jm_percent = '3'
998
+ args .max_snap = '500'
999
+ args .number_of_distribs = '4'
1000
+ args .small_bufsize = '0'
1001
+ args .large_bufsize = '0'
1002
+ args .enable_ha_jm = False
1003
+ args .lvol_name = 'lvol01'
1004
+ args .lvol_size = '10G'
1005
+ args .pool_name = 'pool01'
1006
+ args .pool_max = '25G'
1007
+ args .snapshot = False
1008
+ args .max_size = '1000G'
1009
+ args .encrypt = False
1010
+ args .distr_vuid = '0'
1011
+ args .lvol_ha_type = 'default'
1012
+ args .fstype = 'xfs'
975
1013
ret = self .cluster__deploy (sub_command , args )
976
1014
elif sub_command in ['create' ]:
1015
+ if not self .developer_mode :
1016
+ args .page_size = '2097152'
1017
+ args .distr_bs = '4096'
1018
+ args .distr_chunk_bs = '4096'
1019
+ args .ha_type = 'single'
1020
+ args .max_queue_size = '128'
1021
+ args .inflight_io_threshold = '4'
1022
+ args .enable_qos = False
977
1023
ret = self .cluster__create (sub_command , args )
978
1024
elif sub_command in ['add' ]:
1025
+ if not self .developer_mode :
1026
+ args .page_size = '2097152'
1027
+ args .distr_bs = '4096'
1028
+ args .distr_chunk_bs = '4096'
1029
+ args .ha_type = 'single'
1030
+ args .max_queue_size = '128'
1031
+ args .inflight_io_threshold = '4'
1032
+ args .enable_qos = False
979
1033
ret = self .cluster__add (sub_command , args )
980
1034
elif sub_command in ['activate' ]:
981
1035
ret = self .cluster__activate (sub_command , args )
@@ -1025,6 +1079,9 @@ def run(self):
1025
1079
elif args .command in ['volume' , 'lvol' ]:
1026
1080
sub_command = args_dict ['volume' ]
1027
1081
if sub_command in ['add' ]:
1082
+ if not self .developer_mode :
1083
+ args .distr_vuid = '0'
1084
+ args .ha_type = 'default'
1028
1085
ret = self .volume__add (sub_command , args )
1029
1086
elif sub_command in ['qos-set' ]:
1030
1087
ret = self .volume__qos_set (sub_command , args )
0 commit comments