Perform the following prerequisite steps at the target cluster:
- Run the following commands and ensure that all the nodes and pods are healthy and running.
kubectl get nodes -A
kubectl get pods -A - Run the following command to install the sshpass and rsync package on the Dell Telecom Infrastructure Automation Suite Global Controller (CP1) node.
For Ubuntu operating system:
sudo apt-get update
sudo apt-get install sshpass rsyncFor Red Hat Enterprise Linux operating system:
sudo yum install sshpass rsync
- Run the following command that ensures Dell Telecom Infrastructure Automation Foundation CP1 is a known host for Dell Telecom Infrastructure Automation Suite CP1:
Wheresudo ssh <user>@<DTIAF 1.1 CP1 IP>
<DTIAF 1.1 CP1 IP>
is the IP address of the Dell Telecom Infrastructure Automation Foundation Global Controller (CP1) node.If you are prompted with the following message, enter
yes
.Are you sure you want to continue connecting (yes/no/[fingerprint])?
- Edit the sudoers file on the Dell Telecom Infrastructure Automation Suite Global Controller (CP1) node to grant permission to run the rsync and cat commands using sudo.
- Open the sudoers file using vi or similar editor:
sudo vi /etc/sudoers
- Add the commands to the Cmnd_Alias definition. Press the I key to switch to insert mode and edit the file.
Cmnd_Alias BIN=...existing commands..., /usr/bin/rsync,/usr/bin/cat,/bin/pip3,/bin/chown
- If the Cmnd_Alias definition does not exist in the sudoers file, add the following lines in the file at the end.
Cmnd_Alias BIN=/usr/bin/rsync,/usr/bin/cat,/bin/pip3,/bin/chown
dell ALL=NOPASSWD: BIN - Save the file and quit the editor.
- Open the sudoers file using vi or similar editor:
- Run the following command on the Dell Telecom Infrastructure Automation Foundation Global Controller (CP1) node to upgrade the PyYAML.
/usr/bin/pip3 install --upgrade pyyaml