Skip to content

Commit

Permalink
Merge pull request openshift#4005 from jlebon/pr/rhci-journals
Browse files Browse the repository at this point in the history
Merged by openshift-bot
  • Loading branch information
OpenShift Bot authored Apr 26, 2017
2 parents c12b009 + 701ee1b commit 5f49e91
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 20 deletions.
29 changes: 29 additions & 0 deletions .redhat-ci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash
set -xeuo pipefail

# F25 currently has 2.2.1, so install from pypi
pip install ansible==2.2.2.0

# do a simple ping to make sure the nodes are available
ansible -vvv -i .redhat-ci.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 .redhat-ci.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\""'
25 changes: 5 additions & 20 deletions .redhat-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,13 @@ packages:
- openssl-devel
- redhat-rpm-config

context: 'fedora/25/atomic | origin/v1.5.0-rc.0'
context: 'fedora/25/atomic | origin/v3.6.0-alpha.1'

env:
OPENSHIFT_IMAGE_TAG: v1.5.0-rc.0
OPENSHIFT_IMAGE_TAG: v3.6.0-alpha.1

tests:
- pip install ansible==2.2.2.0 # F25 currently has 2.2.1, so install from pypi
- ansible -vvv -i .redhat-ci.inventory nodes -a 'rpm-ostree status'
- ansible-playbook -vvv -i .redhat-ci.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\""'
- sh .redhat-ci.sh

---

inherit: true

context: 'fedora/25/atomic | origin/v3.6.0-alpha.0'

env:
OPENSHIFT_IMAGE_TAG: v3.6.0-alpha.0
artifacts:
- journals/

0 comments on commit 5f49e91

Please sign in to comment.