Skip to content

Commit 89f12a6

Browse files
authored
Merge pull request #555 from IBM/dev
Dev ==> Master
2 parents d7780e3 + 0c924d3 commit 89f12a6

File tree

23 files changed

+297
-321
lines changed

23 files changed

+297
-321
lines changed

roles/callhome/node/tasks/zypper/install.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@
1212

1313
- name: install | Enable repo metadata gpg check
1414
command: "zypper modifyrepo --default-gpgcheck --all"
15+
args:
16+
warn: false
17+

roles/core/cluster/tasks/cluster.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
find:
7474
paths: "{{ scale_cluster_profile_dir_path }}"
7575
patterns: "{{ scale_cluster_profile_name }}.profile"
76+
hidden: yes
7677
register: stat_user_profile_result
7778
run_once: true
7879
delegate_to: localhost
@@ -104,7 +105,7 @@
104105
copy:
105106
src: "{{ stat_user_profile_result.files.0.path }}"
106107
dest: "{{ scale_cluster_profile_system_path }}"
107-
mode: a+x
108+
mode: '0444'
108109
when:
109110
- scale_cluster_profile_name is defined and scale_cluster_profile_name != 'None'
110111
- scale_cluster_profile_name not in gpfs_cluster_system_profile
@@ -134,7 +135,7 @@
134135
profile_type: "--profile {{ scale_cluster_profile_name }}"
135136
when:
136137
- scale_cluster_profile_name is defined and scale_cluster_profile_name != 'None'
137-
- (stat_profile_result.matched) == 1 or (stat_user_profile_result is defined and stat_user_profile_result.matched == 1)
138+
- (stat_profile_result.matched is defined and stat_profile_result.matched == 1) or (stat_user_profile_result.matched is defined and stat_user_profile_result.matched == 1)
138139

139140
- name: cluster | Set gpfs remote shell command if it is defined
140141
set_fact:

roles/core/cluster/tasks/config.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,28 @@
114114
when:
115115
- scale_cluster_config is defined and scale_cluster_config.ephemeral_port_range is defined
116116
run_once: true
117+
118+
- block:
119+
- name: config | Check if numaMemoryInterleave config for s390x is set to yes
120+
command: "{{ scale_command_path }}mmlsconfig numaMemoryInterleave"
121+
register: scale_numamemory
122+
failed_when: false
123+
124+
- name: config | Setting numaMemoryInterleave config for s390x
125+
command: "{{ scale_command_path }}mmchconfig numaMemoryInterleave=no"
126+
when:
127+
- scale_numamemory.stdout is defined
128+
- "'yes' in scale_numamemory.stdout"
129+
register: scale_numamemory_cmd
130+
failed_when: false
131+
132+
- debug:
133+
msg: "{{ scale_numamemory_cmd.cmd }}"
134+
when: scale_numamemory_cmd.cmd is defined
135+
ignore_errors: yes
136+
failed_when: false
137+
138+
when:
139+
- ansible_architecture == "s390x"
140+
ignore_errors: yes
141+
run_once: true

roles/gui/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ scale_cluster_gui: true ##Dual/HA GUI
156156
```
157157

158158

159-
- For more information check out man pages and https://www.ibm.com/support/knowledgecenter/en/STXKQY/ibmspectrumscale_welcome.html
159+
- For more information check out man pages and https://www.ibm.com/docs/en/spectrum-scale
160160

161161

162162

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
---
2-
- name: install | Initialize
3-
set_fact:
4-
disable_gpgcheck: "no"
5-
6-
- name: install | Disable gpg check
7-
set_fact:
8-
disable_gpgcheck: "yes"
9-
when: scale_version < '5.0.4.0'
10-
112
- name: install | Install GPFS nfs packages
123
yum:
134
name: "{{ scale_install_all_packages }}"
145
state: present
15-
disable_gpg_check: "{{ disable_gpgcheck }}"
6+
disable_gpg_check: "{{ scale_disable_gpgcheck }}"
167
when: ansible_fqdn in scale_nfs_nodes_list
Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
---
2-
- name: upgrade | Initialize
3-
set_fact:
4-
disable_gpgcheck: "no"
5-
6-
- name: upgrade | Disable gpg check
7-
set_fact:
8-
disable_gpgcheck: "yes"
9-
when: scale_version < '5.0.4.0'
10-
112
- name: upgrade | Upgrade GPFS nfs packages
123
yum:
134
name: "{{ scale_install_all_packages }}"
145
state: latest
15-
disable_gpg_check: "{{ disable_gpgcheck }}"
6+
disable_gpg_check: "{{ scale_disable_gpgcheck }}"

roles/remote_mount/tasks/mount_filesystem.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
- name: scale_remotemount_debug | Storage Cluster | Print the Cluster Information
1919
debug:
2020
msg: "{{ owning_cluster_info }}"
21-
when: scale_remotemount_debug is true
21+
when: scale_remotemount_debug is defined and scale_remotemount_debug | bool
2222

2323
- name: Client Cluster (access) | GET the Cluster Information
2424
uri:
@@ -36,7 +36,7 @@
3636
- name: scale_remotemount_debug | Client Cluster | Print the Cluster Information
3737
debug:
3838
msg: "{{ access_cluster_info }}"
39-
when: scale_remotemount_debug is true
39+
when: scale_remotemount_debug is defined and scale_remotemount_debug | bool
4040

4141
- set_fact:
4242
access_cluster_name: "{{ access_cluster_info.json.cluster.clusterSummary.clusterName }}"
@@ -45,7 +45,7 @@
4545
- name: scale_remotemount_debug | Print out the Storage and Client Cluster Names
4646
debug:
4747
msg: "Access: {{ access_cluster_name }} and Owning: {{ owning_cluster_name }}"
48-
when: scale_remotemount_debug is true
48+
when: scale_remotemount_debug is defined and scale_remotemount_debug | bool
4949

5050
#
5151
# When scale_remotemount_forceRun, do some cleanup to properly unmount and remove things
@@ -119,7 +119,7 @@
119119
- name: scale_remotemount_debug | Print out the Client Cluster (access) Public Key results
120120
debug:
121121
var: accesskey_result
122-
when: scale_remotemount_debug is true
122+
when: scale_remotemount_debug is defined and scale_remotemount_debug | bool
123123

124124
- name: Storage Cluster (owner) | Send the Public Key of the Client Cluster (access)
125125
uri:
@@ -172,7 +172,7 @@
172172
- name: scale_remotemount_debug | Print out the Storage Cluster (owing) Public Key results
173173
debug:
174174
var: owningkey_result
175-
when: scale_remotemount_debug is true
175+
when: scale_remotemount_debug is defined and scale_remotemount_debug | bool
176176

177177
- name: Step 3
178178
debug:
@@ -191,7 +191,7 @@
191191
- name: scale_remotemount_debug | Print out the remote clusters
192192
debug:
193193
msg: "{{ remote_clusters_result.json }}"
194-
when: scale_remotemount_debug is true
194+
when: scale_remotemount_debug is defined and scale_remotemount_debug | bool
195195

196196
# The remote_clusters_results is in an array, so looping here incase there are multiple remote clusters
197197
# We want to delete the one where the owningCluster name matches what we are trying to do a remote mount on
@@ -223,7 +223,7 @@
223223
- name: scale_remotemount_debug | Print out the array storing the nodes in the Storage Cluster (owning)
224224
debug:
225225
msg: "{{ owning_nodes_name }}"
226-
when: scale_remotemount_debug is true
226+
when: scale_remotemount_debug is defined and scale_remotemount_debug | bool
227227

228228
- name: Client Cluster (access) | Add Storage Cluster as a Remote Cluster
229229
uri:
Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
---
2-
- name: Initialize
3-
set_fact:
4-
disable_gpgcheck: "no"
5-
6-
- name: Disable gpg check
7-
set_fact:
8-
disable_gpgcheck: "yes"
9-
when: scale_version < '5.0.4.0'
10-
112
- name: install | Install GPFS gnr packages
123
yum:
134
name: "{{ scale_install_all_packages }}"
145
state: present
15-
disable_gpg_check: "{{ disable_gpgcheck }}"
6+
disable_gpg_check: "{{ scale_disable_gpgcheck }}"
Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,15 @@
11
---
2-
- name: Initialize
3-
set_fact:
4-
disable_gpgcheck: "no"
5-
6-
- name: Disable gpg check
7-
set_fact:
8-
disable_gpgcheck: "yes"
9-
when: scale_version < '5.0.4.0'
10-
112
- name: upgrade | Upgrade GPFS gnr packages
123
yum:
134
name: "{{ scale_install_all_packages }}"
145
state: latest
156
update_only: yes
16-
disable_gpg_check: "{{ disable_gpgcheck }}"
7+
disable_gpg_check: "{{ scale_disable_gpgcheck }}"
178
when: ansible_pkg_mgr == 'yum'
189

19-
2010
- name: upgrade | Upgrade GPFS gnr packages
2111
package:
2212
name: "{{ scale_install_all_packages }}"
2313
state: latest
24-
disable_gpg_check: "{{ disable_gpgcheck }}"
14+
disable_gpg_check: "{{ scale_disable_gpgcheck }}"
2515
when: ansible_distribution in scale_rhel_distribution and ansible_distribution_major_version >= '8'

roles/scale_fileauditlogging/node/handlers/main.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)