-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
• Updated quick start with Installing from the Developer perspective option • General documentation improvements • Fixes in OpenShift template installation • Updated automated testing using OpenShift 3.9
- Loading branch information
Showing
9 changed files
with
134 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,42 @@ | ||
The scripts in this folder are used for CI, based on [RedHat CRC](https://developers.redhat.com/products/codeready-containers/overview) | ||
|
||
Assumptions: VM in GCP with "vagrant" user, CRC installed, /opt directory with `passw` and `pullsecret` contents. /opt/scripts and /opt/templates directory exist (no content needed). | ||
Assumptions: VM `openshift4x-test` in GCP with `vagrant` user, `crc` installed, `/opt` directory exists with file `pullsecret` that contains valid contents. `/opt/scripts` and `/opt/templates` directories exist (no content needed). Generally, `crc` works in this container. | ||
|
||
# How to verify the VM is in good standing | ||
|
||
Perform following: | ||
|
||
* Ensure the `openshift4x-test` VM in GCP is in running state. | ||
* Login as `gcloud beta compute ssh --zone "us-east4-a" "vagrant@openshift4x-test" --project "capable-stream-180018"`. This will login as user `vagrant`. | ||
* Run following scripts - none of then shall fail | ||
``` | ||
cd /opt | ||
./scripts/shutdownCrc | ||
./scripts/startCrc | ||
./scripts/helmInstallBroker test1 | ||
./scripts/templateDeleteBroker test1 | ||
./scripts/shutdownCrc | ||
``` | ||
* If all is well the stop the VM. Automated tests will quit if the VM is already running, assuming it is used for other purposes. | ||
|
||
# How to upgrade the test container to latest CRC version | ||
|
||
If `crc` requires update for a later OpenShift version: | ||
|
||
* Login as user `vagrant` to the running VM as above | ||
* Follow section 2.4. Upgrading CodeReady Containers from https://access.redhat.com/documentation/en-us/red_hat_codeready_containers, Getting Started Guide. Untar then overwrite the existing `crc` command at `/usr/local/bin/crc` | ||
* Upgrade the `/usr/local/bin/oc` command similarly if required. | ||
* Run | ||
``` | ||
crc version | ||
crc stop | ||
crc setup | ||
``` | ||
* Fix any issues | ||
* Proceed to verify the VM as in the previous section | ||
|
||
# Restore from disaster | ||
|
||
A machine image has been saved at https://console.cloud.google.com/compute/machineImages/details/openshift4x-test-backup?authuser=0&project=capable-stream-180018. | ||
|
||
Note the machine type must support virtualization: `n1-standard-8` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
loginctl enable-linger $USER | ||
export XDG_RUNTIME_DIR=/run/user/$(id -u) | ||
cd /opt | ||
sudo systemctl stop systemd-networkd.socket systemd-networkd networkd-dispatcher systemd-networkd-wait-online | ||
sudo systemctl disable systemd-networkd.socket systemd-networkd networkd-dispatcher systemd-networkd-wait-online | ||
sudo /etc/init.d/network-manager start | ||
crc setup | ||
crc start -p /opt/pullsecret -c 7 -m 26700 --nameserver 1.1.1.1 | ||
crc start -p /opt/pullsecret -c 7 -m 26700 --nameserver 1.1.1.1 | tee out | ||
cat out | grep kubeadmin -A 1 | grep Password | cut -d ":" -f 2 | xargs > /opt/passw | ||
eval $(crc oc-env) | ||
while ! oc login -u kubeadmin -p `cat /opt/passw` https://api.crc.testing:6443 ; do sleep 1 ; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.