The repository includes image-specifications (for docker currently) and yaml manifests for openshift to run oVirt deployment (oVirt-Engine and oVirt-Node).
Must use oc tool version 1.5.0 - https://github.com/openshift/origin/releases
WARNING |
---|
origin-clients rpm installation adds to /bin oc binary that might be older - verify that you work with 1.5 by "oc version" |
There are two options - running a cluster of openshift locally or using Minishift VM:
Minisift is a VM running openshift cluster in it. This mostly being used for testing for easy and quicker deployment without changing local environemnt
- Install minishift - https://github.com/minishift/minishift
- Run the following
export OCTAG=v1.5.0-rc.0
export PROJECT=ovirt
export LATEST_MINISHIFT_CENTOS_ISO_BASE=$(curl -I https://github.com/minishift/minishift-centos-iso/releases/latest | grep "Location" | cut -d: -f2- | tr -d '\r' | xargs)
export MINISHIFT_CENTOS_ISO=${LATEST_MINISHIFT_CENTOS_ISO_BASE/tag/download}/minishift-centos7.iso
minishift start --memory 4096 --iso-url=$MINISHIFT_CENTOS_ISO --openshift-version=$OCTAG
export PATH=$PATH:~/.minishift/cache/oc/$OCTAG
Just follow https://github.com/openshift/origin/blob/master/docs/cluster_up_down.md#linux
oc login -u system:admin
export PROJECT=ovirt
oc new-project $PROJECT --description="oVirt" --display-name="oVirt"
oc adm policy add-role-to-user admin developer -n $PROJECT
Allows the usage of root account inside engine pod
oc create serviceaccount useroot
oc adm policy add-scc-to-user anyuid -z useroot
oc create serviceaccount privilegeduser
oc adm policy add-scc-to-user privileged -z privilegeduser
Please note that the engine deployment is configured as paused
oc create -f os-manifests -R
oc create -f os-manifests/engine -R
oc create -f os-manifests/node -R
According to the hostname that was assigned to the associated route
oc set env dc/ovirt-engine -c ovirt-engine OVIRT_FQDN=$(oc describe routes ovirt-engine | grep "Requested Host:" | cut -d: -f2 | xargs)
oc set env ds/vdsm-kube-ds -c vdsm-kube ENGINE_FQDN=$(oc describe routes ovirt-engine | grep "Requested Host:" | cut -d: -f2 | xargs)
oc patch dc/ovirt-engine --patch '{"spec":{"paused": false}}'
oc patch ds/vdsm-kube-ds --patch '{"spec":{"paused": false}}'
Now you should be able to login as developer user (developer:admin) to the