Install same version for k8s CLIs and k8s control plane services

We use kubernetes 1.9.3 to run the tests.

An experimental zuul job to run tempest on CentOS 7 is also added.

Co-Authored-By: Hunt Xu <mhuntxu@gmail.com>

Change-Id: I757684b38e754b74420ee88304e05d09231b9d58
This commit is contained in:
Lingxian Kong 2018-03-29 01:15:50 +13:00 committed by Hunt Xu
parent 70db94c91e
commit 0eef3c88d2
6 changed files with 31 additions and 12 deletions

View File

@ -58,6 +58,11 @@
# deployment to avoid tests failing of no avaliable pod.
tempest_concurrency: 3
- job:
name: qinling-tempest-centos7
parent: qinling-tempest
nodeset: devstack-single-node-centos-7
- project:
check:
jobs:
@ -67,3 +72,6 @@
gate:
jobs:
- openstack-tox-lower-constraints
experimental:
jobs:
- qinling-tempest-centos7

View File

@ -34,6 +34,7 @@ function base_install {
initscripts \
nmap \
lshw \
screen \
ansible
elif [ "x$HOST_OS" == "xfedora" ]; then
sudo dnf install -y \

View File

@ -11,7 +11,6 @@
with_items:
- python
- unzip
- httpie
- name: Gather facts after python installation
setup: filter=ansible_*

View File

@ -6,7 +6,18 @@
baseurl: https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64
enabled: yes
gpgcheck: yes
repo_gpgcheck: yes
# Got "repomd.xml signature could not be verified for kubernetes" on zuul
repo_gpgcheck: no
gpgkey:
- https://packages.cloud.google.com/yum/doc/yum-key.gpg
- https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
- name: Install kube CLIs
package:
name: "{{ item }}"
state: present
update_cache: yes
with_items:
- kubelet-1.9.3
- kubectl-1.9.3
- kubeadm-1.9.3

View File

@ -7,16 +7,6 @@
when:
ansible_pkg_mgr == 'yum'
- name: Install kube CLIs
package:
name: "{{ item }}"
state: present
update_cache: yes
with_items:
- kubelet
- kubeadm
- kubectl
- name: Start kubelet
systemd:
name: kubelet

View File

@ -8,3 +8,13 @@
apt_repository:
repo: 'deb http://apt.kubernetes.io/ kubernetes-xenial main'
state: present
- name: Install kube CLIs
package:
name: "{{ item }}"
state: present
update_cache: yes
with_items:
- kubelet=1.9.3-00
- kubectl=1.9.3-00
- kubeadm=1.9.3-00