From Fedora Project Wiki
Description
This testcase ensures it's possible to get an OpenShift Cluster running using 'oc cluster up'
Setup
- Ensure you have a booted working Atomic Host
How to test
- Install 'origin-clients'
# rpm-ostree install origin-clients
- Reboot the host
- Configure insecure registries for docker by editing /etc/containers/registries.conf and adding the CIDR range '172.30.0.0/16' under the 'registries.insecure' section:
# This is a system-wide configuration file used to # keep track of registries for various container backends. # It adheres to TOML format and does not support recursive # lists of registries. # The default location for this configuration file is /etc/containers/registries.conf. # The only valid categories are: 'registries.search', 'registries.insecure', # and 'registries.block'. [registries.search] registries = ['docker.io', 'registry.fedoraproject.org', 'registry.access.redhat.com'] # If you need to access insecure registries, add the registry's fully-qualified name. # An insecure registry is one that does not have a valid SSL certificate or only does HTTP. [registries.insecure] registries = ['172.30.0.0/16'] # If you need to block pull access from a registry, uncomment the section below # and add the registries fully-qualified name. # # Docker only [registries.block] registries = []
- Restart the 'registries' and 'docker' services
# systemctl restart registries docker
- Use 'oc cluster up' to get the OpenShift Origin cluster running
# oc cluster up
- You should see some output similar to this:
# oc cluster up
- Login as the administrator
# oc login -u system:admin
- Switch to 'default' project
# oc project default
- Get the 'status' and all the components
Expected Results
- Step #1 completes without error
- The system boots into runlevel 5
- Program completes with exit code 0