Remove kata jobs
These jobs and roles are not needed anymore here, kata has its own tenant. Change-Id: I4d9912864ec549e46fe398baef5265b89e4f4a96
This commit is contained in:
parent
437e1c6816
commit
b49d5c8961
@ -1,85 +0,0 @@
|
||||
- hosts: all
|
||||
tasks:
|
||||
- name: Ensure logs directory
|
||||
file:
|
||||
path: '{{ ansible_user_dir }}/logs'
|
||||
state: directory
|
||||
mode: 0755
|
||||
|
||||
# TODO use with items
|
||||
- name: Write runtime log
|
||||
shell: |
|
||||
set -x
|
||||
journalctl -b -o short-precise -t kata-runtime | gzip > {{ ansible_user_dir }}/logs/kata-runtime.log.gz
|
||||
become: yes
|
||||
- name: Make runtime log readable
|
||||
file:
|
||||
path: '{{ ansible_user_dir }}/logs/kata-runtime.log.gz'
|
||||
mode: 'u+r,g+r,o+r'
|
||||
become: yes
|
||||
|
||||
- name: Write agent and proxy log
|
||||
shell: |
|
||||
set -x
|
||||
journalctl -b -o short-precise -t kata-proxy | gzip > {{ ansible_user_dir }}/logs/kata-proxy.log.gz
|
||||
become: yes
|
||||
- name: Make proxy log readable
|
||||
file:
|
||||
path: '{{ ansible_user_dir }}/logs/kata-proxy.log.gz'
|
||||
mode: 'u+r,g+r,o+r'
|
||||
become: yes
|
||||
|
||||
- name: Write shim log
|
||||
shell: |
|
||||
set -x
|
||||
journalctl -b -o short-precise -t kata-shim | gzip > {{ ansible_user_dir }}/logs/kata-shim.log.gz
|
||||
become: yes
|
||||
- name: Make shim log readable
|
||||
file:
|
||||
path: '{{ ansible_user_dir }}/logs/kata-shim.log.gz'
|
||||
mode: 'u+r,g+r,o+r'
|
||||
become: yes
|
||||
|
||||
- name: Write docker log
|
||||
shell: |
|
||||
set -x
|
||||
journalctl -b -o short-precise -u docker.service | gzip > {{ ansible_user_dir }}/logs/docker.log.gz
|
||||
become: yes
|
||||
- name: Make docker log readable
|
||||
file:
|
||||
path: '{{ ansible_user_dir }}/logs/docker.log.gz'
|
||||
mode: 'u+r,g+r,o+r'
|
||||
become: yes
|
||||
|
||||
- name: Write crio log
|
||||
shell: |
|
||||
set -x
|
||||
journalctl -b -o short-precise -u crio | gzip > {{ ansible_user_dir }}/logs/crio.log.gz
|
||||
become: yes
|
||||
- name: Make crio log readable
|
||||
file:
|
||||
path: '{{ ansible_user_dir }}/logs/crio.log.gz'
|
||||
mode: 'u+r,g+r,o+r'
|
||||
become: yes
|
||||
|
||||
- name: Write kubelet log
|
||||
shell: |
|
||||
set -x
|
||||
journalctl -b -o short-precise -u kubelet | gzip > {{ ansible_user_dir }}/logs/kubelet.log.gz
|
||||
become: yes
|
||||
- name: Make kubelet log readable
|
||||
file:
|
||||
path: '{{ ansible_user_dir }}/logs/kubelet.log.gz'
|
||||
mode: 'u+r,g+r,o+r'
|
||||
become: yes
|
||||
|
||||
- name: Copy log files from test node to executor
|
||||
synchronize:
|
||||
src: '{{ ansible_user_dir }}/logs'
|
||||
dest: '{{ zuul.executor.log_root }}'
|
||||
mode: pull
|
||||
copy_links: true
|
||||
verify_host: true
|
||||
rsync_opts:
|
||||
- --prune-empty-dirs
|
||||
|
@ -1,3 +0,0 @@
|
||||
- hosts: all
|
||||
roles:
|
||||
- kata-setup
|
@ -1,16 +0,0 @@
|
||||
- hosts: all
|
||||
tasks:
|
||||
- name: Run kata run.sh
|
||||
args:
|
||||
executable: /bin/bash
|
||||
chdir: "{{ zuul.project.src_dir }}"
|
||||
shell: |
|
||||
set -x
|
||||
if [ -d '/usr/lib/go-1.10/bin' ] ; then
|
||||
export PATH=$PATH:/usr/lib/go-1.10/bin
|
||||
fi
|
||||
export CI=true
|
||||
export ZUUL=true
|
||||
export GOPATH=$HOME
|
||||
export PATH=${GOPATH}/bin:/usr/sbin:$PATH
|
||||
.ci/run.sh
|
@ -1 +0,0 @@
|
||||
Platform specific setup for kata CI.
|
@ -1,41 +0,0 @@
|
||||
- name: Install distribution specific package needs
|
||||
include: "{{ item }}"
|
||||
static: no
|
||||
with_first_found:
|
||||
- "setup/{{ ansible_distribution }}.yaml"
|
||||
- "setup/{{ ansible_os_family }}.yaml"
|
||||
- "setup/default.yaml"
|
||||
|
||||
- name: Allow k8s cluster range to talk to k8s api
|
||||
iptables:
|
||||
state: present
|
||||
action: insert
|
||||
chain: INPUT
|
||||
ip_version: ipv4
|
||||
protocol: tcp
|
||||
source: "10.244.0.0/16"
|
||||
destination_port: 6443
|
||||
jump: ACCEPT
|
||||
become: yes
|
||||
|
||||
- name: Configure git user for kata patch application
|
||||
shell: |
|
||||
git config --global user.email "zuul@test.machine"
|
||||
git config --global user.name "Zuul CI"
|
||||
tags:
|
||||
- skip_ansible_lint
|
||||
|
||||
- name: Run kata setup.sh
|
||||
args:
|
||||
executable: /bin/bash
|
||||
chdir: "{{ zuul.project.src_dir }}"
|
||||
shell: |
|
||||
set -x
|
||||
if [ -d '/usr/lib/go-1.10/bin' ] ; then
|
||||
export PATH=$PATH:/usr/lib/go-1.10/bin
|
||||
fi
|
||||
export CI=true
|
||||
export ZUUL=true
|
||||
export GOPATH=$HOME
|
||||
export PATH=${GOPATH}/bin:/usr/sbin:$PATH
|
||||
.ci/setup.sh
|
@ -1,56 +0,0 @@
|
||||
- name: Install make
|
||||
package:
|
||||
name: make
|
||||
state: present
|
||||
become: yes
|
||||
- name: Install automake
|
||||
package:
|
||||
name: automake
|
||||
state: present
|
||||
become: yes
|
||||
- name: Install gcc
|
||||
package:
|
||||
name: gcc
|
||||
state: present
|
||||
become: yes
|
||||
- name: Install g++
|
||||
package:
|
||||
name: gcc-c++
|
||||
state: present
|
||||
become: yes
|
||||
- name: Install golang
|
||||
package:
|
||||
name: golang
|
||||
state: present
|
||||
become: yes
|
||||
|
||||
# Install docker because .ci/setup.sh installs a version that is too old
|
||||
# to pass CI testing with.
|
||||
# TODO have .ci/setup.sh do the right thing
|
||||
- name: Install dnf-plugins-core
|
||||
package:
|
||||
name: dnf-plugins-core
|
||||
state: present
|
||||
become: yes
|
||||
- name: Add docker-ce repo
|
||||
args:
|
||||
executable: /bin/bash
|
||||
shell: |
|
||||
set -x
|
||||
dnf config-manager --add-repo "https://download.docker.com/linux/fedora/docker-ce.repo"
|
||||
dnf makecache
|
||||
become: yes
|
||||
- name: Install docker-ce
|
||||
package:
|
||||
name: docker-ce
|
||||
state: present
|
||||
become: yes
|
||||
|
||||
# TODO why isn't this necessary on Ubuntu?
|
||||
- name: Ensure vhost and vhost_net modules are present as kata checks for these
|
||||
args:
|
||||
executable: /bin/bash
|
||||
shell: |
|
||||
set -x
|
||||
modprobe vhost_net
|
||||
become: yes
|
@ -1,51 +0,0 @@
|
||||
- name: Install build-essential
|
||||
package:
|
||||
name: build-essential
|
||||
state: present
|
||||
become: yes
|
||||
- name: Install golang
|
||||
package:
|
||||
name: golang-1.10
|
||||
state: present
|
||||
become: yes
|
||||
- name: Make sure sources.list.d exists
|
||||
file:
|
||||
path: /etc/apt/sources.list.d
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0755
|
||||
state: directory
|
||||
become: yes
|
||||
|
||||
# Install docker because .ci/setup.sh installs a version that is too old
|
||||
# to pass CI testing with.
|
||||
# TODO have .ci/setup.sh do the right thing
|
||||
- name: Install apt-transport-https
|
||||
package:
|
||||
name: apt-transport-https
|
||||
state: present
|
||||
become: yes
|
||||
- name: Install ca-certificates
|
||||
package:
|
||||
name: ca-certificates
|
||||
state: present
|
||||
become: yes
|
||||
- name: Install software-properties-common
|
||||
package:
|
||||
name: software-properties-common
|
||||
state: present
|
||||
become: yes
|
||||
- name: Add docker-ce repo
|
||||
args:
|
||||
executable: /bin/bash
|
||||
shell: |
|
||||
set -x
|
||||
curl -fsSL "https://download.docker.com/linux/ubuntu/gpg" | apt-key add -
|
||||
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
|
||||
apt-get update
|
||||
become: yes
|
||||
- name: Install docker-ce
|
||||
package:
|
||||
name: docker-ce
|
||||
state: present
|
||||
become: yes
|
@ -1,5 +0,0 @@
|
||||
- name: Warn about unsupported distribution
|
||||
debug:
|
||||
msg: >
|
||||
WARNING: {{ ansible_distribution }} not supported for Kata CI under Zuul.
|
||||
You can add support to this directory if desired.
|
@ -1396,28 +1396,6 @@
|
||||
vars:
|
||||
golang_target: "test"
|
||||
|
||||
- job:
|
||||
name: kata-runsh
|
||||
parent: base
|
||||
description: |
|
||||
Run kata's setup.sh and run.sh CI scripts.
|
||||
pre-run: playbooks/kata-runsh/pre.yaml
|
||||
run: playbooks/kata-runsh/run.yaml
|
||||
post-run: playbooks/kata-runsh/post.yaml
|
||||
timeout: 7200
|
||||
nodeset:
|
||||
nodes:
|
||||
- name: ubuntu-xenial
|
||||
label: ubuntu-xenial-vexxhost
|
||||
|
||||
- job:
|
||||
name: kata-runsh-fedora-28
|
||||
parent: kata-runsh
|
||||
nodeset:
|
||||
nodes:
|
||||
- name: fedora-28
|
||||
label: fedora-28-vexxhost
|
||||
|
||||
- job:
|
||||
name: openstack-infra-extra-integration
|
||||
description: |
|
||||
|
Loading…
x
Reference in New Issue
Block a user