2017-09-19 15:50:37 -07:00
|
|
|
---
|
2017-09-26 07:27:18 -04:00
|
|
|
|
2017-09-19 15:50:37 -07:00
|
|
|
- name: enable and start CRI-O
|
|
|
|
systemd:
|
|
|
|
name: crio
|
|
|
|
state: started
|
|
|
|
enabled: yes
|
|
|
|
daemon_reload: yes
|
|
|
|
|
|
|
|
- name: update the server address for the custom cluster
|
|
|
|
lineinfile:
|
|
|
|
dest: /usr/local/bin/createcluster.sh
|
2017-12-04 10:43:07 -05:00
|
|
|
line: "export {{ item }}={{ ansible_default_ipv4.address }}"
|
2017-09-19 15:50:37 -07:00
|
|
|
regexp: "^export {{ item }}="
|
|
|
|
state: present
|
|
|
|
with_items:
|
|
|
|
- DNS_SERVER_IP
|
|
|
|
- API_HOST
|
|
|
|
- API_HOST_IP
|
|
|
|
|
|
|
|
- name: enable and start the custom cluster
|
|
|
|
systemd:
|
|
|
|
name: customcluster.service
|
|
|
|
state: started
|
|
|
|
enabled: yes
|
|
|
|
daemon_reload: yes
|
|
|
|
|
|
|
|
- name: wait for the cluster to be running
|
|
|
|
command: "{{ ansible_env.GOPATH }}/src/k8s.io/kubernetes/_output/bin/kubectl get service kubernetes --namespace default"
|
|
|
|
register: kube_poll
|
|
|
|
until: kube_poll | succeeded
|
|
|
|
retries: 100
|
|
|
|
delay: 30
|
|
|
|
|
|
|
|
- name: ensure directory exists for e2e reports
|
|
|
|
file:
|
2017-09-25 10:27:20 -04:00
|
|
|
path: "{{ artifacts }}"
|
2017-09-19 15:50:37 -07:00
|
|
|
state: directory
|
|
|
|
|
2017-12-08 21:26:37 +01:00
|
|
|
# TODO remove the last test skipped once https://github.com/kubernetes-incubator/cri-o/pull/1217 is merged
|
2017-09-22 07:41:15 -04:00
|
|
|
- name: Buffer the e2e testing command to workaround Ansible YAML folding "feature"
|
|
|
|
set_fact:
|
|
|
|
e2e_shell_cmd: >
|
2017-09-29 11:49:12 -07:00
|
|
|
/usr/bin/go run hack/e2e.go
|
2017-09-22 07:41:15 -04:00
|
|
|
--test
|
2017-10-19 16:37:26 +02:00
|
|
|
--test_args="-host=https://{{ ansible_default_ipv4.address }}:6443
|
2017-12-08 21:26:37 +01:00
|
|
|
--ginkgo.skip=\[Slow\]|\[Serial\]|\[Disruptive\]|\[Flaky\]|\[Feature:.+\]|PersistentVolumes|\[HPA\]|should.support.building.a.client.with.a.CSR|should.support.inline.execution.and.attach
|
2017-09-22 07:41:15 -04:00
|
|
|
--report-dir={{ artifacts }}"
|
|
|
|
&> {{ artifacts }}/e2e.log
|
|
|
|
# Fix vim syntax hilighting: "
|
|
|
|
|
2017-10-02 18:41:58 -07:00
|
|
|
- name: disable SELinux
|
|
|
|
command: setenforce 0
|
|
|
|
|
2017-09-19 15:50:37 -07:00
|
|
|
- name: run e2e tests
|
2017-09-22 07:41:15 -04:00
|
|
|
shell: "{{ e2e_shell_cmd | regex_replace('\\s+', ' ') }}"
|
2017-09-19 15:50:37 -07:00
|
|
|
args:
|
2017-09-25 10:27:20 -04:00
|
|
|
chdir: "{{ ansible_env.GOPATH }}/src/k8s.io/kubernetes"
|