From 18644c77be32ff6adf385c4b1fde18f7d66312d6 Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Tue, 13 Jun 2017 09:54:06 -0400 Subject: papr: rename redhat-ci related files to papr The project was renamed to PAPR, see: https://github.com/projectatomic/papr --- .papr.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 .papr.sh (limited to '.papr.sh') 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\""' -- cgit v1.2.3 From b122e6a655a3a9807ea38741bfc6be6cc5f28436 Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Tue, 13 Jun 2017 11:51:23 -0400 Subject: papr: add documentation to YAML and simplify context Don't duplicate the actual image tag used in the context. Just print it in the logs instead. That way there's no risk of it being outdated when we bump the tag in the YAML. --- .papr.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to '.papr.sh') diff --git a/.papr.sh b/.papr.sh index aedf2527b..fe0b97b68 100755 --- a/.papr.sh +++ b/.papr.sh @@ -1,6 +1,8 @@ #!/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 -- cgit v1.2.3