The goal here is to allow me to test out OpenShift Container Platform on top of Red Hat OpenStack Platform. I want to be able to build and tear down the environment quickly so I can check out different configurations. OpenStack provides a way for me to do this via snapshots.
The first thing I did was upload a RHEL 7 image. Then I booted and configured two servers from that image:
- Bastion Host
- Master-Infra-AppNode
$ nova list
+--------------------------------------+---------------------------+---------+------------+-------------+------------------------------------------------------------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+---------------------------+---------+------------+-------------+------------------------------------------------------------------------+
| 82a42602-030f-4137-94bb-bac5f275dc1b | bastion-gold | SHUTOFF | - | Shutdown | tenant-network=172.18.20.13; control-network=192.168.x.6, 10.19.x.80 |
| 17a505d0-9252-4a65-a0c8-196f6f25e605 | master-infra-appnode-gold | SHUTOFF | - | Shutdown | tenant-network=172.18.20.4; control-network=192.168.x.5, 10.19.x.53 |
+--------------------------------------+---------------------------+---------+------------+-------------+------------------------------------------------------------------------+
After the servers were configured, I shut them down and created an image from each of those servers called "bastion-gold" image, and "master-infra-appnode-gold" image. This will allow for me to create my OpenShift Container Platform environment from these images. The steps I followed to create the snapshots are:
$ openstack server list
$ nova image-create --poll master-infra-appnode-gold sc-master-0.rhops.eng.x.x.redhat.com-snap
$ nova image-create --poll master-infra-appnode-gold sc-node-0.rhops.eng.x.x.redhat.com-snap
$ nova image-create --poll master-infra-appnode-gold sc-node-1.rhops.eng.x.x.redhat.com-snap
$ nova image-create --poll bastion-gold sc-bastion.rhops.eng.x.x.redhat.com-snap