summaryrefslogtreecommitdiffstats
path: root/.papr.sh
diff options
context:
space:
mode:
authorJonathan Lebon <jlebon@redhat.com>2017-06-13 09:54:06 -0400
committerJonathan Lebon <jlebon@redhat.com>2017-06-13 09:56:04 -0400
commit18644c77be32ff6adf385c4b1fde18f7d66312d6 (patch)
tree5232dadf81ccfb99b2c312c53fbd98bf426d636c /.papr.sh
parent8603fb127a9e871e491362ad550377971b8d4979 (diff)
downloadopenshift-18644c77be32ff6adf385c4b1fde18f7d66312d6.tar.gz
openshift-18644c77be32ff6adf385c4b1fde18f7d66312d6.tar.bz2
openshift-18644c77be32ff6adf385c4b1fde18f7d66312d6.tar.xz
openshift-18644c77be32ff6adf385c4b1fde18f7d66312d6.zip
papr: rename redhat-ci related files to papr
The project was renamed to PAPR, see: https://github.com/projectatomic/papr
Diffstat (limited to '.papr.sh')
-rwxr-xr-x.papr.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/.papr.sh b/.papr.sh
new file mode 100755
index 000000000..aedf2527b
--- /dev/null
+++ b/.papr.sh
@@ -0,0 +1,28 @@
+#!/bin/bash
+set -xeuo pipefail
+
+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\""'