Skip to content

Commit

Permalink
introduce variables for dns and gateway
Browse files Browse the repository at this point in the history
Signed-off-by: tkucherera <tkucherera@lenovo.com>

add host

Signed-off-by: tkucherera <tkucherera@lenovo.com>

update lmod

Signed-off-by: tkucherera <tkucherera@lenovo.com>
  • Loading branch information
tkucherera-lenovo committed Oct 15, 2024
1 parent 8fae903 commit 09c9f85
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 6 deletions.
18 changes: 17 additions & 1 deletion docs/recipes/install/common/add_confluent_hosts_intro.tex
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
[sms](*\#*) for ((i=0; i<$num_computes; i++)) ; do
nodedefine ${c_name[$i]} groups=everything,compute hardwaremanagement.manager=${c_bmc[$i]} \
secret.hardwaremanagementuser=${bmc_username} secret.hardwaremanagementpassword=${bmc_password} \
net.hwaddr=${c_mac[$i]}
net.hwaddr=${c_mac[$i]} net.ipv4_address=${c_ip[$i]}
done
\end{lstlisting}
% end_ohpc_run
Expand All @@ -41,6 +41,7 @@
\end{tcolorbox}
\end{center}


%\clearpage
If enabling {\em optional} IPoIB functionality (e.g. to support Lustre over \InfiniBand{}), additional
settings are required to define the IPoIB network with \Confluent{} and specify
Expand All @@ -62,6 +63,21 @@
% ohpc_command fi
% end_ohpc_run

%\clearpage
confluent2hosts can be used to help generate /etc/hosts entries for a noderange.
It can read from the confluent db, using -a. In this mode, each net.value.attribute
group is pulled together into hosts lines. ipv4_address and ipv6_address
fields are associated with the corresponding hostname attributes.

% begin_ohpc_run
% ohpc_validation_newline
% ohpc_validation_comment Generating lines to append to local /etc/hosts
\begin{lstlisting}[language=bash,keywords={},upquote=true,basicstyle=\footnotesize\ttfamily]
# Add nodes to /etc/hosts
[sms](*\#*) confluent2hosts -a compute
\end{lstlisting}
% end_ohpc_run

%\clearpage
With the desired compute nodes and domain identified, the remaining steps in the
provisioning configuration process are to define the provisioning mode and
Expand Down
2 changes: 1 addition & 1 deletion docs/recipes/install/common/confluent_setup.tex
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
% ohpc_validation_comment Define local domainname, deployment protocol and dns
\begin{lstlisting}[language=bash,keywords={},upquote=true,basicstyle=\footnotesize\ttfamily,literate={BOSVER}{\baseos{}}1]
[sms](*\#*) nodegroupattrib everything deployment.useinsecureprotocols=${deployment_protocols} dns.domain=${dns_domain}
[sms](*\#*) nodegroupattrib everything dns.servers=${dns_servers} net.ipv4_gateway=${sms_ip}
[sms](*\#*) nodegroupattrib everything dns.servers=${dns_servers} net.ipv4_gateway=${ipv4_gateway}
\end{lstlisting}

\noindent We will also define
6 changes: 5 additions & 1 deletion docs/recipes/install/rocky9/input.local.template
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ sms_eth_internal="${sms_eth_internal:-eth1}"
# Subnet netmask for internal cluster network
internal_netmask="${internal_netmask:-255.255.0.0}"

# ipv4 gateway
ipv4_gateway="${ipv4_gateway:-172.16.0.2}
# Local ntp server for time synchronization
ntp_server="${ntp_server:-0.centos.pool.ntp.org}"
Expand All @@ -31,7 +34,8 @@ bmc_password="${bmc_password:-unknown}"
# Additional time to wait for compute nodes to provision (seconds)
provision_wait="${provision_wait:-180}"
# Local domainname for cluster (xCAT recipe only)
# DNS Local domainname for cluster (xCAT and Confluent recipe only)
dns_servers="${dns_sersers:-172.30.0.254}"
domain_name="${domain_name:-local}"
# Path to copy of OS ISO image (xCAT recipe only)
Expand Down
16 changes: 13 additions & 3 deletions docs/recipes/install/rocky9/x86_64/confluent/slurm/steps.tex
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,10 @@ \subsection{Enable \OHPC{} repository for local use} \label{sec:enable_repo}

% begin_ohpc_run
\begin{lstlisting}[language=bash,keywords={},basicstyle=\fontencoding{T1}\fontsize{8.0}{10}\ttfamily,literate={ARCH}{\arch{}}1 {-}{-}1]
[sms](*\#*) (*\install*) epel-release
[sms](*\#*) (*\install*) epel-release

# Enable crb on sms
[sms](*\#*) /usr/bin/crb enable
\end{lstlisting}
% end_ohpc_run

Expand Down Expand Up @@ -202,11 +205,14 @@ \subsubsection{Add \OHPC{} components} \label{sec:add_components}
# Add kernel drivers
[sms](*\#*) (*\chrootinstall*) kernel

# Include modules user environment
[sms](*\#*) (*\chrootinstall*) --enablerepo=powertools lmod-ohpc
# Enable crb
[sms](*\#*) nodeshell compute /usr/bin/crb enable

# Include nfs-utils
[sms](*\#*) (*\chrootinstall*) nfs-utils

# Include modules user environment
[sms](*\#*) (*\chrootinstall*) lmod-ohpc
\end{lstlisting}


Expand Down Expand Up @@ -337,3 +343,7 @@ \section{Run a Test Job} \label{sec:test_job}







0 comments on commit 09c9f85

Please sign in to comment.