diff options
author | Scott Dodson <sdodson@redhat.com> | 2017-06-14 19:53:30 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-14 19:53:30 -0400 |
commit | 916ea2cadd358e443f57963312a7c22f96d9cd2f (patch) | |
tree | 649e3607f19745b1b1b000de2390e7935f78fd8b /.papr.sh | |
parent | 6790ffaebdc6349d844ab3fdc3b3a58e56d63384 (diff) | |
parent | b122e6a655a3a9807ea38741bfc6be6cc5f28436 (diff) | |
download | openshift-916ea2cadd358e443f57963312a7c22f96d9cd2f.tar.gz openshift-916ea2cadd358e443f57963312a7c22f96d9cd2f.tar.bz2 openshift-916ea2cadd358e443f57963312a7c22f96d9cd2f.tar.xz openshift-916ea2cadd358e443f57963312a7c22f96d9cd2f.zip |
Merge pull request #4422 from jlebon/pr/papr
PAPR updates
Diffstat (limited to '.papr.sh')
-rwxr-xr-x | .papr.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/.papr.sh b/.papr.sh new file mode 100755 index 000000000..fe0b97b68 --- /dev/null +++ b/.papr.sh @@ -0,0 +1,30 @@ +#!/bin/bash +set -xeuo pipefail + +echo "Targeting OpenShift Origin $OPENSHIFT_IMAGE_TAG" + +pip install -r requirements.txt + +# ping the nodes to check they're responding and register their ostree versions +ansible -vvv -i .papr.inventory nodes -a 'rpm-ostree status' + +upload_journals() { + mkdir journals + for node in master node1 node2; do + ssh ocp-$node 'journalctl --no-pager || true' > journals/ocp-$node.log + done +} + +trap upload_journals ERR + +# run the actual installer +ansible-playbook -vvv -i .papr.inventory playbooks/byo/config.yml + +# run a small subset of origin conformance tests to sanity +# check the cluster NB: we run it on the master since we may +# be in a different OSP network +ssh ocp-master docker run --rm --net=host --privileged \ + -v /etc/origin/master/admin.kubeconfig:/config fedora:25 sh -c \ + '"dnf install -y origin-tests && \ + KUBECONFIG=/config /usr/libexec/origin/extended.test --ginkgo.v=1 \ + --ginkgo.noColor --ginkgo.focus=\"Services.*NodePort|EmptyDir\""' |