Fix broken CI jobs (#1854)

* Fix broken CI jobs

Adjust image and image_family scenarios for debian.
Checkout CI file for upgrades

* add debugging to file download

* Fix download for alternate playbooks

* Update ansible ssh args to force ssh user

* Update sync_container.yml
This commit is contained in:
Matthew Mosesohn 2017-10-25 11:45:54 +01:00 committed by GitHub
parent acb63a57fa
commit a52bc44f5a
23 changed files with 37 additions and 24 deletions

View file

@ -96,6 +96,8 @@ before_script:
# Uncomment when gitlab kargo repo has tags # Uncomment when gitlab kargo repo has tags
#- test "${UPGRADE_TEST}" != "false" && git fetch --all && git checkout $(git describe --tags $(git rev-list --tags --max-count=1)) #- test "${UPGRADE_TEST}" != "false" && git fetch --all && git checkout $(git describe --tags $(git rev-list --tags --max-count=1))
- test "${UPGRADE_TEST}" != "false" && git checkout 72ae7638bcc94c66afa8620dfa4ad9a9249327ea - test "${UPGRADE_TEST}" != "false" && git checkout 72ae7638bcc94c66afa8620dfa4ad9a9249327ea
# Checkout the CI vars file so it is available
- test "${UPGRADE_TEST}" != "false" && git checkout "${CI_BUILD_REF}" tests/files/${CI_JOB_NAME}.yml
# Create cluster # Create cluster

View file

@ -1,7 +1,7 @@
[ssh_connection] [ssh_connection]
pipelining=True pipelining=True
ssh_args = -o ControlMaster=auto -o ControlPersist=30m -o ConnectionAttempts=100 ansible_ssh_common_args = -o ControlMaster=auto -o ControlPersist=30m -o ConnectionAttempts=100
#ssh_args = -F ./ssh-bastion.conf -o ControlMaster=auto -o ControlPersist=30m -o ConnectionAttempts=100 #ansible_ssh_common_args = -F {{ inventory_dir|quote }}/ssh-bastion.conf -o ControlMaster=auto -o ControlPersist=30m -o ConnectionAttempts=100
#control_path = ~/.ssh/ansible-%%r@%%h:%%p #control_path = ~/.ssh/ansible-%%r@%%h:%%p
[defaults] [defaults]
host_key_checking=False host_key_checking=False

View file

@ -3,6 +3,7 @@
### * Will not upgrade etcd ### * Will not upgrade etcd
### * Will not upgrade network plugins ### * Will not upgrade network plugins
### * Will not upgrade Docker ### * Will not upgrade Docker
### * Will not pre-download containers or kubeadm
### * Currently does not support Vault deployment. ### * Currently does not support Vault deployment.
### ###
### In most cases, you probably want to use upgrade-cluster.yml playbook and ### In most cases, you probably want to use upgrade-cluster.yml playbook and

View file

@ -1,4 +1,10 @@
--- ---
- name: file_download | Downloading...
debug:
msg:
- "URL: {{ download.url }}"
- "Dest: {{ download.dest }}"
- name: file_download | Create dest directory - name: file_download | Create dest directory
file: file:
path: "{{local_release_dir}}/{{download.dest|dirname}}" path: "{{local_release_dir}}/{{download.dest|dirname}}"

View file

@ -62,7 +62,7 @@
synchronize: synchronize:
src: "{{ fname }}" src: "{{ fname }}"
dest: "{{ fname }}" dest: "{{ fname }}"
use_ssh_args: yes use_ssh_args: "{{ has_bastion | default(false) }}"
mode: pull mode: pull
delegate_to: localhost delegate_to: localhost
delegate_facts: no delegate_facts: no
@ -81,7 +81,7 @@
synchronize: synchronize:
src: "{{ fname }}" src: "{{ fname }}"
dest: "{{ fname }}" dest: "{{ fname }}"
use_ssh_args: yes use_ssh_args: "{{ has_bastion | default(false) }}"
mode: push mode: push
delegate_to: localhost delegate_to: localhost
delegate_facts: no delegate_facts: no

View file

@ -1,6 +1,6 @@
[ssh_connection] [ssh_connection]
pipelining=True pipelining=True
ssh_args = -o ControlMaster=auto -o ControlPersist=30m -o ConnectionAttempts=100 ansible_ssh_common_args = -o ControlMaster=auto -o ControlPersist=30m -o ConnectionAttempts=100
[defaults] [defaults]
forks = 20 forks = 20
host_key_checking=False host_key_checking=False

View file

@ -29,7 +29,8 @@
gce: gce:
instance_names: "{{instance_names}}" instance_names: "{{instance_names}}"
machine_type: "{{ cloud_machine_type }}" machine_type: "{{ cloud_machine_type }}"
image_family: "{{ cloud_image }}" image: "{{ cloud_image | default(omit) }}"
image_family: "{{ cloud_image_family | default(omit) }}"
preemptible: "{{ preemptible }}" preemptible: "{{ preemptible }}"
service_account_email: "{{ gce_service_account_email }}" service_account_email: "{{ gce_service_account_email }}"
pem_file: "{{ gce_pem_file | default(omit)}}" pem_file: "{{ gce_pem_file | default(omit)}}"

View file

@ -1,5 +1,5 @@
# Instance settings # Instance settings
cloud_image: centos-7 cloud_image_family: centos-7
cloud_machine_type: "n1-standard-1" cloud_machine_type: "n1-standard-1"
cloud_region: us-central1-b cloud_region: us-central1-b
mode: ha mode: ha
@ -9,7 +9,7 @@ startup_script: ""
kube_network_plugin: weave kube_network_plugin: weave
weave_cpu_limit: "100m" weave_cpu_limit: "100m"
weave_cpu_requests: "100m" weave_cpu_requests: "100m"
kubeadm_enabled: "true" kubeadm_enabled: true
deploy_netchecker: true deploy_netchecker: true
kubedns_min_replicas: 1 kubedns_min_replicas: 1
cloud_provider: gce cloud_provider: gce

View file

@ -1,12 +1,12 @@
# Instance settings # Instance settings
cloud_image: centos-7 cloud_image_family: centos-7
cloud_region: europe-west1-b cloud_region: europe-west1-b
mode: ha-scale mode: ha-scale
# Deployment settings # Deployment settings
kube_network_plugin: calico kube_network_plugin: calico
download_localhost: "true" download_localhost: true
download_run_once: "true" download_run_once: true
deploy_netchecker: true deploy_netchecker: true
kubedns_min_replicas: 1 kubedns_min_replicas: 1
cloud_provider: gce cloud_provider: gce

View file

@ -1,5 +1,5 @@
# Instance settings # Instance settings
cloud_image: centos-7 cloud_image_family: centos-7
cloud_region: us-west1-a cloud_region: us-west1-a
cloud_machine_type: "n1-standard-1" cloud_machine_type: "n1-standard-1"
mode: default mode: default

View file

@ -1,5 +1,5 @@
# Instance settings # Instance settings
cloud_image: coreos-alpha cloud_image_family: coreos-alpha
cloud_region: us-west1-a cloud_region: us-west1-a
mode: ha-scale mode: ha-scale
startup_script: 'systemctl disable locksmithd && systemctl stop locksmithd' startup_script: 'systemctl disable locksmithd && systemctl stop locksmithd'

View file

@ -1,5 +1,5 @@
# Instance settings # Instance settings
cloud_image: coreos-stable cloud_image_family: coreos-stable
cloud_region: us-west1-b cloud_region: us-west1-b
cloud_machine_type: "n1-standard-2" cloud_machine_type: "n1-standard-2"
mode: aio mode: aio

View file

@ -1,5 +1,5 @@
# Instance settings # Instance settings
cloud_image: coreos-stable cloud_image_family: coreos-stable
cloud_region: us-east1-b cloud_region: us-east1-b
mode: default mode: default
startup_script: 'systemctl disable locksmithd && systemctl stop locksmithd' startup_script: 'systemctl disable locksmithd && systemctl stop locksmithd'

View file

@ -1,5 +1,5 @@
# Instance settings # Instance settings
cloud_image: rhel-7 cloud_image_family: rhel-7
cloud_region: us-east1-b cloud_region: us-east1-b
mode: separate mode: separate

View file

@ -1,5 +1,5 @@
# Instance settings # Instance settings
cloud_image: rhel-7 cloud_image_family: rhel-7
cloud_region: europe-west1-b cloud_region: europe-west1-b
mode: default mode: default

View file

@ -1,5 +1,5 @@
# Instance settings # Instance settings
cloud_image: ubuntu-1604-lts cloud_image_family: ubuntu-1604-lts
cloud_region: europe-west1-b cloud_region: europe-west1-b
mode: ha mode: ha

View file

@ -1,5 +1,5 @@
# Instance settings # Instance settings
cloud_image: ubuntu-1604-lts cloud_image_family: ubuntu-1604-lts
cloud_machine_type: "n1-standard-1" cloud_machine_type: "n1-standard-1"
cloud_region: europe-west1-b cloud_region: europe-west1-b
mode: ha mode: ha
@ -7,7 +7,7 @@ mode: ha
# Deployment settings # Deployment settings
bootstrap_os: ubuntu bootstrap_os: ubuntu
kube_network_plugin: canal kube_network_plugin: canal
kubeadm_enabled: "true" kubeadm_enabled: true
deploy_netchecker: true deploy_netchecker: true
kubedns_min_replicas: 1 kubedns_min_replicas: 1
cloud_provider: gce cloud_provider: gce

View file

@ -1,5 +1,5 @@
# Instance settings # Instance settings
cloud_image: ubuntu-1604-lts cloud_image_family: ubuntu-1604-lts
cloud_region: europe-west1-b cloud_region: europe-west1-b
mode: separate mode: separate

View file

@ -1,5 +1,5 @@
# Instance settings # Instance settings
cloud_image: ubuntu-1604-lts cloud_image_family: ubuntu-1604-lts
cloud_region: us-central1-b cloud_region: us-central1-b
mode: separate mode: separate
@ -8,6 +8,8 @@ bootstrap_os: ubuntu
kube_network_plugin: flannel kube_network_plugin: flannel
etcd_deployment: rkt etcd_deployment: rkt
kubelet_deployment: rkt kubelet_deployment: rkt
download_localhost: true
download_run_once: true
deploy_netchecker: true deploy_netchecker: true
kubedns_min_replicas: 1 kubedns_min_replicas: 1
cloud_provider: gce cloud_provider: gce

View file

@ -1,6 +1,6 @@
# Instance settings # Instance settings
cloud_machine_type: "n1-standard-1" cloud_machine_type: "n1-standard-1"
cloud_image: ubuntu-1604-lts cloud_image_family: ubuntu-1604-lts
cloud_region: us-central1-b cloud_region: us-central1-b
mode: separate mode: separate

View file

@ -1,5 +1,5 @@
# Instance settings # Instance settings
cloud_image: ubuntu-1604-lts cloud_image_family: ubuntu-1604-lts
cloud_region: us-central1-b cloud_region: us-central1-b
mode: separate mode: separate

View file

@ -32,6 +32,7 @@
- role: rkt - role: rkt
tags: rkt tags: rkt
when: "'rkt' in [etcd_deployment_type, kubelet_deployment_type, vault_deployment_type]" when: "'rkt' in [etcd_deployment_type, kubelet_deployment_type, vault_deployment_type]"
- { role: download, tags: download, skip_downloads: false }
- hosts: etcd:k8s-cluster:vault - hosts: etcd:k8s-cluster:vault
any_errors_fatal: "{{ any_errors_fatal | default(true) }}" any_errors_fatal: "{{ any_errors_fatal | default(true) }}"