summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchaithanyak <chaithanyak@vedams.com>2016-09-27 16:49:17 +0530
committerchaithanyak <chaithanyak@vedams.com>2016-09-27 16:49:17 +0530
commit131e48d949b296509cace841a15d4d3fd5ddb343 (patch)
tree2e41fcd4df5706981ea9da7cff7e60f5cc3c4874
parent25e93d0f2aa29d576c270df79337faa8e4637a63 (diff)
Enable Multipath
-rw-r--r--deployment_scripts/puppet/manifests/cinder_multipath.pp1
-rw-r--r--deployment_scripts/puppet/modules/kaminario/lib/facter/default_volume_type.rb18
-rw-r--r--deployment_scripts/puppet/modules/kaminario/manifests/init.pp53
-rw-r--r--deployment_scripts/puppet/modules/multipath/manifests/init.pp12
-rw-r--r--deployment_tasks.yaml18
-rw-r--r--environment_config.yaml275
6 files changed, 350 insertions, 27 deletions
diff --git a/deployment_scripts/puppet/manifests/cinder_multipath.pp b/deployment_scripts/puppet/manifests/cinder_multipath.pp
new file mode 100644
index 0000000..c1ad9cd
--- /dev/null
+++ b/deployment_scripts/puppet/manifests/cinder_multipath.pp
@@ -0,0 +1 @@
include multipath
diff --git a/deployment_scripts/puppet/modules/kaminario/lib/facter/default_volume_type.rb b/deployment_scripts/puppet/modules/kaminario/lib/facter/default_volume_type.rb
new file mode 100644
index 0000000..f85131f
--- /dev/null
+++ b/deployment_scripts/puppet/modules/kaminario/lib/facter/default_volume_type.rb
@@ -0,0 +1,18 @@
1require 'hiera'
2require 'facter'
3hiera = Hiera.new(:config => '/etc/hiera.yaml')
4cinder_kaminario=hiera.lookup('cinder_kaminario', {}, {},'nil')
55.times do |i|
6 add_backend = "add_backend_" + i.to_s
7 type_name = "type_name_" + i.to_s
8 if cinder_kaminario[add_backend] == true
9 default_type = cinder_kaminario[type_name]
10 end
11end
12
13Facter.add("default_volume_type") do
14 setcode do
15 default_type
16 end
17end
18
diff --git a/deployment_scripts/puppet/modules/kaminario/manifests/init.pp b/deployment_scripts/puppet/modules/kaminario/manifests/init.pp
index 84ab0b1..8249498 100644
--- a/deployment_scripts/puppet/modules/kaminario/manifests/init.pp
+++ b/deployment_scripts/puppet/modules/kaminario/manifests/init.pp
@@ -3,6 +3,7 @@ $num = [ '0', '1', '2', '3', '4', '5' ]
3$plugin_settings = hiera('cinder_kaminario') 3$plugin_settings = hiera('cinder_kaminario')
4each($num) |$value| { 4each($num) |$value| {
5config {"plugin_${value}": 5config {"plugin_${value}":
6 add_backend => $plugin_settings["add_backend_${value}"],
6 cinder_node => $plugin_settings["cinder_node_${value}"], 7 cinder_node => $plugin_settings["cinder_node_${value}"],
7 storage_protocol => $plugin_settings["storage_protocol_${value}"], 8 storage_protocol => $plugin_settings["storage_protocol_${value}"],
8 backend_name => $plugin_settings["backend_name_${value}"], 9 backend_name => $plugin_settings["backend_name_${value}"],
@@ -14,17 +15,23 @@ config {"plugin_${value}":
14 replication_login => $plugin_settings["replication_login_${value}"], 15 replication_login => $plugin_settings["replication_login_${value}"],
15 replication_rpo => $plugin_settings["replication_rpo_${value}"], 16 replication_rpo => $plugin_settings["replication_rpo_${value}"],
16 replication_password => $plugin_settings["replication_password_${value}"], 17 replication_password => $plugin_settings["replication_password_${value}"],
18 enable_multipath => $plugin_settings["enable_multipath_${value}"],
19 suppress_logs => $plugin_settings["suppress_logs_${value}"],
20 filter_function => $plugin_settings["filter_function_${value}"],
21 oversubscription_ratio => $plugin_settings["oversubscription_ratio_${value}"],
17 num => $value 22 num => $value
18 } 23 }
19} 24}
20} 25}
21 26
22define config($storage_protocol,$backend_name,$storage_user,$storage_password,$storage_ip,$num,$cinder_node,$enable_replication,$replication_ip,$replication_login,$replication_rpo,$replication_password) { 27define config($add_backend,$storage_protocol,$backend_name,$storage_user,$storage_password,$storage_ip,$num,$cinder_node,$enable_replication,$replication_ip,$replication_login,$replication_rpo,$replication_password,$enable_multipath,$suppress_logs,$filter_function,$oversubscription_ratio) {
23 28
24 $sec_name = section_name( $storage_ip , $backend_name ) 29 $sec_name = section_name( $storage_ip , $backend_name )
25 $config_file = "/etc/cinder/cinder.conf" 30 $config_file = "/etc/cinder/cinder.conf"
26 if $cinder_node == hiera(user_node_name) { 31 if $cinder_node == hiera(user_node_name) {
32 if $add_backend == true {
27 if $storage_protocol == 'FC'{ 33 if $storage_protocol == 'FC'{
34
28 ini_subsetting {"enable_backend_${num}": 35 ini_subsetting {"enable_backend_${num}":
29 ensure => present, 36 ensure => present,
30 section => 'DEFAULT', 37 section => 'DEFAULT',
@@ -40,6 +47,7 @@ define config($storage_protocol,$backend_name,$storage_user,$storage_password,$s
40 "$sec_name/san_ip" : value => $storage_ip; 47 "$sec_name/san_ip" : value => $storage_ip;
41 "$sec_name/san_login" : value => $storage_user; 48 "$sec_name/san_login" : value => $storage_user;
42 "$sec_name/san_password" : value => $storage_password; 49 "$sec_name/san_password" : value => $storage_password;
50 "$sec_name/filter_function" : value => $filter_function;
43 } 51 }
44 52
45 if $enable_replication == true { 53 if $enable_replication == true {
@@ -47,8 +55,26 @@ define config($storage_protocol,$backend_name,$storage_user,$storage_password,$s
47 cinder_config { 55 cinder_config {
48 "$sec_name/replication_device" : value => $replication_device; 56 "$sec_name/replication_device" : value => $replication_device;
49 } 57 }
58 }
59
60 if $enable_multipath == true {
61 cinder_config {
62 "$sec_name/use_multipath_for_image_xfer" : value => "True";
63 "$sec_name/enforce_multipath_for_image_xfer" : value => "True";
64 }
65 }
66 if $suppress_logs == true {
67 cinder_config {
68 "$sec_name/suppress_requests_ssl_warnings" : value => "True";
69 }
70 }
71
72 if $oversubscription_ratio == true {
73 cinder_config {
74 "$sec_name/auto_calc_max_oversubscription_ratio" : value => "True";
75 }
76 }
50 77
51 }
52} 78}
53 if $storage_protocol == 'ISCSI'{ 79 if $storage_protocol == 'ISCSI'{
54 ini_subsetting {"enable_backend_${num}": 80 ini_subsetting {"enable_backend_${num}":
@@ -66,17 +92,34 @@ define config($storage_protocol,$backend_name,$storage_user,$storage_password,$s
66 "$sec_name/san_ip" : value => $storage_ip; 92 "$sec_name/san_ip" : value => $storage_ip;
67 "$sec_name/san_login" : value => $storage_user; 93 "$sec_name/san_login" : value => $storage_user;
68 "$sec_name/san_password" : value => $storage_password; 94 "$sec_name/san_password" : value => $storage_password;
95 "$sec_name/filter_function" : value => $filter_function;
69 } 96 }
70 97
71 if $enable_replication == true { 98 if $enable_replication == true {
72 $replication_device = get_replication_device($replication_ip, $replication_login , $replication_password , $replication_rpo) 99 $replication_device = get_replication_device($replication_ip, $replication_login , $replication_password , $replication_rpo)
73 cinder_config { 100 cinder_config {
74 "$sec_name/replication_device" : value => $replication_device; 101 "$sec_name/replication_device" : value => $replication_device;
75 } 102 }
103 }
104 if $enable_multipath == true {
105 cinder_config {
106 "$sec_name/use_multipath_for_image_xfer" : value => "True";
107 "$sec_name/enforce_multipath_for_image_xfer" : value => "True";
108 }
109 }
110 if $suppress_logs == true {
111 cinder_config {
112 "$sec_name/suppress_requests_ssl_warnings" : value => "True";
113 }
114 }
115 if $oversubscription_ratio == true {
116 cinder_config {
117 "$sec_name/auto_calc_max_oversubscription_ratio" : value => "True";
118 }
119 }
76 120
77 }
78} 121}
79} 122}
80} 123}
81 124}
82 125
diff --git a/deployment_scripts/puppet/modules/multipath/manifests/init.pp b/deployment_scripts/puppet/modules/multipath/manifests/init.pp
new file mode 100644
index 0000000..ac0b41f
--- /dev/null
+++ b/deployment_scripts/puppet/modules/multipath/manifests/init.pp
@@ -0,0 +1,12 @@
1class multipath {
2$multipath_packages = [ 'sg3-utils', 'multipath-tools' ]
3package { $multipath_packages: ensure => 'installed' }
4
5nova_config {
6'libvirt/iscsi_use_multipath' : value => True,
7}~> Exec[cinder_volume]
8
9exec {'cinder_volume':
10 command => '/usr/sbin/service nova-compute restart',}
11
12}
diff --git a/deployment_tasks.yaml b/deployment_tasks.yaml
index 78df384..0342ce0 100644
--- a/deployment_tasks.yaml
+++ b/deployment_tasks.yaml
@@ -2,8 +2,8 @@
2 type: puppet 2 type: puppet
3 version: 2.1.0 3 version: 2.1.0
4 groups: [cinder,primary-controller,controller] 4 groups: [cinder,primary-controller,controller]
5 requires: [top-role-cinder] 5 requires: [openstack-cinder,top-role-cinder,netconfig]
6 required_for: [kaminario_cinder] 6 required_for: [kaminario_cinder,kaminario_types]
7 condition: 7 condition:
8 yaql_exp: "changedAny($.storage, $.cinder_kaminario)" 8 yaql_exp: "changedAny($.storage, $.cinder_kaminario)"
9 parameters: 9 parameters:
@@ -15,7 +15,7 @@
15 type: puppet 15 type: puppet
16 version: 2.1.0 16 version: 2.1.0
17 groups: [cinder] 17 groups: [cinder]
18 requires: [kaminario_parser] 18 requires: [kaminario_parser,top-role-cinder]
19 required_for: [deploy_end] 19 required_for: [deploy_end]
20 condition: 20 condition:
21 yaql_exp: "changedAny($.storage, $.cinder_kaminario)" 21 yaql_exp: "changedAny($.storage, $.cinder_kaminario)"
@@ -28,7 +28,7 @@
28 type: puppet 28 type: puppet
29 version: 2.1.0 29 version: 2.1.0
30 groups: [primary-controller] 30 groups: [primary-controller]
31 requires: [openstack-cinder] 31 requires: [kaminario_parser]
32 required_for: [deploy_end] 32 required_for: [deploy_end]
33 condition: 33 condition:
34 yaql_exp: "changedAny($.storage, $.cinder_kaminario)" 34 yaql_exp: "changedAny($.storage, $.cinder_kaminario)"
@@ -37,3 +37,13 @@
37 puppet_modules: puppet/modules:/etc/puppet/modules 37 puppet_modules: puppet/modules:/etc/puppet/modules
38 timeout: 360 38 timeout: 360
39 39
40- id: kaminario_multipath
41 type: puppet
42 version: 2.1.0
43 groups: [compute]
44 requires: [top-role-compute]
45 required_for: [deploy_end]
46 parameters:
47 puppet_manifest: puppet/manifests/cinder_multipath.pp
48 puppet_modules: puppet/modules:/etc/puppet/modules
49 timeout: 360
diff --git a/environment_config.yaml b/environment_config.yaml
index 18d5d57..57b87ac 100644
--- a/environment_config.yaml
+++ b/environment_config.yaml
@@ -150,9 +150,9 @@ attributes:
150 - data: "enable_replication_type" 150 - data: "enable_replication_type"
151 label: "Enable Replication" 151 label: "Enable Replication"
152 - data: "enable_dedup" 152 - data: "enable_dedup"
153 label: "Enable Deduplication" 153 label: "Enable Non Deduplication"
154 - data: "replication_dedup" 154 - data: "replication_dedup"
155 label: "Enable both Replication and Deduplication" 155 label: "Enable both Replication and Non Deduplication"
156 restrictions: 156 restrictions:
157 - condition: "settings:cinder_kaminario.create_type_0.value == false" 157 - condition: "settings:cinder_kaminario.create_type_0.value == false"
158 action: 'hide' 158 action: 'hide'
@@ -164,9 +164,38 @@ attributes:
164 weight: 80 164 weight: 80
165 type: 'checkbox' 165 type: 'checkbox'
166 restrictions: 166 restrictions:
167 - condition: "settings:cinder_kaminario.create_type_0.value == false or (settings:cinder_kaminario.default_type_0.value == false or settings:cinder_kaminario.default_type_1.value == false or settings:cinder_kaminario.default_type_2.value == false or settings:cinder_kaminario.default_type_3.value == false or settings:cinder_kaminario.default_type_4.value == false or settings:cinder_kaminario.default_type_5.value == false)" 167 - condition: "settings:cinder_kaminario.create_type_0.value == false "
168 action: 'hide' 168 action: 'hide'
169 169
170 enable_multipath_0:
171 value: false
172 label: 'Enable Multipath'
173 description: 'Enable multipath for cinder volumes'
174 weight: 85
175 type: 'checkbox'
176
177 suppress_logs_0:
178 value: false
179 label: 'Suppress Logs'
180 description: 'Suppress Additional logs created by krest'
181 weight: 86
182 type: 'checkbox'
183
184 filter_function_0:
185 value: ""
186 label: 'Filter Function'
187 description: 'Filter function for backend'
188 weight: 87
189 type: "text"
190
191 oversubscription_ratio_0:
192 value: false
193 label: 'Oversubscription Ratio'
194 description: 'Enable Oversubscription Ratio for backend'
195 weight: 88
196 type: 'checkbox'
197
198
170 add_backend_1: 199 add_backend_1:
171 value: false 200 value: false
172 label: 'Add a new kaminario backend or scale an existing backend' 201 label: 'Add a new kaminario backend or scale an existing backend'
@@ -330,9 +359,9 @@ attributes:
330 - data: "enable_replication_type" 359 - data: "enable_replication_type"
331 label: "Enable Replication" 360 label: "Enable Replication"
332 - data: "enable_dedup" 361 - data: "enable_dedup"
333 label: "Enable Deduplication" 362 label: "Enable Non Deduplication"
334 - data: "replication_dedup" 363 - data: "replication_dedup"
335 label: "Enable both Replication and Deduplication" 364 label: "Enable both Replication and Non Deduplication"
336 restrictions: 365 restrictions:
337 - condition: "settings:cinder_kaminario.create_type_1.value == false" 366 - condition: "settings:cinder_kaminario.create_type_1.value == false"
338 action: 'hide' 367 action: 'hide'
@@ -344,9 +373,51 @@ attributes:
344 weight: 165 373 weight: 165
345 type: 'checkbox' 374 type: 'checkbox'
346 restrictions: 375 restrictions:
347 - condition: "settings:cinder_kaminario.create_type_1.value == false or (settings:cinder_kaminario.default_type_0.value == false or settings:cinder_kaminario.default_type_1.value == false or settings:cinder_kaminario.default_type_2.value == false or settings:cinder_kaminario.default_type_3.value == false or settings:cinder_kaminario.default_type_4.value == false or settings:cinder_kaminario.default_type_5.value == false)" 376 - condition: "settings:cinder_kaminario.create_type_1.value == false"
348 action: 'hide' 377 action: 'hide'
349 378
379 enable_multipath_1:
380 value: false
381 label: 'Enable Multipath'
382 description: 'Enable multipath for cinder volumes'
383 weight: 170
384 type: 'checkbox'
385 restrictions:
386 - condition: "settings:cinder_kaminario.add_backend_1.value != true"
387 action: 'hide'
388
389 suppress_logs_1:
390 value: false
391 label: 'Suppress Logs'
392 description: 'Suppress Additional logs created by krest'
393 weight: 171
394 type: 'checkbox'
395 restrictions:
396 - condition: "settings:cinder_kaminario.add_backend_1.value != true"
397 action: 'hide'
398
399 filter_function_1:
400 value: ""
401 label: 'Filter Function'
402 description: 'Filter function for backend'
403 weight: 172
404 type: "text"
405 restrictions:
406 - condition: "settings:cinder_kaminario.add_backend_1.value != true"
407 action: 'hide'
408
409
410 oversubscription_ratio_1:
411 value: false
412 label: 'Oversubscription Ratio'
413 description: 'Enable Oversubscription Ratio for backend'
414 weight: 173
415 type: 'checkbox'
416 restrictions:
417 - condition: "settings:cinder_kaminario.add_backend_1.value != true"
418 action: 'hide'
419
420
350 421
351 add_backend_2: 422 add_backend_2:
352 value: false 423 value: false
@@ -513,9 +584,9 @@ attributes:
513 - data: "enable_replication_type" 584 - data: "enable_replication_type"
514 label: "Enable Replication" 585 label: "Enable Replication"
515 - data: "enable_dedup" 586 - data: "enable_dedup"
516 label: "Enable Deduplication" 587 label: "Enable Non Deduplication"
517 - data: "replication_dedup" 588 - data: "replication_dedup"
518 label: "Enable both Replication and Deduplication" 589 label: "Enable both Replication and Non Deduplication"
519 restrictions: 590 restrictions:
520 - condition: "settings:cinder_kaminario.create_type_2.value == false" 591 - condition: "settings:cinder_kaminario.create_type_2.value == false"
521 action: 'hide' 592 action: 'hide'
@@ -527,9 +598,52 @@ attributes:
527 weight: 250 598 weight: 250
528 type: 'checkbox' 599 type: 'checkbox'
529 restrictions: 600 restrictions:
530 - condition: "settings:cinder_kaminario.create_type_2.value == false or (settings:cinder_kaminario.default_type_0.value == false or settings:cinder_kaminario.default_type_1.value == false or settings:cinder_kaminario.default_type_2.value == false or settings:cinder_kaminario.default_type_3.value == false or settings:cinder_kaminario.default_type_4.value == false or settings:cinder_kaminario.default_type_5.value == false)" 601 - condition: "settings:cinder_kaminario.create_type_2.value == false"
531 action: 'hide' 602 action: 'hide'
532 603
604 enable_multipath_2:
605 value: false
606 label: 'Enable Multipath'
607 description: 'Enable multipath for cinder volumes'
608 weight: 260
609 type: 'checkbox'
610 restrictions:
611 - condition: "settings:cinder_kaminario.add_backend_2.value != true or settings:cinder_kaminario.add_backend_1.value != true"
612 action: 'hide'
613
614 suppress_logs_2:
615 value: false
616 label: 'Suppress Logs'
617 description: 'Suppress Additional logs created by krest'
618 weight: 261
619 type: 'checkbox'
620 restrictions:
621 - condition: "settings:cinder_kaminario.add_backend_2.value != true or settings:cinder_kaminario.add_backend_1.value != true"
622 action: 'hide'
623
624 filter_function_2:
625 value: ""
626 label: 'Filter Function'
627 description: 'Filter function for backend'
628 weight: 262
629 type: "text"
630 restrictions:
631 - condition: "settings:cinder_kaminario.add_backend_2.value != true or settings:cinder_kaminario.add_backend_1.value != true"
632 action: 'hide'
633
634
635 oversubscription_ratio_2:
636 value: false
637 label: 'Oversubscription Ratio'
638 description: 'Enable Oversubscription Ratio for backend'
639 weight: 263
640 type: 'checkbox'
641 restrictions:
642 - condition: "settings:cinder_kaminario.add_backend_2.value != true or settings:cinder_kaminario.add_backend_1.value != true"
643 action: 'hide'
644
645
646
533 add_backend_3: 647 add_backend_3:
534 value: false 648 value: false
535 label: 'Add a new kaminario backend or scale an existing backend' 649 label: 'Add a new kaminario backend or scale an existing backend'
@@ -694,9 +808,9 @@ attributes:
694 - data: "enable_replication_type" 808 - data: "enable_replication_type"
695 label: "Enable Replication" 809 label: "Enable Replication"
696 - data: "enable_dedup" 810 - data: "enable_dedup"
697 label: "Enable Deduplication" 811 label: "Enable Non Deduplication"
698 - data: "replication_dedup" 812 - data: "replication_dedup"
699 label: "Enable both Replication and Deduplication" 813 label: "Enable both Replication and Non Deduplication"
700 restrictions: 814 restrictions:
701 - condition: "settings:cinder_kaminario.create_type_3.value == false" 815 - condition: "settings:cinder_kaminario.create_type_3.value == false"
702 action: 'hide' 816 action: 'hide'
@@ -708,9 +822,51 @@ attributes:
708 weight: 335 822 weight: 335
709 type: 'checkbox' 823 type: 'checkbox'
710 restrictions: 824 restrictions:
711 - condition: "settings:cinder_kaminario.create_type_3.value == false or (settings:cinder_kaminario.default_type_0.value == false or settings:cinder_kaminario.default_type_1.value == false or settings:cinder_kaminario.default_type_2.value == false or settings:cinder_kaminario.default_type_3.value == false or settings:cinder_kaminario.default_type_4.value == false or settings:cinder_kaminario.default_type_5.value == false)" 825 - condition: "settings:cinder_kaminario.create_type_3.value == false"
712 action: 'hide' 826 action: 'hide'
713 827
828 enable_multipath_3:
829 value: false
830 label: 'Enable Multipath'
831 description: 'Enable multipath for cinder volumes'
832 weight: 340
833 type: 'checkbox'
834 restrictions:
835 - condition: "settings:cinder_kaminario.add_backend_3.value != true or settings:cinder_kaminario.add_backend_2.value != true or settings:cinder_kaminario.add_backend_1.value != true"
836 action: 'hide'
837
838 suppress_logs_3:
839 value: false
840 label: 'Suppress Logs'
841 description: 'Suppress Additional logs created by krest'
842 weight: 341
843 type: 'checkbox'
844 restrictions:
845 - condition: "settings:cinder_kaminario.add_backend_3.value != true or settings:cinder_kaminario.add_backend_2.value != true or settings:cinder_kaminario.add_backend_1.value != true"
846 action: 'hide'
847
848 filter_function_3:
849 value: ""
850 label: 'Filter Function'
851 description: 'Filter function for backend'
852 weight: 342
853 type: "text"
854 restrictions:
855 - condition: "settings:cinder_kaminario.add_backend_3.value != true or settings:cinder_kaminario.add_backend_2.value != true or settings:cinder_kaminario.add_backend_1.value != true"
856 action: 'hide'
857
858
859 oversubscription_ratio_3:
860 value: false
861 label: 'Oversubscription Ratio'
862 description: 'Enable Oversubscription Ratio for backend'
863 weight: 343
864 type: 'checkbox'
865 restrictions:
866 - condition: "settings:cinder_kaminario.add_backend_3.value != true or settings:cinder_kaminario.add_backend_2.value != true or settings:cinder_kaminario.add_backend_1.value != true"
867 action: 'hide'
868
869
714 add_backend_4: 870 add_backend_4:
715 value: false 871 value: false
716 label: 'Add a new kaminario backend or scale an existing backend' 872 label: 'Add a new kaminario backend or scale an existing backend'
@@ -877,9 +1033,9 @@ attributes:
877 - data: "enable_replication_type" 1033 - data: "enable_replication_type"
878 label: "Enable Replication" 1034 label: "Enable Replication"
879 - data: "enable_dedup" 1035 - data: "enable_dedup"
880 label: "Enable Deduplication" 1036 label: "Enable Non Deduplication"
881 - data: "replication_dedup" 1037 - data: "replication_dedup"
882 label: "Enable both Replication and Deduplication" 1038 label: "Enable both Replication and Non Deduplication"
883 restrictions: 1039 restrictions:
884 - condition: "settings:cinder_kaminario.create_type_4.value == false" 1040 - condition: "settings:cinder_kaminario.create_type_4.value == false"
885 action: 'hide' 1041 action: 'hide'
@@ -891,9 +1047,52 @@ attributes:
891 weight: 420 1047 weight: 420
892 type: 'checkbox' 1048 type: 'checkbox'
893 restrictions: 1049 restrictions:
894 - condition: "settings:cinder_kaminario.create_type_4.value == false or (settings:cinder_kaminario.default_type_0.value == false or settings:cinder_kaminario.default_type_1.value == false or settings:cinder_kaminario.default_type_2.value == false or settings:cinder_kaminario.default_type_3.value == false or settings:cinder_kaminario.default_type_4.value == false or settings:cinder_kaminario.default_type_5.value == false)" 1050 - condition: "settings:cinder_kaminario.create_type_4.value == false"
895 action: 'hide' 1051 action: 'hide'
896 1052
1053 enable_multipath_4:
1054 value: false
1055 label: 'Enable Multipath'
1056 description: 'Enable multipath for cinder volumes'
1057 weight: 425
1058 type: 'checkbox'
1059 restrictions:
1060 - condition: "settings:cinder_kaminario.add_backend_4.value != true or settings:cinder_kaminario.add_backend_3.value != true or settings:cinder_kaminario.add_backend_2.value != true or settings:cinder_kaminario.add_backend_1.value != true"
1061 action: 'hide'
1062
1063 suppress_logs_4:
1064 value: false
1065 label: 'Suppress Logs'
1066 description: 'Suppress Additional logs created by krest'
1067 weight: 426
1068 type: 'checkbox'
1069 restrictions:
1070 - condition: "settings:cinder_kaminario.add_backend_4.value != true or settings:cinder_kaminario.add_backend_3.value != true or settings:cinder_kaminario.add_backend_2.value != true or settings:cinder_kaminario.add_backend_1.value != true"
1071 action: 'hide'
1072
1073 filter_function_4:
1074 value: ""
1075 label: 'Filter Function'
1076 description: 'Filter function for backend'
1077 weight: 427
1078 type: "text"
1079 restrictions:
1080 - condition: "settings:cinder_kaminario.add_backend_4.value != true or settings:cinder_kaminario.add_backend_3.value != true or settings:cinder_kaminario.add_backend_2.value != true or settings:cinder_kaminario.add_backend_1.value != true"
1081 action: 'hide'
1082
1083
1084 oversubscription_ratio_4:
1085 value: false
1086 label: 'Oversubscription Ratio'
1087 description: 'Enable Oversubscription Ratio for backend'
1088 weight: 428
1089 type: 'checkbox'
1090 restrictions:
1091 - condition: "settings:cinder_kaminario.add_backend_4.value != true or settings:cinder_kaminario.add_backend_3.value != true or settings:cinder_kaminario.add_backend_2.value != true or settings:cinder_kaminario.add_backend_1.value != true"
1092 action: 'hide'
1093
1094
1095
897 add_backend_5: 1096 add_backend_5:
898 value: false 1097 value: false
899 label: 'Add a new kaminario backend or scale an existing backend' 1098 label: 'Add a new kaminario backend or scale an existing backend'
@@ -1060,9 +1259,9 @@ attributes:
1060 - data: "enable_replication_type" 1259 - data: "enable_replication_type"
1061 label: "Enable Replication" 1260 label: "Enable Replication"
1062 - data: "enable_dedup" 1261 - data: "enable_dedup"
1063 label: "Enable Deduplication" 1262 label: "Enable Non Deduplication"
1064 - data: "replication_dedup" 1263 - data: "replication_dedup"
1065 label: "Enable both Replication and Deduplication" 1264 label: "Enable both Replication and Non Deduplication"
1066 restrictions: 1265 restrictions:
1067 - condition: "settings:cinder_kaminario.create_type_5.value == false" 1266 - condition: "settings:cinder_kaminario.create_type_5.value == false"
1068 action: 'hide' 1267 action: 'hide'
@@ -1074,5 +1273,45 @@ attributes:
1074 weight: 505 1273 weight: 505
1075 type: 'checkbox' 1274 type: 'checkbox'
1076 restrictions: 1275 restrictions:
1077 - condition: "settings:cinder_kaminario.create_type_5.value == false or (settings:cinder_kaminario.default_type_0.value == false or settings:cinder_kaminario.default_type_1.value == false or settings:cinder_kaminario.default_type_2.value == false or settings:cinder_kaminario.default_type_3.value == false or settings:cinder_kaminario.default_type_4.value == false or settings:cinder_kaminario.default_type_5.value == false)" 1276 - condition: "settings:cinder_kaminario.create_type_5.value == false"
1078 action: 'hide' 1277 action: 'hide'
1278
1279 enable_multipath_5:
1280 value: false
1281 label: 'Enable Multipath'
1282 description: 'Enable multipath for cinder volumes'
1283 weight: 510
1284 type: 'checkbox'
1285 restrictions:
1286 - condition: "settings:cinder_kaminario.add_backend_5.value != true or settings:cinder_kaminario.add_backend_4.value != true or settings:cinder_kaminario.add_backend_3.value != true or settings:cinder_kaminario.add_backend_2.value != true or settings:cinder_kaminario.add_backend_1.value != true"
1287 action: 'hide'
1288
1289 suppress_logs_5:
1290 value: false
1291 label: 'Suppress Logs'
1292 description: 'Suppress Additional logs created by krest'
1293 weight: 511
1294 type: 'checkbox'
1295 restrictions:
1296 - condition: "settings:cinder_kaminario.add_backend_5.value != true or settings:cinder_kaminario.add_backend_4.value != true or settings:cinder_kaminario.add_backend_3.value != true or settings:cinder_kaminario.add_backend_2.value != true or settings:cinder_kaminario.add_backend_1.value != true"
1297 action: 'hide'
1298
1299 filter_function_5:
1300 value: ""
1301 label: 'Filter Function'
1302 description: 'Filter function for backend'
1303 weight: 512
1304 type: "text"
1305 restrictions:
1306 - condition: "settings:cinder_kaminario.add_backend_5.value != true or settings:cinder_kaminario.add_backend_4.value != true or settings:cinder_kaminario.add_backend_3.value != true or settings:cinder_kaminario.add_backend_2.value != true or settings:cinder_kaminario.add_backend_1.value != true"
1307 action: 'hide'
1308
1309 oversubscription_ratio_5:
1310 value: false
1311 label: 'Oversubscription Ratio'
1312 description: 'Enable Oversubscription Ratio for backend'
1313 weight: 513
1314 type: 'checkbox'
1315 restrictions:
1316 - condition: "settings:cinder_kaminario.add_backend_5.value != true or settings:cinder_kaminario.add_backend_4.value != true or settings:cinder_kaminario.add_backend_3.value != true or settings:cinder_kaminario.add_backend_2.value != true or settings:cinder_kaminario.add_backend_1.value != true"
1317 action: 'hide'