From eddd09f0a0356c55f2ec27a7e078dd73ac824fcb Mon Sep 17 00:00:00 2001 From: Roman Gorshunov Date: Wed, 8 Jul 2020 15:05:55 +0200 Subject: [PATCH] CI: remove redundant Ansiblle-based CI jobs CI jobs have been rewritten in Bash scripts and seem to be working fine for the past few weeks. Removing now redundant Ansiblle-based CI jobs. This would reduce workload we impose in CI infrastructure. Change-Id: I690405f5401da0beeb4b176ab22cffdfda24a09f --- playbooks/vars/airship-ipam.yaml | 21 ----- playbooks/vars/local-dev.yaml | 23 ------ playbooks/vars/test-config.yaml | 22 ------ .../defaults/main.yml | 17 ---- .../tasks/main.yml | 32 -------- .../tasks/main.yaml | 55 ------------- .../tasks/main.yaml | 52 ------------ .../defaults/main.yaml | 14 ---- .../tasks/main.yaml | 43 ---------- .../defaults/main.yaml | 18 ----- .../tasks/main.yaml | 79 ------------------- roles/airshipctl-pull-docs/tasks/main.yaml | 21 ----- .../defaults/main.yaml | 16 ---- .../tasks/main.yaml | 33 -------- .../defaults/main.yaml | 31 -------- .../tasks/generate.yaml | 42 ---------- roles/airshipctl-test-configs/tasks/main.yaml | 13 --- .../templates/airshipconfig.j2 | 49 ------------ .../templates/kubeconfig.j2 | 19 ----- roles/install-kubectl/defaults/main.yml | 15 ---- roles/install-kubectl/tasks/main.yml | 23 ------ zuul.d/jobs.yaml | 56 ------------- zuul.d/projects.yaml | 3 - 23 files changed, 697 deletions(-) delete mode 100644 playbooks/vars/airship-ipam.yaml delete mode 100644 playbooks/vars/local-dev.yaml delete mode 100644 playbooks/vars/test-config.yaml delete mode 100644 roles/airshipctl-build-ephemeral-iso/defaults/main.yml delete mode 100644 roles/airshipctl-build-ephemeral-iso/tasks/main.yml delete mode 100644 roles/airshipctl-cluster-init-ephemeral/tasks/main.yaml delete mode 100644 roles/airshipctl-deploy-ephemeral-node/tasks/main.yaml delete mode 100644 roles/airshipctl-phase-apply-initinfra/defaults/main.yaml delete mode 100644 roles/airshipctl-phase-apply-initinfra/tasks/main.yaml delete mode 100644 roles/airshipctl-phase-controlplane/defaults/main.yaml delete mode 100644 roles/airshipctl-phase-controlplane/tasks/main.yaml delete mode 100644 roles/airshipctl-pull-docs/tasks/main.yaml delete mode 100644 roles/airshipctl-systemwide-executable/defaults/main.yaml delete mode 100644 roles/airshipctl-systemwide-executable/tasks/main.yaml delete mode 100644 roles/airshipctl-test-configs/defaults/main.yaml delete mode 100644 roles/airshipctl-test-configs/tasks/generate.yaml delete mode 100644 roles/airshipctl-test-configs/tasks/main.yaml delete mode 100644 roles/airshipctl-test-configs/templates/airshipconfig.j2 delete mode 100644 roles/airshipctl-test-configs/templates/kubeconfig.j2 delete mode 100644 roles/install-kubectl/defaults/main.yml delete mode 100644 roles/install-kubectl/tasks/main.yml diff --git a/playbooks/vars/airship-ipam.yaml b/playbooks/vars/airship-ipam.yaml deleted file mode 100644 index d484b0261..000000000 --- a/playbooks/vars/airship-ipam.yaml +++ /dev/null @@ -1,21 +0,0 @@ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -airship_gate_ipam: - nat_network: - bridge_ip: "10.23.25.1" - ephemeral_ip: "10.23.25.101" - dhcp_start: "10.23.25.150" - dhcp_end: "10.23.25.160" - provision_network: - bridge_ip: "10.23.24.1" - ephemeral_ip: "10.23.24.101" diff --git a/playbooks/vars/local-dev.yaml b/playbooks/vars/local-dev.yaml deleted file mode 100644 index 17bde54c7..000000000 --- a/playbooks/vars/local-dev.yaml +++ /dev/null @@ -1,23 +0,0 @@ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -proxy: - enabled: "{{ lookup('env', 'USE_PROXY', default='false') }}" - http: "{{ lookup('env', 'HTTP_PROXY', default='') }}" - https: "{{ lookup('env', 'HTTPS_PROXY', default='') }}" - noproxy: "{{ lookup('env', 'NO_PROXY', default='') }}" - -# If remote_work_dir is defined, the deployment script will invoke airshipctl -# document pull command to download the manifests to the remote_work_dir. -# Otherwise, the current working dir where the script is launched is used and -# document pull is skipped. -#remote_work_dir: "/tmp/airship" diff --git a/playbooks/vars/test-config.yaml b/playbooks/vars/test-config.yaml deleted file mode 100644 index c6c35d0d9..000000000 --- a/playbooks/vars/test-config.yaml +++ /dev/null @@ -1,22 +0,0 @@ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -airship_config_action: generate -airship_config_iso_gen_target_path: "{{ serve_dir }}" -airship_config_primary_repo_url: "https://review.opendev.org/airship/airshipctl" -airship_config_manifest_directory: "{{ remote_work_dir | default(zuul.project.src_dir) | default(local_src_dir) }}" -airship_config_ephemeral_ip: "{{ airship_gate_ipam.nat_network.ephemeral_ip }}" -airship_config_iso_builder_docker_image: "quay.io/airshipit/isogen:latest-debian_stable" -airship_config_site_path: manifests/site/test-site -airship_config_ca_data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUN5RENDQWJDZ0F3SUJBZ0lCQURBTkJna3Foa2lHOXcwQkFRc0ZBREFWTVJNd0VRWURWUVFERXdwcmRXSmwKY201bGRHVnpNQjRYRFRFNU1USXlOakE0TWp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UlNBIFBSSVZBVEUgS0VZLS0tLS0K diff --git a/roles/airshipctl-build-ephemeral-iso/defaults/main.yml b/roles/airshipctl-build-ephemeral-iso/defaults/main.yml deleted file mode 100644 index 455091742..000000000 --- a/roles/airshipctl-build-ephemeral-iso/defaults/main.yml +++ /dev/null @@ -1,17 +0,0 @@ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -proxy: - enabled: false - http: - https: - noproxy: diff --git a/roles/airshipctl-build-ephemeral-iso/tasks/main.yml b/roles/airshipctl-build-ephemeral-iso/tasks/main.yml deleted file mode 100644 index 309ddbcd9..000000000 --- a/roles/airshipctl-build-ephemeral-iso/tasks/main.yml +++ /dev/null @@ -1,32 +0,0 @@ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -- name: make sure serve directory exists - file: - dest: "{{ serve_dir }}" - state: directory - mode: "0755" - owner: "{{ ansible_user }}" - become: yes - -- name: build ephemeral node iso - command: airshipctl image build - environment: - http_proxy: "{{ proxy.http }}" - https_proxy: "{{ proxy.http }}" - no_proxy: "{{ proxy.noproxy }}" - -- name: cleanup temp dir - file: - path: "{{ serve_dir }}" - state: absent - when: airship_cleanup_serve_dir | default(false) diff --git a/roles/airshipctl-cluster-init-ephemeral/tasks/main.yaml b/roles/airshipctl-cluster-init-ephemeral/tasks/main.yaml deleted file mode 100644 index 0ffcfcb6e..000000000 --- a/roles/airshipctl-cluster-init-ephemeral/tasks/main.yaml +++ /dev/null @@ -1,55 +0,0 @@ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -- name: initialize CAPI components - command: >- - airshipctl --debug cluster init - -- name: verify CAPI deployments are created - command: >- - timeout 20 kubectl \ - --kubeconfig {{ airshipctl_config_dir_default | default(ansible_env.HOME) }}/.airship/kubeconfig \ - get deploy -n {{ item.namespace }} {{ item.name }} - register: deploy_status - until: item.name in deploy_status.stdout - with_items: - - namespace: capi-kubeadm-bootstrap-system - name: capi-kubeadm-bootstrap-controller-manager - - namespace: capi-kubeadm-control-plane-system - name: capi-kubeadm-control-plane-controller-manager - - namespace: capi-system - name: capi-controller-manager - - namespace: capi-webhook-system - name: capi-controller-manager - - namespace: capi-webhook-system - name: capi-kubeadm-bootstrap-controller-manager - - namespace: capi-webhook-system - name: capi-kubeadm-control-plane-controller-manager - - namespace: capi-webhook-system - name: capm3-controller-manager - - namespace: capm3-system - name: capm3-controller-manager - - namespace: cert-manager - name: cert-manager - - namespace: cert-manager - name: cert-manager-cainjector - - namespace: cert-manager - name: cert-manager-webhook - retries: 50 - delay: 20 - -# TODO: As soon as issue #127 is complete, this check for deployments -# should be removed and initinfra command should check for resource status. -- name: verify all deployments are up - command: >- - kubectl --kubeconfig {{ airshipctl_config_dir_default | default(ansible_env.HOME) }}/.airship/kubeconfig \ - wait --for=condition=available deploy --all --timeout=1000s -A diff --git a/roles/airshipctl-deploy-ephemeral-node/tasks/main.yaml b/roles/airshipctl-deploy-ephemeral-node/tasks/main.yaml deleted file mode 100644 index f8048a786..000000000 --- a/roles/airshipctl-deploy-ephemeral-node/tasks/main.yaml +++ /dev/null @@ -1,52 +0,0 @@ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -- name: deploy ephemeral node using redfish - command: >- - airshipctl baremetal remotedirect --debug - -- name: check kubectl version - command: >- - timeout 20 kubectl \ - --kubeconfig {{ airshipctl_config_dir_default | default(ansible_env.HOME) }}/.airship/kubeconfig \ - version - register: airship_kubecofig_version - retries: 100 - delay: 50 - until: airship_kubecofig_version.rc == 0 - -- name: debug kubectl version - debug: - var: airship_kubecofig_version.stdout - -- name: Wait for all control pods to be created - command: >- - kubectl get po -n kube-system --selector tier=control-plane \ - --kubeconfig {{ airshipctl_config_dir_default | default(ansible_env.HOME) }}/.airship/kubeconfig \ - --output=jsonpath='{.items[*].metadata.name}' - register: control_pods_created - until: item in control_pods_created.stdout - retries: 10 - delay: 30 - with_items: - - etcd - - kube-apiserver - - kube-controller-manager - - kube-scheduler - -- name: Wait for control pods become ready - command: >- - kubectl wait -n kube-system --for=condition=Ready pods --selector tier=control-plane --timeout=600s \ - --kubeconfig {{ airshipctl_config_dir_default | default(ansible_env.HOME) }}/.airship/kubeconfig \ - register: control_pods_ready - -- debug: var=control_pods_ready.stdout_lines diff --git a/roles/airshipctl-phase-apply-initinfra/defaults/main.yaml b/roles/airshipctl-phase-apply-initinfra/defaults/main.yaml deleted file mode 100644 index 934d6fde5..000000000 --- a/roles/airshipctl-phase-apply-initinfra/defaults/main.yaml +++ /dev/null @@ -1,14 +0,0 @@ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# TODO: Remove this as soon as issue #127 is complete -infra_namespace: metal3 diff --git a/roles/airshipctl-phase-apply-initinfra/tasks/main.yaml b/roles/airshipctl-phase-apply-initinfra/tasks/main.yaml deleted file mode 100644 index 50df3f760..000000000 --- a/roles/airshipctl-phase-apply-initinfra/tasks/main.yaml +++ /dev/null @@ -1,43 +0,0 @@ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -- name: apply phases to cluster - command: >- - airshipctl phase apply initinfra --debug - -# TODO: As soon as issue #127 is complete, this check for pods should -# be removed and initinfra command should check for resource status. -- name: verify initinfra metal3-baremetal-operator is created - command: >- - timeout 20 kubectl \ - --kubeconfig {{ airshipctl_config_dir_default | default(ansible_env.HOME) }}/.airship/kubeconfig \ - --namespace {{ infra_namespace }} \ - get deploy {{ item }} - register: deploy_status - until: item in deploy_status.stdout - with_items: - - metal3-baremetal-operator - retries: 50 - delay: 20 - -- name: verify initinfra metal3-baremetal-operator comes up - command: >- - timeout 20 kubectl \ - --kubeconfig {{ airshipctl_config_dir_default | default(ansible_env.HOME) }}/.airship/kubeconfig \ - --namespace {{ infra_namespace }} \ - wait --for=condition=ready pods --selector name={{ item }} - register: deploy_status - until: item in deploy_status.stdout - with_items: - - metal3-baremetal-operator - retries: 50 - delay: 20 diff --git a/roles/airshipctl-phase-controlplane/defaults/main.yaml b/roles/airshipctl-phase-controlplane/defaults/main.yaml deleted file mode 100644 index 9cd99c7bc..000000000 --- a/roles/airshipctl-phase-controlplane/defaults/main.yaml +++ /dev/null @@ -1,18 +0,0 @@ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -sushy_host: "{{ airship_gate_ipam.nat_network.bridge_ip | default(ansible_default_ipv4.address) }}" -sushy_port: 8000 -target_image_dir: "{{ serve_dir | default('/srv/iso') }}" -airship_site_name: "{{ 'airshipctl/' if remote_work_dir is defined else '' }}{{ airship_config_site_path | default('manifests/site/test-site') }}" -ephemeral_domain_name: air-ephemeral -target_image_url: "https://cloud-images.ubuntu.com/xenial/current/xenial-server-cloudimg-amd64-disk1.img" diff --git a/roles/airshipctl-phase-controlplane/tasks/main.yaml b/roles/airshipctl-phase-controlplane/tasks/main.yaml deleted file mode 100644 index d2e379578..000000000 --- a/roles/airshipctl-phase-controlplane/tasks/main.yaml +++ /dev/null @@ -1,79 +0,0 @@ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# TODO (dukov) this is needed dute to sushy tools inserts cdrom image to -# all vms. This can be removed once sushy tool is fixed -- name: ensure all cdrom images are ejected - shell: |- - set -x - for vm in $(virsh list --all --name |grep -v {{ ephemeral_domain_name }}) - do - virsh domblklist $vm | - awk 'NF==2 {print $1}' | - grep -v Target | - xargs -I{} virsh change-media $vm {} --eject || : - done - become: yes - -- name: download target image - shell: | - set -e - DOWNLOAD="200" - if [ -e {{ target_image_dir }}/target-image.qcow2 ] - then - MTIME=$(date -d @$(stat -c %Y {{ target_image_dir }}/target-image.qcow2) +"%a, %d %b %Y %T %Z") - DOWNLOAD=$(curl -sSLI \ - --write-out '%{http_code}' \ - -H "If-Modified-Since: ${MTIME}" \ - {{ target_image_url }} | tail -1) - fi - if [ "${DOWNLOAD}" != "304" ] - then - curl -sSLo {{ target_image_dir }}/target-image.qcow2 {{ target_image_url }} - fi - md5sum /srv/iso/target-image.qcow2 | cut -d ' ' -f 1 > {{ target_image_dir }}/target-image.qcow2.md5sum - -- name: create target k8s cluster resources - command: >- - airshipctl phase apply controlplane - -- name: get kubeconfig from secret - command: >- - kubectl \ - --kubeconfig {{ airshipctl_config_dir_default | default(ansible_env.HOME) }}/.airship/kubeconfig \ - get secret target-cluster-kubeconfig -o jsonpath='{.data.value}' - register: kubeconfig - failed_when: "kubeconfig.stdout == ''" - retries: 6 - delay: 10 - until: kubeconfig.rc == 0 - -- name: create kubeconfig - copy: - content: "{{ kubeconfig.stdout | b64decode }}" - dest: /tmp/targetkubeconfig - -- name: check kubectl version - command: >- - timeout 20 kubectl --kubeconfig /tmp/targetkubeconfig version - register: airship_kubecofig_version - retries: 30 - delay: 60 - until: airship_kubecofig_version.rc == 0 - -- name: check nodes status - command: kubectl --kubeconfig /tmp/targetkubeconfig wait node --for=condition=Ready --all --timeout 900s - -- name: get cluster state - command: >- - kubectl --kubeconfig {{ airshipctl_config_dir_default | default(ansible_env.HOME) }}/.airship/kubeconfig \ - get cluster diff --git a/roles/airshipctl-pull-docs/tasks/main.yaml b/roles/airshipctl-pull-docs/tasks/main.yaml deleted file mode 100644 index 5b359f138..000000000 --- a/roles/airshipctl-pull-docs/tasks/main.yaml +++ /dev/null @@ -1,21 +0,0 @@ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# The role is used to pull the manifests on remote host. -# Durning tests in zuul, zuul copies git repository to target node, however -# When running outside zuul/opendev ci env, we want to pull manifests from -# commit to remote machine as well. - - -- name: pull documents - command: airshipctl document pull --debug - when: remote_work_dir is defined diff --git a/roles/airshipctl-systemwide-executable/defaults/main.yaml b/roles/airshipctl-systemwide-executable/defaults/main.yaml deleted file mode 100644 index db18b62ba..000000000 --- a/roles/airshipctl-systemwide-executable/defaults/main.yaml +++ /dev/null @@ -1,16 +0,0 @@ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -proxy: - enabled: "false" - http: - noproxy: \ No newline at end of file diff --git a/roles/airshipctl-systemwide-executable/tasks/main.yaml b/roles/airshipctl-systemwide-executable/tasks/main.yaml deleted file mode 100644 index f913318ca..000000000 --- a/roles/airshipctl-systemwide-executable/tasks/main.yaml +++ /dev/null @@ -1,33 +0,0 @@ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -- name: "make docker-image" - make: - chdir: "{{ local_src_dir | default(zuul.project.src_dir) }}" - target: docker-image - params: - USE_PROXY: "{{ proxy.enabled }}" - PROXY: "{{ proxy.http }}" - NO_PROXY: "{{ proxy.noproxy }}" - -- name: "copy airshipctl binary to host" - shell: | - set -ex - DOCKER_IMAGE_TAG=$(make print-docker-image-tag) - CONTAINER=$(docker create "${DOCKER_IMAGE_TAG}") - sudo docker cp "${CONTAINER}:/usr/local/bin/airshipctl" "/usr/local/bin/airshipctl" - docker rm "${CONTAINER}" - args: - chdir: "{{ local_src_dir | default(zuul.project.src_dir) }}" - -- name: "make sure airshipctl is executable" - command: airshipctl version diff --git a/roles/airshipctl-test-configs/defaults/main.yaml b/roles/airshipctl-test-configs/defaults/main.yaml deleted file mode 100644 index 6729e2918..000000000 --- a/roles/airshipctl-test-configs/defaults/main.yaml +++ /dev/null @@ -1,31 +0,0 @@ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -airship_config_iso_gen_target_path: /srv/iso -airship_config_manifest_directory: /tmp/airship -# the git repo url or local file system path to a cloned repo, e.g., /home/stack/airshipctl -airship_config_primary_repo_url: "https://review.opendev.org/airship/airshipctl" -airship_config_primary_repo_branch: "master" -airship_config_ephemeral_ip: "10.23.25.101" -airship_config_iso_builder_docker_image: quay.io/airshipit/isogen:latest-debian_stable -airship_config_iso_port: 8099 -airship_config_iso_serve_host: localhost -airship_config_iso_name: debian-custom.iso -airship_site_name: "{{ airship_config_site_path | default('manifests/site/test-site') }}" -remote_type: redfish -remote_insecure: true -remote_proxy: false -system_action_retries: 30 -system_reboot_delay: 30 -airship_config_ca_data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUN5RENDQWJDZ0F3SUJBZ0lCQURBTkJna3Foa2lHOXcwQkFRc0ZBREFWTVJNd0VRWURWUVFERXdwcmRXSmwKY201bGRHVnpNQjRYRFRFNU1USXlOakE0TWpneU5Gb1hEVEk1TVRJ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0VZLS0tLS0K diff --git a/roles/airshipctl-test-configs/tasks/generate.yaml b/roles/airshipctl-test-configs/tasks/generate.yaml deleted file mode 100644 index 45bf2f18c..000000000 --- a/roles/airshipctl-test-configs/tasks/generate.yaml +++ /dev/null @@ -1,42 +0,0 @@ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -- name: set airshipctl config directory - set_fact: - airshipctl_config_dir: "{{ ansible_env.HOME }}/.airship" - -- name: Ensure airshipctl directory exists - file: - state: directory - path: "{{ airshipctl_config_dir }}" - mode: "0700" - -- name: generate airshipctl config file - template: - src: "airshipconfig.j2" - dest: "{{ airshipctl_config_dir }}/config" - -- name: generate kubeconfig - template: - src: "kubeconfig.j2" - dest: "{{ airshipctl_config_dir }}/kubeconfig" - -- name: verify airshipctl config is working - block: - - name: verify cluster is set - command: airshipctl config get-cluster - register: airshipctl_cluster - - - name: assert that cluster is correct - assert: - that: - - "'dummycluster_ephemeral' in airshipctl_cluster.stdout" diff --git a/roles/airshipctl-test-configs/tasks/main.yaml b/roles/airshipctl-test-configs/tasks/main.yaml deleted file mode 100644 index d5d9d0857..000000000 --- a/roles/airshipctl-test-configs/tasks/main.yaml +++ /dev/null @@ -1,13 +0,0 @@ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -- include_tasks: "{{ airship_config_action }}.yaml" \ No newline at end of file diff --git a/roles/airshipctl-test-configs/templates/airshipconfig.j2 b/roles/airshipctl-test-configs/templates/airshipconfig.j2 deleted file mode 100644 index 4157f0bff..000000000 --- a/roles/airshipctl-test-configs/templates/airshipconfig.j2 +++ /dev/null @@ -1,49 +0,0 @@ -apiVersion: airshipit.org/v1alpha1 -bootstrapInfo: - dummy_bootstrap_config: - container: - volume: {{ airship_config_iso_gen_target_path }}:/config - image: {{ airship_config_iso_builder_docker_image }} - containerRuntime: docker - remoteDirect: - isoUrl: http://{{ airship_config_iso_serve_host }}:{{ airship_config_iso_port }}/{{ airship_config_iso_name }} - builder: - userDataFileName: user-data - networkConfigFileName: network-config - outputMetadataFileName: output-metadata.yaml -managementConfiguration: - dummy_management_config: - type: {{ remote_type }} - insecure: {{ remote_insecure }} - useproxy: {{ remote_proxy }} - systemActionRetries: {{ system_action_retries }} - systemRebootDelay: {{ system_reboot_delay }} - -clusters: - dummycluster: - clusterType: - ephemeral: - bootstrapInfo: dummy_bootstrap_config - clusterKubeconf: dummycluster_ephemeral - managementConfiguration: dummy_management_config -contexts: - dummy_cluster: - contextKubeconf: dummy_cluster - manifest: dummy_manifest -currentContext: dummy_cluster -kind: Config -manifests: - dummy_manifest: - primaryRepositoryName: primary - repositories: - primary: - checkout: - branch: {{ airship_config_primary_repo_branch }} - force: false - remoteRef: "" - tag: "" - url: {{ airship_config_primary_repo_url }} - subPath: "{{ 'airshipctl/' if remote_work_dir is defined else '' }}{{ airship_site_name }}" - targetPath: {{ airship_config_manifest_directory }} -users: - dummy_user: {} diff --git a/roles/airshipctl-test-configs/templates/kubeconfig.j2 b/roles/airshipctl-test-configs/templates/kubeconfig.j2 deleted file mode 100644 index d89a1838a..000000000 --- a/roles/airshipctl-test-configs/templates/kubeconfig.j2 +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: v1 -clusters: -- cluster: - certificate-authority-data: {{ airship_config_ca_data }} - server: https://{{ airship_config_ephemeral_ip }}:6443 - name: dummycluster_ephemeral -contexts: -- context: - cluster: dummycluster_ephemeral - user: kubernetes-admin - name: dummy_cluster -current-context: dummy_cluster -kind: Config -preferences: {} -users: -- name: kubernetes-admin - user: - client-certificate-data: {{ airship_config_client_cert_data }} - client-key-data: {{ airship_config_client_key_data }} \ No newline at end of file diff --git a/roles/install-kubectl/defaults/main.yml b/roles/install-kubectl/defaults/main.yml deleted file mode 100644 index bf6fa2f2b..000000000 --- a/roles/install-kubectl/defaults/main.yml +++ /dev/null @@ -1,15 +0,0 @@ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -proxy: - http: - noproxy: \ No newline at end of file diff --git a/roles/install-kubectl/tasks/main.yml b/roles/install-kubectl/tasks/main.yml deleted file mode 100644 index 5a92e2ea7..000000000 --- a/roles/install-kubectl/tasks/main.yml +++ /dev/null @@ -1,23 +0,0 @@ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -- name: install kubectl binary - shell: | - curl -sSLo /usr/local/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/v1.17.4/bin/linux/amd64/kubectl - chmod +x /usr/local/bin/kubectl - become: yes - args: - warn: false - environment: - http_proxy: "{{ proxy.http }}" - https_proxy: "{{ proxy.http }}" - no_proxy: "{{ proxy.noproxy }}" diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml index 3f4785634..c4cfad13c 100644 --- a/zuul.d/jobs.yaml +++ b/zuul.d/jobs.yaml @@ -76,62 +76,6 @@ secret: airship_airshipctl_airshipit_github_secret pass-to-parent: true -- job: - name: airship-airshipctl-gate-test - attempts: 1 - timeout: 3600 - pre-run: - - playbooks/airship-airshipctl-deploy-docker.yaml - - playbooks/airship-airshipctl-build-gate.yaml - post-run: playbooks/airship-collect-logs.yaml - run: playbooks/airship-airshipctl-test-runner.yaml - nodeset: airship-airshipctl-single-16GB-bionic-node - vars: - site_name: test-site -## var files are the files that are located at playbooks/vars directory - var_files: - - airship-ipam.yaml - - test-config.yaml - test_roles: - - airshipctl-systemwide-executable - - airshipctl-test-configs - - airshipctl-build-ephemeral-iso - - install-kubectl - - airshipctl-deploy-ephemeral-node - - airshipctl-phase-apply-initinfra - - airshipctl-cluster-init-ephemeral - - airshipctl-phase-controlplane - serve_dir: /srv/iso - serve_port: 8099 - voting: false - -- job: - name: airship-airshipctl-32GB-gate-test - nodeset: airship-airshipctl-single-32GB-bionic-node - pre-run: - - playbooks/airship-airshipctl-deploy-docker.yaml - - playbooks/airship-airshipctl-build-gate.yaml - post-run: playbooks/airship-collect-logs.yaml - run: playbooks/airship-airshipctl-test-runner.yaml - timeout: 3600 - vars: - site_name: test-site - var_files: - - airship-ipam.yaml - - test-config.yaml - test_roles: - - airshipctl-systemwide-executable - - airshipctl-test-configs - - airshipctl-build-ephemeral-iso - - install-kubectl - - airshipctl-deploy-ephemeral-node - - airshipctl-phase-apply-initinfra - - airshipctl-cluster-init-ephemeral - - airshipctl-phase-controlplane - serve_dir: /srv/iso - serve_port: 8099 - voting: false - - job: name: airship-airshipctl-gate-script-runner-test attempts: 1 diff --git a/zuul.d/projects.yaml b/zuul.d/projects.yaml index d30c4d9e0..2f2f2ad78 100644 --- a/zuul.d/projects.yaml +++ b/zuul.d/projects.yaml @@ -24,8 +24,6 @@ - airship-airshipctl-build-image - airship-airshipctl-validate-site-docs # - airship-airshipctl-functional-existing-k8s TODO: Enable this when functional tests exist, and a cluster is up - - airship-airshipctl-gate-test - - airship-airshipctl-32GB-gate-test - airship-airshipctl-gate-script-runner-test - airship-airshipctl-32GB-gate-script-runner-test gate: @@ -35,7 +33,6 @@ - airship-airshipctl-build-image - airship-airshipctl-validate-site-docs # - airship-airshipctl-functional-existing-k8s TODO: Enable this when functional tests exist, and a cluster is up - - airship-airshipctl-gate-test post: jobs: - airship-airshipctl-publish-image