Add whitespace between integration_tests tasks
This is mostly personal preference, but it can help make the task-list easier to read for tired, old, eyes. Signed-off-by: Chris Evich <cevich@redhat.com>
This commit is contained in:
parent
b862df1f0b
commit
29b899114d
1 changed files with 78 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
- name: Update all packages
|
- name: Update all packages
|
||||||
yum:
|
yum:
|
||||||
name: '*'
|
name: '*'
|
||||||
|
@ -8,6 +9,7 @@
|
||||||
poll: 10
|
poll: 10
|
||||||
when: (ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS')
|
when: (ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS')
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
- name: Update all packages on Fedora
|
- name: Update all packages on Fedora
|
||||||
dnf:
|
dnf:
|
||||||
name: '*'
|
name: '*'
|
||||||
|
@ -15,6 +17,7 @@
|
||||||
async: 600
|
async: 600
|
||||||
poll: 10
|
poll: 10
|
||||||
when: ansible_distribution == 'Fedora'
|
when: ansible_distribution == 'Fedora'
|
||||||
|
|
||||||
- name: Make sure we have all required packages
|
- name: Make sure we have all required packages
|
||||||
yum:
|
yum:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
|
@ -46,6 +49,7 @@
|
||||||
async: 600
|
async: 600
|
||||||
poll: 10
|
poll: 10
|
||||||
when: (ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS')
|
when: (ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS')
|
||||||
|
|
||||||
- name: Make sure we have all required packages on Fedora
|
- name: Make sure we have all required packages on Fedora
|
||||||
dnf:
|
dnf:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
|
@ -77,6 +81,7 @@
|
||||||
async: 600
|
async: 600
|
||||||
poll: 10
|
poll: 10
|
||||||
when: ansible_distribution == 'Fedora'
|
when: ansible_distribution == 'Fedora'
|
||||||
|
|
||||||
- name: Setup swap to prevent kernel firing off the OOM killer
|
- name: Setup swap to prevent kernel firing off the OOM killer
|
||||||
shell: |
|
shell: |
|
||||||
truncate -s 8G /root/swap && \
|
truncate -s 8G /root/swap && \
|
||||||
|
@ -84,6 +89,7 @@
|
||||||
mkswap $SWAPDEV && \
|
mkswap $SWAPDEV && \
|
||||||
swapon $SWAPDEV && \
|
swapon $SWAPDEV && \
|
||||||
swapon --show
|
swapon --show
|
||||||
|
|
||||||
- name: Make testing directories to conform to testing standards
|
- name: Make testing directories to conform to testing standards
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
|
@ -94,11 +100,13 @@
|
||||||
- /opt/cni/bin
|
- /opt/cni/bin
|
||||||
- /etc/cni/net.d
|
- /etc/cni/net.d
|
||||||
- /usr/local/go
|
- /usr/local/go
|
||||||
|
|
||||||
- name: install Golang upstream in CentOS
|
- name: install Golang upstream in CentOS
|
||||||
shell: |
|
shell: |
|
||||||
curl -fsSL "https://golang.org/dl/go1.8.3.linux-amd64.tar.gz" \
|
curl -fsSL "https://golang.org/dl/go1.8.3.linux-amd64.tar.gz" \
|
||||||
| tar -xzC /usr/local
|
| tar -xzC /usr/local
|
||||||
when: ansible_distribution == 'CentOS'
|
when: ansible_distribution == 'CentOS'
|
||||||
|
|
||||||
- name: Set custom Golang path for CentOS
|
- name: Set custom Golang path for CentOS
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /root/.bashrc
|
dest: /root/.bashrc
|
||||||
|
@ -107,20 +115,24 @@
|
||||||
regexp: 'export PATH=/usr/local/go/bin:$PATH'
|
regexp: 'export PATH=/usr/local/go/bin:$PATH'
|
||||||
state: present
|
state: present
|
||||||
when: ansible_distribution == 'CentOS'
|
when: ansible_distribution == 'CentOS'
|
||||||
|
|
||||||
- name: set sysctl vm.overcommit_memory=1 for CentOS
|
- name: set sysctl vm.overcommit_memory=1 for CentOS
|
||||||
shell: |
|
shell: |
|
||||||
sysctl -w vm.overcommit_memory=1
|
sysctl -w vm.overcommit_memory=1
|
||||||
when: ansible_distribution == 'CentOS'
|
when: ansible_distribution == 'CentOS'
|
||||||
|
|
||||||
- name: disable selinux on CentOS :(
|
- name: disable selinux on CentOS :(
|
||||||
shell: |
|
shell: |
|
||||||
setenforce 0
|
setenforce 0
|
||||||
when: ansible_distribution == 'CentOS'
|
when: ansible_distribution == 'CentOS'
|
||||||
|
|
||||||
- name: git clone bats repo
|
- name: git clone bats repo
|
||||||
git:
|
git:
|
||||||
repo: https://github.com/sstephenson/bats.git
|
repo: https://github.com/sstephenson/bats.git
|
||||||
dest: /root/src/bats
|
dest: /root/src/bats
|
||||||
async: 600
|
async: 600
|
||||||
poll: 10
|
poll: 10
|
||||||
|
|
||||||
- name: Fetch the xunit feature PR for bats
|
- name: Fetch the xunit feature PR for bats
|
||||||
shell: "git fetch origin +refs/pull/161/head:refs/remotes/origin/pr/161"
|
shell: "git fetch origin +refs/pull/161/head:refs/remotes/origin/pr/161"
|
||||||
args:
|
args:
|
||||||
|
@ -128,6 +140,7 @@
|
||||||
async: 600
|
async: 600
|
||||||
poll: 10
|
poll: 10
|
||||||
when: xunit
|
when: xunit
|
||||||
|
|
||||||
- name: Git checkout the xunit PR for bats
|
- name: Git checkout the xunit PR for bats
|
||||||
shell: "git checkout origin/pr/161"
|
shell: "git checkout origin/pr/161"
|
||||||
args:
|
args:
|
||||||
|
@ -135,6 +148,7 @@
|
||||||
async: 600
|
async: 600
|
||||||
poll: 10
|
poll: 10
|
||||||
when: xunit
|
when: xunit
|
||||||
|
|
||||||
- name: git clone crictl repo
|
- name: git clone crictl repo
|
||||||
git:
|
git:
|
||||||
repo: https://github.com/kubernetes-incubator/cri-tools
|
repo: https://github.com/kubernetes-incubator/cri-tools
|
||||||
|
@ -142,23 +156,27 @@
|
||||||
version: 16e6fe4d7199c5689db4630a9330e6a8a12cecd1
|
version: 16e6fe4d7199c5689db4630a9330e6a8a12cecd1
|
||||||
async: 600
|
async: 600
|
||||||
poll: 10
|
poll: 10
|
||||||
|
|
||||||
- name: git clone runc repo
|
- name: git clone runc repo
|
||||||
git:
|
git:
|
||||||
repo: https://github.com/opencontainers/runc
|
repo: https://github.com/opencontainers/runc
|
||||||
dest: /root/src/github.com/opencontainers/runc
|
dest: /root/src/github.com/opencontainers/runc
|
||||||
async: 600
|
async: 600
|
||||||
poll: 10
|
poll: 10
|
||||||
|
|
||||||
- name: git clone cri-o repo
|
- name: git clone cri-o repo
|
||||||
git:
|
git:
|
||||||
repo: https://github.com/kubernetes-incubator/cri-o
|
repo: https://github.com/kubernetes-incubator/cri-o
|
||||||
dest: /root/src/github.com/kubernetes-incubator/cri-o
|
dest: /root/src/github.com/kubernetes-incubator/cri-o
|
||||||
async: 600
|
async: 600
|
||||||
poll: 10
|
poll: 10
|
||||||
|
|
||||||
- name: git clone cni repo
|
- name: git clone cni repo
|
||||||
git:
|
git:
|
||||||
repo: https://github.com/containernetworking/plugins
|
repo: https://github.com/containernetworking/plugins
|
||||||
dest: /root/src/github.com/containernetworking/plugins
|
dest: /root/src/github.com/containernetworking/plugins
|
||||||
version: "{{ cni_commit }}"
|
version: "{{ cni_commit }}"
|
||||||
|
|
||||||
- name: Git fetch the PR
|
- name: Git fetch the PR
|
||||||
shell: "git fetch origin +refs/pull/{{ pullrequest }}/head:refs/remotes/origin/pr/{{ pullrequest }}"
|
shell: "git fetch origin +refs/pull/{{ pullrequest }}/head:refs/remotes/origin/pr/{{ pullrequest }}"
|
||||||
args:
|
args:
|
||||||
|
@ -167,16 +185,19 @@
|
||||||
- pr
|
- pr
|
||||||
async: 600
|
async: 600
|
||||||
poll: 10
|
poll: 10
|
||||||
|
|
||||||
- name: Git checkout the commit into working branch
|
- name: Git checkout the commit into working branch
|
||||||
shell: "git checkout {{ commit }}"
|
shell: "git checkout {{ commit }}"
|
||||||
args:
|
args:
|
||||||
chdir: /root/src/github.com/kubernetes-incubator/cri-o
|
chdir: /root/src/github.com/kubernetes-incubator/cri-o
|
||||||
async: 600
|
async: 600
|
||||||
poll: 10
|
poll: 10
|
||||||
|
|
||||||
- name: Install bats
|
- name: Install bats
|
||||||
command: bats/install.sh /usr/local
|
command: bats/install.sh /usr/local
|
||||||
args:
|
args:
|
||||||
chdir: /root/src
|
chdir: /root/src
|
||||||
|
|
||||||
- name: Add go testing dir to bashrc files
|
- name: Add go testing dir to bashrc files
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /root/.bashrc
|
dest: /root/.bashrc
|
||||||
|
@ -184,46 +205,56 @@
|
||||||
insertafter: 'EOF'
|
insertafter: 'EOF'
|
||||||
regexp: 'export GOPATH=/root'
|
regexp: 'export GOPATH=/root'
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Source the bashrc file
|
- name: Source the bashrc file
|
||||||
shell: source /root/.bashrc
|
shell: source /root/.bashrc
|
||||||
|
|
||||||
- name: Build cni networking
|
- name: Build cni networking
|
||||||
shell: ./build.sh
|
shell: ./build.sh
|
||||||
args:
|
args:
|
||||||
chdir: /root/src/github.com/containernetworking/plugins
|
chdir: /root/src/github.com/containernetworking/plugins
|
||||||
|
|
||||||
- name: cp bin to cni bin dir
|
- name: cp bin to cni bin dir
|
||||||
shell: cp /root/src/github.com/containernetworking/plugins/bin/* /opt/cni/bin
|
shell: cp /root/src/github.com/containernetworking/plugins/bin/* /opt/cni/bin
|
||||||
|
|
||||||
- name: curl crio bridge conf file for cni networking
|
- name: curl crio bridge conf file for cni networking
|
||||||
get_url:
|
get_url:
|
||||||
url: https://raw.githubusercontent.com/kubernetes-incubator/cri-o/{{ commit }}/contrib/cni/10-crio-bridge.conf
|
url: https://raw.githubusercontent.com/kubernetes-incubator/cri-o/{{ commit }}/contrib/cni/10-crio-bridge.conf
|
||||||
dest: /etc/cni/net.d/10-crio-bridge.conf
|
dest: /etc/cni/net.d/10-crio-bridge.conf
|
||||||
|
|
||||||
- name: curl loopback conf for cni networking
|
- name: curl loopback conf for cni networking
|
||||||
get_url:
|
get_url:
|
||||||
url: https://raw.githubusercontent.com/kubernetes-incubator/cri-o/{{ commit }}/contrib/cni/99-loopback.conf
|
url: https://raw.githubusercontent.com/kubernetes-incubator/cri-o/{{ commit }}/contrib/cni/99-loopback.conf
|
||||||
dest: /etc/cni/net.d/99-loopback.conf
|
dest: /etc/cni/net.d/99-loopback.conf
|
||||||
|
|
||||||
- name: make clean
|
- name: make clean
|
||||||
make:
|
make:
|
||||||
target: clean
|
target: clean
|
||||||
chdir: /root/src/github.com/opencontainers/runc
|
chdir: /root/src/github.com/opencontainers/runc
|
||||||
async: 600
|
async: 600
|
||||||
poll: 10
|
poll: 10
|
||||||
|
|
||||||
- name: make crictl
|
- name: make crictl
|
||||||
shell: |
|
shell: |
|
||||||
go install github.com/kubernetes-incubator/cri-tools/cmd/crictl && \
|
go install github.com/kubernetes-incubator/cri-tools/cmd/crictl && \
|
||||||
cp $GOPATH/bin/crictl /usr/bin/crictl
|
cp $GOPATH/bin/crictl /usr/bin/crictl
|
||||||
args:
|
args:
|
||||||
chdir: /root/src/github.com/kubernetes-incubator/cri-o/
|
chdir: /root/src/github.com/kubernetes-incubator/cri-o/
|
||||||
|
|
||||||
- name: make runc
|
- name: make runc
|
||||||
make:
|
make:
|
||||||
params: BUILDTAGS="seccomp selinux"
|
params: BUILDTAGS="seccomp selinux"
|
||||||
chdir: /root/src/github.com/opencontainers/runc
|
chdir: /root/src/github.com/opencontainers/runc
|
||||||
async: 600
|
async: 600
|
||||||
poll: 10
|
poll: 10
|
||||||
|
|
||||||
- name: install runc
|
- name: install runc
|
||||||
make:
|
make:
|
||||||
target: install
|
target: install
|
||||||
chdir: /root/src/github.com/opencontainers/runc
|
chdir: /root/src/github.com/opencontainers/runc
|
||||||
async: 600
|
async: 600
|
||||||
poll: 10
|
poll: 10
|
||||||
|
|
||||||
- name: Change test_runner.sh to use bats xunit output
|
- name: Change test_runner.sh to use bats xunit output
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /root/src/github.com/kubernetes-incubator/cri-o/test/test_runner.sh
|
dest: /root/src/github.com/kubernetes-incubator/cri-o/test/test_runner.sh
|
||||||
|
@ -231,24 +262,29 @@
|
||||||
regexp: 'execute time bats --tap \$TESTS'
|
regexp: 'execute time bats --tap \$TESTS'
|
||||||
state: present
|
state: present
|
||||||
when: xunit
|
when: xunit
|
||||||
|
|
||||||
- name: git clone cni test repo
|
- name: git clone cni test repo
|
||||||
git:
|
git:
|
||||||
repo: https://github.com/runcom/plugins
|
repo: https://github.com/runcom/plugins
|
||||||
dest: /root/src/github.com/containernetworking/plugins
|
dest: /root/src/github.com/containernetworking/plugins
|
||||||
version: "custom-bridge"
|
version: "custom-bridge"
|
||||||
force: yes
|
force: yes
|
||||||
|
|
||||||
- name: Build cni test networking
|
- name: Build cni test networking
|
||||||
shell: ./build.sh
|
shell: ./build.sh
|
||||||
args:
|
args:
|
||||||
chdir: /root/src/github.com/containernetworking/plugins
|
chdir: /root/src/github.com/containernetworking/plugins
|
||||||
|
|
||||||
- name: cp custom-bridge to opt bin
|
- name: cp custom-bridge to opt bin
|
||||||
shell: cp /root/src/github.com/containernetworking/plugins/bin/bridge /opt/cni/bin/bridge-custom
|
shell: cp /root/src/github.com/containernetworking/plugins/bin/bridge /opt/cni/bin/bridge-custom
|
||||||
# k8s builds with go1.8.x, rhel, fedora don't have it yet
|
# k8s builds with go1.8.x, rhel, fedora don't have it yet
|
||||||
|
|
||||||
- name: install Golang upstream in Fedora/RHEL
|
- name: install Golang upstream in Fedora/RHEL
|
||||||
shell: |
|
shell: |
|
||||||
curl -fsSL "https://golang.org/dl/go1.8.3.linux-amd64.tar.gz" \
|
curl -fsSL "https://golang.org/dl/go1.8.3.linux-amd64.tar.gz" \
|
||||||
| tar -xzC /usr/local
|
| tar -xzC /usr/local
|
||||||
when: ansible_distribution == 'Fedora' or ansible_distribution == 'RedHat'
|
when: ansible_distribution == 'Fedora' or ansible_distribution == 'RedHat'
|
||||||
|
|
||||||
- name: Set custom Golang path for Fedora/RHEL
|
- name: Set custom Golang path for Fedora/RHEL
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /root/.bashrc
|
dest: /root/.bashrc
|
||||||
|
@ -257,16 +293,19 @@
|
||||||
regexp: 'export PATH=/usr/local/go/bin:$PATH'
|
regexp: 'export PATH=/usr/local/go/bin:$PATH'
|
||||||
state: present
|
state: present
|
||||||
when: ansible_distribution == 'Fedora' or ansible_distribution == 'RedHat'
|
when: ansible_distribution == 'Fedora' or ansible_distribution == 'RedHat'
|
||||||
|
|
||||||
- name: Copy redhat sigstore file to test host
|
- name: Copy redhat sigstore file to test host
|
||||||
copy:
|
copy:
|
||||||
remote_src: yes
|
remote_src: yes
|
||||||
src: /root/src/github.com/kubernetes-incubator/cri-o/test/redhat_sigstore.yaml
|
src: /root/src/github.com/kubernetes-incubator/cri-o/test/redhat_sigstore.yaml
|
||||||
dest: /etc/containers/registries.d/registry.access.redhat.com.yaml
|
dest: /etc/containers/registries.d/registry.access.redhat.com.yaml
|
||||||
|
|
||||||
- name: Copy test policy.json file
|
- name: Copy test policy.json file
|
||||||
copy:
|
copy:
|
||||||
remote_src: yes
|
remote_src: yes
|
||||||
src: /root/src/github.com/kubernetes-incubator/cri-o/test/policy.json
|
src: /root/src/github.com/kubernetes-incubator/cri-o/test/policy.json
|
||||||
dest: /etc/containers/policy.json
|
dest: /etc/containers/policy.json
|
||||||
|
|
||||||
- name: run integration tests RHEL
|
- name: run integration tests RHEL
|
||||||
shell: 'CGROUP_MANAGER=cgroupfs STORAGE_OPTS="--storage-driver=overlay2 --storage-opt overlay2.override_kernel_check=1" make localintegration 2>&1 > testout.txt'
|
shell: 'CGROUP_MANAGER=cgroupfs STORAGE_OPTS="--storage-driver=overlay2 --storage-opt overlay2.override_kernel_check=1" make localintegration 2>&1 > testout.txt'
|
||||||
args:
|
args:
|
||||||
|
@ -275,6 +314,7 @@
|
||||||
poll: 10
|
poll: 10
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
when: ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS'
|
when: ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS'
|
||||||
|
|
||||||
- name: run integration tests RHEL with xunit results
|
- name: run integration tests RHEL with xunit results
|
||||||
shell: 'CGROUP_MANAGER=cgroupfs STORAGE_OPTS="--storage-driver=overlay2 --storage-opt overlay2.override_kernel_check=1" make localintegration'
|
shell: 'CGROUP_MANAGER=cgroupfs STORAGE_OPTS="--storage-driver=overlay2 --storage-opt overlay2.override_kernel_check=1" make localintegration'
|
||||||
args:
|
args:
|
||||||
|
@ -283,6 +323,7 @@
|
||||||
poll: 10
|
poll: 10
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
when: (ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS') and xunit
|
when: (ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS') and xunit
|
||||||
|
|
||||||
- name: run integration tests Fedora
|
- name: run integration tests Fedora
|
||||||
shell: 'CGROUP_MANAGER=cgroupfs STORAGE_OPTS="--storage-driver=overlay2" make localintegration 2>&1 > testout.txt'
|
shell: 'CGROUP_MANAGER=cgroupfs STORAGE_OPTS="--storage-driver=overlay2" make localintegration 2>&1 > testout.txt'
|
||||||
args:
|
args:
|
||||||
|
@ -291,6 +332,7 @@
|
||||||
poll: 10
|
poll: 10
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
when: ansible_distribution == 'Fedora'
|
when: ansible_distribution == 'Fedora'
|
||||||
|
|
||||||
- name: run integration tests Fedora with xunit results
|
- name: run integration tests Fedora with xunit results
|
||||||
shell: 'CGROUP_MANAGER=cgroupfs STORAGE_OPTS="--storage-driver=overlay2" make localintegration'
|
shell: 'CGROUP_MANAGER=cgroupfs STORAGE_OPTS="--storage-driver=overlay2" make localintegration'
|
||||||
args:
|
args:
|
||||||
|
@ -299,16 +341,19 @@
|
||||||
poll: 10
|
poll: 10
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
when: (ansible_distribution == 'Fedora' and xunit)
|
when: (ansible_distribution == 'Fedora' and xunit)
|
||||||
|
|
||||||
- name: Make testing output directory
|
- name: Make testing output directory
|
||||||
file:
|
file:
|
||||||
path: /root/src/github.com/kubernetes-incubator/cri-o/reports
|
path: /root/src/github.com/kubernetes-incubator/cri-o/reports
|
||||||
state: directory
|
state: directory
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
when: xunit
|
when: xunit
|
||||||
|
|
||||||
- name: Move all xunit files into one dir to scp
|
- name: Move all xunit files into one dir to scp
|
||||||
shell: 'mv /root/src/github.com/kubernetes-incubator/cri-o/test/TestReport-bats*.xml /root/src/github.com/kubernetes-incubator/cri-o/reports/'
|
shell: 'mv /root/src/github.com/kubernetes-incubator/cri-o/test/TestReport-bats*.xml /root/src/github.com/kubernetes-incubator/cri-o/reports/'
|
||||||
when: xunit
|
when: xunit
|
||||||
# XXX: kube tests from now on
|
# XXX: kube tests from now on
|
||||||
|
|
||||||
- name: git clone k8s repo
|
- name: git clone k8s repo
|
||||||
git:
|
git:
|
||||||
repo: https://github.com/runcom/kubernetes
|
repo: https://github.com/runcom/kubernetes
|
||||||
|
@ -318,6 +363,7 @@
|
||||||
force: yes
|
force: yes
|
||||||
async: 600
|
async: 600
|
||||||
poll: 10
|
poll: 10
|
||||||
|
|
||||||
- name: Add custom cluster service file for the e2e testing
|
- name: Add custom cluster service file for the e2e testing
|
||||||
copy:
|
copy:
|
||||||
dest: /etc/systemd/system/customcluster.service
|
dest: /etc/systemd/system/customcluster.service
|
||||||
|
@ -331,6 +377,7 @@
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
||||||
|
|
||||||
- name: Add create cluster background script for e2e testing
|
- name: Add create cluster background script for e2e testing
|
||||||
copy:
|
copy:
|
||||||
dest: /usr/local/bin/createcluster.sh
|
dest: /usr/local/bin/createcluster.sh
|
||||||
|
@ -350,6 +397,7 @@
|
||||||
export API_HOST_IP={{ ansible_default_ipv4.address }}
|
export API_HOST_IP={{ ansible_default_ipv4.address }}
|
||||||
export KUBE_ENABLE_CLUSTER_DNS=true
|
export KUBE_ENABLE_CLUSTER_DNS=true
|
||||||
hack/local-up-cluster.sh
|
hack/local-up-cluster.sh
|
||||||
|
|
||||||
- name: Add path to bashrc files
|
- name: Add path to bashrc files
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /root/.bashrc
|
dest: /root/.bashrc
|
||||||
|
@ -357,6 +405,7 @@
|
||||||
insertafter: 'EOF'
|
insertafter: 'EOF'
|
||||||
regexp: 'export PATH=/tmp/mybin:\$PATH:/usr/local/go/bin:/root/go-tools/bin:/root/src/k8s.io/kubernetes/third_party/etcd'
|
regexp: 'export PATH=/tmp/mybin:\$PATH:/usr/local/go/bin:/root/go-tools/bin:/root/src/k8s.io/kubernetes/third_party/etcd'
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Add gopath to bashrc files
|
- name: Add gopath to bashrc files
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /root/.bashrc
|
dest: /root/.bashrc
|
||||||
|
@ -364,30 +413,36 @@
|
||||||
insertafter: 'EOF'
|
insertafter: 'EOF'
|
||||||
regexp: 'export GOPATH=/root/go-tools'
|
regexp: 'export GOPATH=/root/go-tools'
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Source the bash rc file
|
- name: Source the bash rc file
|
||||||
shell: source /root/.bashrc
|
shell: source /root/.bashrc
|
||||||
|
|
||||||
- name: Get godep
|
- name: Get godep
|
||||||
shell: go get -u github.com/tools/godep
|
shell: go get -u github.com/tools/godep
|
||||||
async: 600
|
async: 600
|
||||||
poll: 10
|
poll: 10
|
||||||
|
|
||||||
- name: Install etcd
|
- name: Install etcd
|
||||||
command: hack/install-etcd.sh
|
command: hack/install-etcd.sh
|
||||||
args:
|
args:
|
||||||
chdir: /root/src/k8s.io/kubernetes
|
chdir: /root/src/k8s.io/kubernetes
|
||||||
async: 600
|
async: 600
|
||||||
poll: 10
|
poll: 10
|
||||||
|
|
||||||
- name: Install necessary github go packages
|
- name: Install necessary github go packages
|
||||||
shell: go get github.com/onsi/ginkgo/ginkgo ; go get github.com/onsi/gomega ; go get -u github.com/cloudflare/cfssl/cmd/...
|
shell: go get github.com/onsi/ginkgo/ginkgo ; go get github.com/onsi/gomega ; go get -u github.com/cloudflare/cfssl/cmd/...
|
||||||
args:
|
args:
|
||||||
chdir: /root/src/k8s.io/kubernetes
|
chdir: /root/src/k8s.io/kubernetes
|
||||||
async: 600
|
async: 600
|
||||||
poll: 10
|
poll: 10
|
||||||
|
|
||||||
- name: Make testing output verbose so it can be converted to xunit
|
- name: Make testing output verbose so it can be converted to xunit
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /root/src/k8s.io/kubernetes/hack/make-rules/test.sh
|
dest: /root/src/k8s.io/kubernetes/hack/make-rules/test.sh
|
||||||
line: ' go test -v "${goflags[@]:+${goflags[@]}}" \'
|
line: ' go test -v "${goflags[@]:+${goflags[@]}}" \'
|
||||||
regexp: ' go test \"\$'
|
regexp: ' go test \"\$'
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: make and install CRI-O
|
- name: make and install CRI-O
|
||||||
shell: |
|
shell: |
|
||||||
make install.tools && \
|
make install.tools && \
|
||||||
|
@ -399,20 +454,24 @@
|
||||||
chdir: /root/src/github.com/kubernetes-incubator/cri-o
|
chdir: /root/src/github.com/kubernetes-incubator/cri-o
|
||||||
async: 600
|
async: 600
|
||||||
poll: 10
|
poll: 10
|
||||||
|
|
||||||
- name: link runc
|
- name: link runc
|
||||||
file: src=/usr/local/sbin/runc dest=/usr/bin/runc state=link
|
file: src=/usr/local/sbin/runc dest=/usr/bin/runc state=link
|
||||||
|
|
||||||
- name: run with overlay2
|
- name: run with overlay2
|
||||||
replace:
|
replace:
|
||||||
regexp: 'storage_driver = ""'
|
regexp: 'storage_driver = ""'
|
||||||
replace: 'storage_driver = "overlay2"'
|
replace: 'storage_driver = "overlay2"'
|
||||||
name: /etc/crio/crio.conf
|
name: /etc/crio/crio.conf
|
||||||
backup: yes
|
backup: yes
|
||||||
|
|
||||||
- name: run with systemd cgroup manager
|
- name: run with systemd cgroup manager
|
||||||
replace:
|
replace:
|
||||||
regexp: 'cgroup_manager = "cgroupfs"'
|
regexp: 'cgroup_manager = "cgroupfs"'
|
||||||
replace: 'cgroup_manager = "systemd"'
|
replace: 'cgroup_manager = "systemd"'
|
||||||
name: /etc/crio/crio.conf
|
name: /etc/crio/crio.conf
|
||||||
backup: yes
|
backup: yes
|
||||||
|
|
||||||
- name: add docker.io default registry
|
- name: add docker.io default registry
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/crio/crio.conf
|
dest: /etc/crio/crio.conf
|
||||||
|
@ -420,6 +479,7 @@
|
||||||
insertafter: 'registries = \['
|
insertafter: 'registries = \['
|
||||||
regexp: 'docker\.io'
|
regexp: 'docker\.io'
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: add overlay2 storage opts on RHEL/CentOS
|
- name: add overlay2 storage opts on RHEL/CentOS
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/crio/crio.conf
|
dest: /etc/crio/crio.conf
|
||||||
|
@ -428,6 +488,7 @@
|
||||||
regexp: 'overlay2\.override_kernel_check=1'
|
regexp: 'overlay2\.override_kernel_check=1'
|
||||||
state: present
|
state: present
|
||||||
when: ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS'
|
when: ansible_distribution == 'RedHat' or ansible_distribution == 'CentOS'
|
||||||
|
|
||||||
- name: enable and start CRI-O
|
- name: enable and start CRI-O
|
||||||
systemd:
|
systemd:
|
||||||
name: crio
|
name: crio
|
||||||
|
@ -437,23 +498,27 @@
|
||||||
async: 600
|
async: 600
|
||||||
poll: 10
|
poll: 10
|
||||||
# see https://github.com/kubernetes-incubator/cri-o/issues/528
|
# see https://github.com/kubernetes-incubator/cri-o/issues/528
|
||||||
|
|
||||||
- name: disable selinux for k8s conformance tests
|
- name: disable selinux for k8s conformance tests
|
||||||
shell: |
|
shell: |
|
||||||
setenforce 0
|
setenforce 0
|
||||||
async: 600
|
async: 600
|
||||||
poll: 10
|
poll: 10
|
||||||
|
|
||||||
- name: Go get the go-bindata file
|
- name: Go get the go-bindata file
|
||||||
shell: go get -u github.com/jteeuwen/go-bindata/go-bindata
|
shell: go get -u github.com/jteeuwen/go-bindata/go-bindata
|
||||||
args:
|
args:
|
||||||
chdir: /root/src/k8s.io/kubernetes
|
chdir: /root/src/k8s.io/kubernetes
|
||||||
async: 600
|
async: 600
|
||||||
poll: 10
|
poll: 10
|
||||||
|
|
||||||
- name: Install necessary github go packages
|
- name: Install necessary github go packages
|
||||||
shell: go get github.com/onsi/ginkgo/ginkgo ; go get github.com/onsi/gomega ; go get -u github.com/cloudflare/cfssl/cmd/...
|
shell: go get github.com/onsi/ginkgo/ginkgo ; go get github.com/onsi/gomega ; go get -u github.com/cloudflare/cfssl/cmd/...
|
||||||
args:
|
args:
|
||||||
chdir: /root/src/k8s.io/kubernetes
|
chdir: /root/src/k8s.io/kubernetes
|
||||||
async: 600
|
async: 600
|
||||||
poll: 10
|
poll: 10
|
||||||
|
|
||||||
- name: Add path to bashrc files
|
- name: Add path to bashrc files
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /root/.bashrc
|
dest: /root/.bashrc
|
||||||
|
@ -461,6 +526,7 @@
|
||||||
insertafter: 'EOF'
|
insertafter: 'EOF'
|
||||||
regexp: 'export PATH=\$PATH:/root/src/k8s.io/kubernetes/third_party/etcd'
|
regexp: 'export PATH=\$PATH:/root/src/k8s.io/kubernetes/third_party/etcd'
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: inject hostname into /etc/hosts
|
- name: inject hostname into /etc/hosts
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/hosts
|
dest: /etc/hosts
|
||||||
|
@ -468,15 +534,19 @@
|
||||||
insertafter: 'EOF'
|
insertafter: 'EOF'
|
||||||
regexp: '{{ ansible_default_ipv4.address }}\s+{{ ansible_nodename }}'
|
regexp: '{{ ansible_default_ipv4.address }}\s+{{ ansible_nodename }}'
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Flush the iptables
|
- name: Flush the iptables
|
||||||
command: iptables -F
|
command: iptables -F
|
||||||
|
|
||||||
- name: Make clean
|
- name: Make clean
|
||||||
make:
|
make:
|
||||||
target: clean
|
target: clean
|
||||||
chdir: /root/src/k8s.io/kubernetes
|
chdir: /root/src/k8s.io/kubernetes
|
||||||
|
|
||||||
- name: Make
|
- name: Make
|
||||||
make:
|
make:
|
||||||
chdir: /root/src/k8s.io/kubernetes
|
chdir: /root/src/k8s.io/kubernetes
|
||||||
|
|
||||||
- name: Set kubernetes_provider to be local
|
- name: Set kubernetes_provider to be local
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /root/.bashrc
|
dest: /root/.bashrc
|
||||||
|
@ -484,6 +554,7 @@
|
||||||
insertafter: 'EOF'
|
insertafter: 'EOF'
|
||||||
regexp: 'export KUBERNETES_PROVIDER=local'
|
regexp: 'export KUBERNETES_PROVIDER=local'
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Set KUBECONFIG
|
- name: Set KUBECONFIG
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /root/.bashrc
|
dest: /root/.bashrc
|
||||||
|
@ -491,21 +562,27 @@
|
||||||
insertafter: 'EOF'
|
insertafter: 'EOF'
|
||||||
regexp: 'export KUBECONFIG=/var/run/kubernetes/admin.kubeconfig'
|
regexp: 'export KUBECONFIG=/var/run/kubernetes/admin.kubeconfig'
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Source the bash rc file
|
- name: Source the bash rc file
|
||||||
shell: source /root/.bashrc
|
shell: source /root/.bashrc
|
||||||
|
|
||||||
- name: Make the create cluster script executable
|
- name: Make the create cluster script executable
|
||||||
file:
|
file:
|
||||||
path: /usr/local/bin/createcluster.sh
|
path: /usr/local/bin/createcluster.sh
|
||||||
mode: a+x
|
mode: a+x
|
||||||
|
|
||||||
- name: Reload daemons to make custom cluster available
|
- name: Reload daemons to make custom cluster available
|
||||||
shell: systemctl daemon-reload
|
shell: systemctl daemon-reload
|
||||||
|
|
||||||
- name: Bring up the cluster
|
- name: Bring up the cluster
|
||||||
service:
|
service:
|
||||||
name: customcluster.service
|
name: customcluster.service
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
|
||||||
- name: Give the cluster time to initialize
|
- name: Give the cluster time to initialize
|
||||||
pause: minutes=5
|
pause: minutes=5
|
||||||
|
|
||||||
- name: Flush the iptables
|
- name: Flush the iptables
|
||||||
command: iptables -F
|
command: iptables -F
|
||||||
# XXX: The task below is running kube e2e not kube node-e2e!!!
|
# XXX: The task below is running kube e2e not kube node-e2e!!!
|
||||||
|
@ -514,6 +591,7 @@
|
||||||
# change to the CI itself (not doable in this playbook) to look for just
|
# change to the CI itself (not doable in this playbook) to look for just
|
||||||
# "e2e.log"..
|
# "e2e.log"..
|
||||||
# So, we'll change it to "e2e.log", some day...
|
# So, we'll change it to "e2e.log", some day...
|
||||||
|
|
||||||
- name: run e2e tests
|
- name: run e2e tests
|
||||||
shell: |
|
shell: |
|
||||||
go run hack/e2e.go -v --test -test_args="-host=https://{{ ansible_default_ipv4.address }}:6443 --ginkgo.focus=\[Conformance\]" 2>&1 > node-e2e.log
|
go run hack/e2e.go -v --test -test_args="-host=https://{{ ansible_default_ipv4.address }}:6443 --ginkgo.focus=\[Conformance\]" 2>&1 > node-e2e.log
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue