-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FEAT: RoCE and Hipersocket support for LPAR Cluster (#338)
Adding support for the Roce and Hipersocket for LPAR Cluster Introduced one new variable to all.yaml and two new variables to the host_vars_template In all.yaml `internal_ip` which need to defined when bringing up the cluster with hipersocket cards. In host_vars `mode` tells the network card mode like osa/roce/hipersocket `internal_ip` needs to be defined when mode is hipersocket --------- Signed-off-by: K Shiva Sai <[email protected]> Co-authored-by: K Shiva Sai <[email protected]>
- Loading branch information
1 parent
fbbe4b0
commit 41f3a59
Showing
12 changed files
with
85 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
inventories/default/host_vars/KVMhostname1-here.yaml.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
inventories/default/host_vars/KVMhostname2-here.yaml.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
inventories/default/host_vars/KVMhostname3-here.yaml.template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
- name: Setting the Hipersocket card on the bastion | ||
command: | ||
cmd: "chzdev -e {{ lpar.networking.nic.card1.dev_num.split(',')[0].split('.')[-1] }}-{{ lpar.networking.nic.card1.dev_num.split(',')[-1].split('.')[-1] }} layer2=1" | ||
|
||
- name: Add the IP address to the hipersocket card on bastion | ||
command: | ||
cmd: ip addr add '{{ env.bastion.networking.internal_ip }}/24' dev '{{ networking.device1 }}' | ||
register: result | ||
failed_when: "'exists' not in result.stderr and result.rc != 0" | ||
|
||
- name: Enabiling the IP forwarding to OSA when networking mode is hipersocket | ||
command: | ||
cmd: sysctl -w net.ipv4.ip_forward=1 | ||
|
||
- name: Allowing masquerade on bastion when networking mode is hipersocket | ||
command: | ||
cmd: iptables -t nat -A POSTROUTING -o '{{ env.cluster.networking.interface }}' -j MASQUERADE | ||
|
||
- name: Enabiling the firewall masquerade | ||
firewalld: | ||
masquerade: yes | ||
permanent: true | ||
state: enabled | ||
zone: public | ||
|
||
- name: Restart firewall service | ||
systemd: | ||
name: firewalld | ||
state: restarted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters