If you are interested in getting an OCP deployment running as quickly as possible you will find in the
/sample folder some configuration examples to run the
DCI Openshift Agent in a “all-in-one” full virtualized environment.
In this case, the agent will use
libvirt virtual machines deployed on top of the DCI
Please note that systems might be nested virtual machines if the DCI Jumpbox is already a virtual machine.
The full virtualized environment scenario requires the DCI Jumpbox to have at least 64 Gi of memory and 200 Gi of storage to host a virtual provision machine and all virtual masters.
The provided example will create 4 systems (1 provisionner and 3 OCP masters) on top of the DCI Jumpbox. The number of nodes can be adapted by modifying the
This example will help you to run the
dci-openshift-agent within one single system by running
libvirt virtual machines. This example is a good path to understand the
dci-openshift-agent (all different steps, hooks, settings) and to be used as a development environment.
At this point, the
DCI Jumpbox is installed with all above prerequisites [add link to how to install the DCI-JB].
The following documentation covers how to configure deploy virtual systems, virtual networks and the according
It will also guide you to generate and use an appropriate settings file for this scenario.
Please note, that in the fully virtualized environment, the
DCI Openshift Agent will create the
Openshift Provisioning node system automatically.
First, you need to work directly as the
# su - dci-openshift-agent $ id uid=990(dci-openshift-agent) gid=987(dci-openshift-agent) groups=987(dci-openshift-agent),107(qemu),985(libvirt) ...
libvirt_up playbook to configure libvirt nodes.
This playbook will:
- Create 3 local virtual machines to be used as
System Under Test
- Create 1 local virtual machine to be used as a
- Generate the relative
hostsfile (ready to be used as an inventory for the
- Provide a
pre-run.ymlhook file to be used by the agent.
cd ~/samples/ocp_on_libvirt/ $ ansible-playbook -v libvirt_up.yml
Copy the newly created file
hosts to the
$ pwd ~/samples/ocp_on_libvirt $ sudo cp hosts /etc/dci-openshift-agent/
dci-openshift-agent is now ready to run the “all-in-one” virtualized workflow.
You can check the virtual machines status by using
$ sudo virsh list --all Id Name State ---------------------------------------------------- 60 provisionhost running 64 master-0 off 65 master-2 off 66 master-1 off
After you run a DCI job (see the main
README.md) you will be able to interact with the RHOCP cluster:
$ export KUBECONFIG=/home/admin/clusterconfigs/auth/kubeconfig $ oc get pods --all-namespaces
In case you need to delete the full virtualized environment, you can run the playbook
libvirt_destroy.yml located in
$ cd ~/samples/ocp_on_libvirt/ $ ansible-playbook -v libvirt_destroy.yml
We have provided dnsmasq config templates in the samples directory to serve dhcp/dns from the dci jumpbox if you don’t already have a dns/dhcp server on your bare metal network.
Apache License, Version 2.0 (see LICENSE file)
Email: Distributed-CI Team firstname.lastname@example.org IRC: #distributed-ci on Freenode