Python scripts to test the clusters after they have been deployed
Running the python3 script use a file cluster.txt
that needs to hold three variables. The file has the same settings as in the cluster.txt file we use for the stage_workshop mass deploy
The file needs to look like:
IPADDRESS|<ADMIN_PASSWORD>|EMAILADDRESS
example: 10.10.10.37|techTest!@#|[email protected]
The easiest way is to use the file that is being used for the staging of the clusters in HPOC.
If the file is not in the correct format you can use the python3 manipulate_cluster.py
. it will add the needed information to the list of IP addresses.
Make sure the cluster.txt file has the ip addresses and the script will add |password|emailaddress
to each line at the end. This file can then be used for the deployment of the clusters.
Use python3 cluster_pe.py
to check the settings for the PE environment:
a) Eula
b) Pulse
c) Network
- Right networks?
- Right VLANs?
d) is AD configured
e) DNS servers
f) NTP servers
Use python3 cluster_pc.py
to check for the PC environment:
a) DNS servers
b) is AD integrated
c) is Calm enabled
d) is Karbon enabled
e) is Objects enabled
f) has LCM run adn updated the components
g) has Flow been enabled
h) do we have the blueprints? We check:
1) CICD
2) Citrix
3) Era deployment
4) KarbonClusterDeployment
i) Are the apps running?
j) Do we have the images uploaded? If not which are missing?
Use python3 cluster_bp.py
to check for the PC environment:
a) Are the apps running? We check:
1) Citrix Infra
2) Era Server
3) KarbonClusterDeployment
Sometimes the Karbon BP isn't able to download the Karbon Image. To force the Karbon image to download use this script. It uses the information from the cluster.txt file. Run using python3 karbon_download.py
. This will check for the image to be available. If not it tells Karbon to download the image if the Karbon version is 2.x. If it is not this version it throws an error message and continues to the next cluster.