Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
__init__.py
helper_functions.py
ssh_connection_handling.py
validate-pre-install.py

README.md

validate-pre-install.py

A script that is used to check that the prerequisites for OpenShift Container Platform are present within the target environment


Options:
  -h, --help            show this help message and exit
  --ansible-host-file=ANSIBLE_HOST_FILE
                        Specify location of ansible hostfile
  --show-sha-sums=SHOW_SHA_SUMS
                        Toggle whether or not to show the sha sum of files on
                        remote host
  --ansible-ssh-user=ANSIBLE_SSH_USER
                        Which user will ansible be run as
  --openshift-version=OPENSHIFT_VERSION
                        The version of openshift to check against
  --private-registry    Indicates whether or not you are using a private
                        registry for installation
  --nfs-booleans        Indicate whether or not to check fornfs selinux
                        booleans.

Sample Usage:

Use the default ansible hosts file, don't show the docker SHA256SUM, use the root user to make ssh connections, check the repositories for OpenShift 3.3, check the nfs SELinux booleans and check that the default docker file has been edited because a private registry is being used

./validate-pre-install.py --ansible-host-file=/etc/ansible/hosts --show-sha-sums=no --ansible-ssh-user=root --openshift-version=3.3 --nfs-booleans --private-registry

The script will output the follow information during runtime:

Checking to see if ['virt_sandbox_use_nfs', 'virt_use_nfs'] are turned on...
Checking to see if /var/lib/etcd is a partition...
Running 'yum list installed' on master02.ose.example.com...
Running 'yum list updates' on master02.ose.example.com...
Running 'sestatus' on master02.ose.example.com
Running 'systemctl status docker' on master02.ose.example.com...
Running 'subscription-manager status' on master02.ose.example.com...
Running 'subscription-manager repos' on master02.ose.example.com...
Attempting to forward lookup of master02.ose.example.com...
Attempting to reverse lookup of master02.ose.example.com...

After the script has completed a colourized, text based, tab formatted report is generated.

  • Words in YELLOW are warnings, these are no show stoppers but are worth paying attention to.
  • Words in GREEN have passed the checks appropriately
  • Words in RED are failures that need to be addressed before the installation may proceed
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.