chore: fix csi ci into zuul (#3275)
Signed-off-by: Mohammed Naser <mnaser@vexxhost.com>
This commit is contained in:
1 parent
d486a6a57b
commit
a80fbc6a64
24 files changed
+157
-519
No files matched your search
@@ -90,22 +90,6 @@ jobs:
|
||||
outputs:
|
||||
build-id: ${{ steps.bake.outputs.build-id }}
|
||||
|
||||
csi:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.event_name == 'pull_request' }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
csi_driver:
|
||||
- local-path-provisioner
|
||||
- rbd
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
- uses: ./.github/actions/molecule
|
||||
with:
|
||||
scenario: csi
|
||||
csi_driver: ${{ matrix.csi_driver }}
|
||||
|
||||
keycloak:
|
||||
runs-on: vexxhost-ubuntu-22.04-4
|
||||
if: ${{ github.event_name == 'pull_request' }}
|
||||
|
||||
+80
@@ -0,0 +1,80 @@
|
||||
- nodeset:
|
||||
name: atmosphere-ubuntu-jammy-single-node
|
||||
nodes:
|
||||
- name: instance
|
||||
label: ubuntu-jammy
|
||||
groups: &single_node_groups
|
||||
- name: controllers
|
||||
nodes:
|
||||
- instance
|
||||
- name: cephs
|
||||
nodes:
|
||||
- instance
|
||||
- name: computes
|
||||
nodes:
|
||||
- instance
|
||||
|
||||
- job:
|
||||
name: atmosphere-molecule
|
||||
parent: molecule
|
||||
abstract: true
|
||||
nodeset: atmosphere-ubuntu-jammy-single-node
|
||||
pre-run: test-playbooks/molecule/pre.yml
|
||||
post-run: test-playbooks/molecule/post.yml
|
||||
roles:
|
||||
- zuul: opendev.org/openstack/openstack-helm
|
||||
vars:
|
||||
ceph_fsid: 4837cbf8-4f90-4300-b3f6-726c9b9f89b4
|
||||
ceph_conf_overrides:
|
||||
- section: global
|
||||
option: mon allow pool size one
|
||||
value: true
|
||||
- section: global
|
||||
option: osd crush chooseleaf type
|
||||
value: 0
|
||||
- section: mon
|
||||
option: auth allow insecure global id reclaim
|
||||
value: false
|
||||
ceph_osd_devices:
|
||||
- "/dev/ceph-{{ inventory_hostname_short }}-osd0/data"
|
||||
- "/dev/ceph-{{ inventory_hostname_short }}-osd1/data"
|
||||
- "/dev/ceph-{{ inventory_hostname_short }}-osd2/data"
|
||||
kube_vip_interface: "{{ ansible_facts['default_ipv4'].interface }}"
|
||||
kube_vip_address: 172.17.0.100
|
||||
kubernetes_hostname: "{{ ansible_facts['default_ipv4'].address }}"
|
||||
cilium_ipv4_cidr: 172.24.0.0/16
|
||||
cilium_helm_values:
|
||||
operator:
|
||||
replicas: 1
|
||||
ceph_csi_rbd_helm_values:
|
||||
provisioner:
|
||||
replicaCount: 1
|
||||
|
||||
- job:
|
||||
name: atmosphere-molecule-csi
|
||||
parent: atmosphere-molecule
|
||||
abstract: true
|
||||
vars:
|
||||
molecule_scenario: csi
|
||||
|
||||
- job:
|
||||
name: atmosphere-molecule-csi-local-path-provisioner
|
||||
parent: atmosphere-molecule-csi
|
||||
vars:
|
||||
csi_driver: local-path-provisioner
|
||||
|
||||
- job:
|
||||
name: atmosphere-molecule-csi-rbd
|
||||
parent: atmosphere-molecule-csi
|
||||
vars:
|
||||
csi_driver: rbd
|
||||
|
||||
- project:
|
||||
check:
|
||||
jobs:
|
||||
- atmosphere-molecule-csi-local-path-provisioner
|
||||
- atmosphere-molecule-csi-rbd
|
||||
gate:
|
||||
jobs:
|
||||
- atmosphere-molecule-csi-local-path-provisioner
|
||||
- atmosphere-molecule-csi-rbd
|
||||
@@ -1 +0,0 @@
|
||||
../aio/create.yml
|
||||
@@ -1 +0,0 @@
|
||||
../aio/molecule.yml
|
||||
@@ -0,0 +1,14 @@
|
||||
# Copyright (c) 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
ansible:
|
||||
cfg:
|
||||
defaults:
|
||||
callbacks_enabled: ansible.posix.profile_tasks
|
||||
connection:
|
||||
pipelining: true
|
||||
executor:
|
||||
backend: ansible-playbook
|
||||
args:
|
||||
ansible_playbook:
|
||||
- --inventory=${MOLECULE_PROJECT_DIRECTORY}/inventory.yaml
|
||||
@@ -1 +0,0 @@
|
||||
../aio/prepare.yml
|
||||
@@ -0,0 +1,29 @@
|
||||
# Copyright (c) 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
- name: Prepare
|
||||
hosts: all
|
||||
become: true
|
||||
tasks:
|
||||
# NOTE(mnaser): We need to stop depending on `inventory_hostname` and
|
||||
# use the actual hostname of the system.
|
||||
- name: Workaround system hostname
|
||||
block:
|
||||
- name: Configure short hostname
|
||||
ansible.builtin.hostname:
|
||||
name: "{{ inventory_hostname_short }}"
|
||||
- name: Ensure hostname inside hosts file
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/hosts
|
||||
regexp: '^127\.0\.1\.1'
|
||||
line: 127.0.1.1 {{ inventory_hostname }} {{ inventory_hostname_short }}
|
||||
|
||||
- name: Purge "snapd" package
|
||||
when: ansible_distribution | lower == 'ubuntu'
|
||||
ansible.builtin.apt:
|
||||
name: snapd
|
||||
state: absent
|
||||
purge: true
|
||||
|
||||
- name: Create fake devices for Ceph
|
||||
ansible.builtin.import_playbook: vexxhost.ceph.create_fake_devices
|
||||
+1
-1
@@ -35,7 +35,7 @@ dependencies = [
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
"kubernetes",
|
||||
"molecule>=25.5.0",
|
||||
"molecule>=25.11.0",
|
||||
"oslotest>=5.0.1",
|
||||
"stestr>=4.2.0",
|
||||
"testscenarios>=0.5.0",
|
||||
|
||||
@@ -125,7 +125,7 @@ _atmosphere_images:
|
||||
libvirt: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/libvirtd:{{ atmosphere_release }}"
|
||||
libvirt_tls_sidecar: "{{ atmosphere_image_prefix }}registry.atmosphere.dev/library/libvirt-tls-sidecar:latest"
|
||||
libvirt_exporter: "{{ atmosphere_image_prefix }}ghcr.io/inovex/prometheus-libvirt-exporter:2.2.0"
|
||||
local_path_provisioner_helper: "{{ atmosphere_image_prefix }}docker.io/library/busybox:1.36.0"
|
||||
local_path_provisioner_helper: "{{ atmosphere_image_prefix }}ghcr.io/containerd/busybox:1.36"
|
||||
local_path_provisioner: "{{ atmosphere_image_prefix }}docker.io/rancher/local-path-provisioner:v0.0.24"
|
||||
loki_gateway: "{{ atmosphere_image_prefix }}docker.io/nginxinc/nginx-unprivileged:1.24-alpine"
|
||||
loki: "{{ atmosphere_image_prefix }}docker.io/grafana/loki:3.0.0"
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
# Copyright (c) 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
- hosts: all
|
||||
become: true
|
||||
vars:
|
||||
work_dir: "{{ zuul.project.src_dir }}"
|
||||
logs_dir: "/tmp/logs"
|
||||
roles:
|
||||
- gather-host-logs
|
||||
- helm-release-status
|
||||
- describe-kubernetes-objects
|
||||
- gather-pod-logs
|
||||
- gather-prom-metrics
|
||||
- gather-selenium-data
|
||||
@@ -0,0 +1,12 @@
|
||||
# Copyright (c) 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
- hosts: all
|
||||
become: true
|
||||
tasks:
|
||||
- name: Install "jq" for log collection
|
||||
ansible.builtin.apt:
|
||||
name: jq
|
||||
update_cache: true
|
||||
when:
|
||||
- ansible_facts['os_family'] | lower == 'debian'
|
||||
@@ -1,5 +1,5 @@
|
||||
version = 1
|
||||
revision = 2
|
||||
revision = 3
|
||||
requires-python = ">=3.10"
|
||||
resolution-markers = [
|
||||
"python_full_version >= '3.12'",
|
||||
@@ -98,7 +98,7 @@ requires-dist = [
|
||||
[package.metadata.requires-dev]
|
||||
dev = [
|
||||
{ name = "kubernetes" },
|
||||
{ name = "molecule", specifier = ">=25.5.0" },
|
||||
{ name = "molecule", specifier = ">=25.11.0" },
|
||||
{ name = "oslotest", specifier = ">=5.0.1" },
|
||||
{ name = "stestr", specifier = ">=4.2.0" },
|
||||
{ name = "testscenarios", specifier = ">=0.5.0" },
|
||||
@@ -680,7 +680,7 @@ wheels = [
|
||||
|
||||
[[package]]
|
||||
name = "molecule"
|
||||
version = "25.5.0"
|
||||
version = "25.11.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "ansible-compat" },
|
||||
@@ -697,9 +697,9 @@ dependencies = [
|
||||
{ name = "rich" },
|
||||
{ name = "wcmatch" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/51/d8/3b029e082247fc988fa9869edf39dd3188d929db19f47e91181dff907db5/molecule-25.5.0.tar.gz", hash = "sha256:585d8ce0ad493be3ae94de096f8b4a896ab9010a7ea36a869fdf5e29bd668f4b", size = 4416199, upload-time = "2025-05-26T07:02:36.39Z" }
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/4d/93/b1df90b2216f991451ae8dd80c064d5e254bd29ea581d990833b41642278/molecule-25.11.0.tar.gz", hash = "sha256:f3e5b51db04a317b698bcbe681e1e7466c09edd3838d4d5087d621bd9e44b73f", size = 4658899, upload-time = "2025-11-10T14:47:14.4Z" }
|
||||
wheels = [
|
||||
{ url = "https://files.pythonhosted.org/packages/b8/2a/c9d62c89aedf5b304ceebb0c26f71abe652f1ad5666a3602aa37dfe15ad4/molecule-25.5.0-py3-none-any.whl", hash = "sha256:224a0286eb36d341cecd50e57d6c93ea5276ea1fbb6a8854fb4a325c879681cd", size = 133058, upload-time = "2025-05-26T07:02:34.242Z" },
|
||||
{ url = "https://files.pythonhosted.org/packages/f5/2c/6c9e8ae24963efcaee707143b5ea329570ae71b13af11b2e731f9a8c9caf/molecule-25.11.0-py3-none-any.whl", hash = "sha256:a8362c007ceab828ad0363eb837dd2258cacce696593078d2b84c8c2ee393980", size = 152787, upload-time = "2025-11-10T14:47:11.039Z" },
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
# Copyright (c) 2024 VEXXHOST, Inc.
|
||||
#
|
||||
# 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.
|
||||
|
||||
- project:
|
||||
check:
|
||||
jobs:
|
||||
- atmosphere-docs
|
||||
gate:
|
||||
jobs:
|
||||
- atmosphere-docs
|
||||
|
||||
- job:
|
||||
name: atmosphere-docs
|
||||
parent: tox-docs
|
||||
files:
|
||||
- ^doc/
|
||||
- ^releasenotes/
|
||||
@@ -1,99 +0,0 @@
|
||||
- job:
|
||||
name: atmosphere-tox-helm-unittest
|
||||
parent: tox
|
||||
pre-run: zuul.d/playbooks/helm-unittest/pre.yml
|
||||
vars:
|
||||
tox_envlist: helm-unittest
|
||||
|
||||
- job:
|
||||
name: atmosphere-tox-py3
|
||||
parent: tox
|
||||
|
||||
- job:
|
||||
name: atmosphere-molecule
|
||||
parent: tox
|
||||
abstract: true
|
||||
pre-run:
|
||||
- zuul.d/playbooks/common/switch-to-atmosphere-mirror.yml
|
||||
- zuul.d/playbooks/molecule/pre.yml
|
||||
run: zuul.d/playbooks/molecule/run.yml
|
||||
post-run: zuul.d/playbooks/molecule/post.yml
|
||||
irrelevant-files:
|
||||
- ^build/
|
||||
- ^doc/
|
||||
- ^releasenotes/
|
||||
- ^go.mod
|
||||
- ^go.sum
|
||||
vars:
|
||||
tox_environment:
|
||||
ATMOSPHERE_IMAGE_PREFIX: "harbor.atmosphere.dev/"
|
||||
ATMOSPHERE_ANSIBLE_TAGS: "{{ ansible_molecule_tags | default(['all']) | join(',') }}"
|
||||
ATMOSPHERE_ANSIBLE_SKIP_TAGS: "{{ ansible_molecule_skip_tags | default([]) | join(',') }}"
|
||||
|
||||
- job:
|
||||
name: atmosphere-molecule-aio
|
||||
parent: atmosphere-molecule
|
||||
abstract: true
|
||||
pre-run: zuul.d/playbooks/molecule-aio/pre.yml
|
||||
post-run: zuul.d/playbooks/molecule-aio/post.yml
|
||||
roles:
|
||||
- zuul: openstack/openstack-helm
|
||||
|
||||
- job:
|
||||
name: atmosphere-molecule-aio-ovn-bgp-agent
|
||||
parent: atmosphere-molecule-aio-ovn
|
||||
pre-run: zuul.d/playbooks/ovn-bgp-agent/pre.yml
|
||||
vars:
|
||||
ansible_extra_vars:
|
||||
ovn_bgp_agent_enabled: true
|
||||
tempest_helm_values:
|
||||
conf:
|
||||
tempest:
|
||||
service_available:
|
||||
horizon: false
|
||||
load_balancer: false
|
||||
swift: false
|
||||
ansible_molecule_skip_tags:
|
||||
- monitoring
|
||||
- barbican
|
||||
- rook-ceph
|
||||
- rook-ceph-cluster
|
||||
- staffeln
|
||||
- iscsi
|
||||
- lpfc
|
||||
- mulitpathd
|
||||
- coredns
|
||||
- heat
|
||||
- horizon
|
||||
- magnum
|
||||
- manila
|
||||
- octavia
|
||||
- openstack-exporter
|
||||
- node-feature-discovery
|
||||
- kube-prometheus-stack
|
||||
- loki
|
||||
- vector
|
||||
- goldpinger
|
||||
- ipmi-exporter
|
||||
- prometheus-pushgateway
|
||||
|
||||
- job:
|
||||
name: atmosphere-molecule-aio-upgrade-base
|
||||
run: zuul.d/playbooks/upgrade/run-upgrade.yml
|
||||
abstract: true
|
||||
timeout: 10800
|
||||
parent: atmosphere-molecule-aio-full
|
||||
vars:
|
||||
from_branch: "stable/2024.1"
|
||||
|
||||
- job:
|
||||
name: atmosphere-molecule-aio-upgrade-openvswitch
|
||||
parent: atmosphere-molecule-aio-upgrade-base
|
||||
vars:
|
||||
network_backend: "openvswitch"
|
||||
|
||||
- job:
|
||||
name: atmosphere-molecule-aio-upgrade-ovn
|
||||
parent: atmosphere-molecule-aio-upgrade-base
|
||||
vars:
|
||||
network_backend: "ovn"
|
||||
@@ -1,20 +0,0 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
- name: Configure CI registry
|
||||
hosts: all
|
||||
tasks:
|
||||
- name: Replace the registry in image manifest
|
||||
ansible.builtin.replace:
|
||||
path: "{{ zuul.project.src_dir }}/roles/defaults/vars/main.yml"
|
||||
regexp: "{{ zj_zuul_artifact.metadata.repository | regex_replace('/ci/', '/library/', 1) }}:.*"
|
||||
replace: '{{ zj_zuul_artifact.metadata.repository }}:{{ zj_zuul_artifact.metadata.tag }}"'
|
||||
loop: "{{ zuul.artifacts | default([]) }}"
|
||||
loop_control:
|
||||
loop_var: zj_zuul_artifact
|
||||
when:
|
||||
- "'metadata' in zj_zuul_artifact"
|
||||
- "zj_zuul_artifact.metadata.type | default('') == 'container_image'"
|
||||
|
||||
- name: Print out the new image manifest file
|
||||
ansible.builtin.command: |
|
||||
cat {{ zuul.project.src_dir }}/roles/defaults/vars/main.yml
|
||||
@@ -1,14 +0,0 @@
|
||||
- name: Switch to Atmosphere image mirror
|
||||
hosts: all
|
||||
tasks:
|
||||
- name: Switch all images out of the CDN
|
||||
ansible.builtin.replace:
|
||||
path: "{{ zuul.project.src_dir }}/roles/defaults/vars/main.yml"
|
||||
regexp: "{{ '{{' }} atmosphere_image_prefix {{ '}}' }}registry.atmosphere.dev"
|
||||
replace: harbor.atmosphere.dev
|
||||
|
||||
- name: Print out the image list
|
||||
ansible.builtin.shell: |
|
||||
cat roles/defaults/vars/main.yml
|
||||
args:
|
||||
chdir: "{{ zuul.project.src_dir }}"
|
||||
@@ -1,22 +0,0 @@
|
||||
# Copyright (c) 2024 VEXXHOST, Inc.
|
||||
#
|
||||
# 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.
|
||||
|
||||
- hosts: all
|
||||
roles:
|
||||
- role: ensure-helm
|
||||
helm_version: 3.13.3
|
||||
tasks:
|
||||
- name: Install helm unittest
|
||||
ansible.builtin.shell: |
|
||||
helm plugin install https://github.com/helm-unittest/helm-unittest.git
|
||||
@@ -1,26 +0,0 @@
|
||||
# Copyright (c) 2024 VEXXHOST, Inc.
|
||||
#
|
||||
# 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.
|
||||
|
||||
- hosts: all
|
||||
become: true
|
||||
vars:
|
||||
work_dir: "{{ zuul.project.src_dir }}"
|
||||
logs_dir: "/tmp/logs"
|
||||
roles:
|
||||
- gather-host-logs
|
||||
- helm-release-status
|
||||
- describe-kubernetes-objects
|
||||
- gather-pod-logs
|
||||
- gather-prom-metrics
|
||||
- gather-selenium-data
|
||||
@@ -1,27 +0,0 @@
|
||||
# Copyright (c) 2024 VEXXHOST, Inc.
|
||||
#
|
||||
# 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: Prepare host for Molecule
|
||||
hosts: all
|
||||
tasks:
|
||||
- name: Install "jq" for log collection
|
||||
become: true
|
||||
ansible.builtin.package:
|
||||
name: jq
|
||||
|
||||
- name: Add extra variables
|
||||
when: ansible_extra_vars is defined
|
||||
ansible.builtin.copy:
|
||||
content: "{{ ansible_extra_vars | to_nice_yaml }}"
|
||||
dest: "{{ zuul.project.src_dir }}/molecule/aio/group_vars/all/vars.yml"
|
||||
@@ -1,29 +0,0 @@
|
||||
# Copyright (c) 2024 VEXXHOST, Inc.
|
||||
#
|
||||
# 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: Finalize Molecule tests
|
||||
hosts: all
|
||||
tasks:
|
||||
# NOTE(mnaser): Since we need to run Molecule using `sudo` because
|
||||
# of a bug with the Kubernetes collection, we need to
|
||||
# restore the permissions of the repository to the
|
||||
# user that is running the tests.
|
||||
- name: Fix permissions for repository
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
path: "{{ zuul.project.src_dir }}"
|
||||
state: directory
|
||||
recurse: yes
|
||||
owner: "{{ ansible_user }}"
|
||||
group: "{{ ansible_user }}"
|
||||
@@ -1,47 +0,0 @@
|
||||
# Copyright (c) 2024 VEXXHOST, Inc.
|
||||
#
|
||||
# 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: Prepare host for Molecule tests
|
||||
hosts: all
|
||||
tasks:
|
||||
- name: Disable swap
|
||||
become: true
|
||||
ansible.builtin.command: swapoff -a
|
||||
ignore_errors: yes
|
||||
|
||||
- name: Create /var/lib/etcd directory
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
path: /var/lib/etcd
|
||||
state: directory
|
||||
|
||||
- name: Mount ramdisk for /var/lib/etcd directory
|
||||
become: true
|
||||
ansible.posix.mount:
|
||||
path: /var/lib/etcd
|
||||
src: tmpfs
|
||||
fstype: tmpfs
|
||||
opts: nodev,nosuid,size=512M
|
||||
state: mounted
|
||||
|
||||
# TODO(mnaser): Drop this when we move to PBR
|
||||
- name: Add current folder to Git's safe directories
|
||||
become: true
|
||||
ansible.builtin.shell: |
|
||||
git config --global --add safe.directory $(pwd)
|
||||
args:
|
||||
chdir: "{{ zuul.project.src_dir }}"
|
||||
|
||||
- name: Configure Buildset Registry
|
||||
ansible.builtin.import_playbook: ../common/configure-ci-registry.yml
|
||||
@@ -1,18 +0,0 @@
|
||||
# Copyright (c) 2024 VEXXHOST, Inc.
|
||||
#
|
||||
# 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.
|
||||
|
||||
- hosts: all
|
||||
become: true
|
||||
roles:
|
||||
- tox
|
||||
@@ -1,10 +0,0 @@
|
||||
# Copyright (c) 2025 VEXXHOST, Inc.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
- name: Prepare host for OVN BGP agent
|
||||
hosts: all
|
||||
tasks:
|
||||
- name: Install VRF module
|
||||
become: true
|
||||
ansible.builtin.package:
|
||||
name: linux-modules-extra-{{ ansible_kernel }}
|
||||
@@ -1,63 +0,0 @@
|
||||
# Copyright (c) 2024 VEXXHOST, Inc.
|
||||
#
|
||||
# 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: Upgrade test
|
||||
hosts: all
|
||||
become: true
|
||||
tasks:
|
||||
- name: Checkout to "{{ from_branch }}" branch
|
||||
ansible.builtin.shell: |
|
||||
sudo apt-get purge -y snapd
|
||||
git stash
|
||||
git checkout "{{ from_branch }}"
|
||||
args:
|
||||
chdir: "{{ zuul.project.src_dir }}"
|
||||
|
||||
- name: Run molecule with existing branch
|
||||
ansible.builtin.include_role:
|
||||
name: tox
|
||||
vars:
|
||||
tox_envlist: molecule-venv
|
||||
tox_extra_args: "-- converge -s aio"
|
||||
tox_environment:
|
||||
ATMOSPHERE_NETWORK_BACKEND: "{{ network_backend }}"
|
||||
zuul_work_dir: "{{ zuul.project.src_dir }}"
|
||||
|
||||
- name: Checkout to "{{ zuul.branch }}" branch
|
||||
ansible.builtin.shell: |
|
||||
git restore .
|
||||
git checkout "{{ zuul.branch }}"
|
||||
git stash pop
|
||||
args:
|
||||
chdir: "{{ zuul.project.src_dir }}"
|
||||
|
||||
- name: Upgrade cloud to "{{ zuul.branch }}"
|
||||
ansible.builtin.include_role:
|
||||
name: tox
|
||||
vars:
|
||||
tox_envlist: molecule-venv
|
||||
tox_extra_args: "-- converge -s aio"
|
||||
tox_environment:
|
||||
ATMOSPHERE_NETWORK_BACKEND: "{{ network_backend }}"
|
||||
zuul_work_dir: "{{ zuul.project.src_dir }}"
|
||||
|
||||
- name: Verify if upgrade was successful
|
||||
ansible.builtin.include_role:
|
||||
name: tox
|
||||
vars:
|
||||
tox_envlist: molecule-venv
|
||||
tox_extra_args: "-- verify -s aio"
|
||||
tox_environment:
|
||||
ATMOSPHERE_NETWORK_BACKEND: "{{ network_backend }}"
|
||||
zuul_work_dir: "{{ zuul.project.src_dir }}"
|
||||
@@ -1,31 +0,0 @@
|
||||
# Copyright (c) 2024 VEXXHOST, Inc.
|
||||
#
|
||||
# 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.
|
||||
|
||||
- project:
|
||||
check:
|
||||
jobs:
|
||||
- atmosphere-tox-helm-unittest
|
||||
- atmosphere-tox-py3
|
||||
# - atmosphere-molecule-aio-ovn-bgp-agent
|
||||
gate:
|
||||
jobs:
|
||||
- atmosphere-tox-helm-unittest
|
||||
- atmosphere-tox-py3
|
||||
# - atmosphere-molecule-aio-ovn-bgp-agent
|
||||
periodic:
|
||||
jobs:
|
||||
- atmosphere-molecule-aio-upgrade-openvswitch
|
||||
- atmosphere-molecule-aio-upgrade-ovn
|
||||
vars:
|
||||
container_registry: harbor.atmosphere.dev/library
|
||||
@@ -1,59 +0,0 @@
|
||||
# Copyright (c) 2024 VEXXHOST, Inc.
|
||||
#
|
||||
# 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.
|
||||
|
||||
- secret:
|
||||
name: ansible_galaxy_info
|
||||
data:
|
||||
url: https://galaxy.ansible.com
|
||||
token: !encrypted/pkcs1-oaep
|
||||
- GlYV1vSho2Q5FmS2awPcOVKuatGFm7rjrlUl9LpOdqbQa49ZxxEPAJtOcQWm77NYCDsFa
|
||||
BhD3XBdH8QGgGqy0PqRgw48/kDw+3eVrXsBnaAUO583ElbMumcZdevYxHPRibR3FESinU
|
||||
zDmc4VIAGJRkE5D0QYyp6jtJhhcaKUnBKNz3qvyTW4Lh03PHIuUR2UcaopJbfJiU+xMcE
|
||||
gHZj9UZ7HwIE//q10euv/mxDwyICkdcU9UuWrNm16WdzIVtpwygJTaQNRo7pFN3POgmps
|
||||
aNILKXp7Hfp0J6Hx1Hc7GmpJ9EmyYaNyktvOSf4jqpZCJvQ5CRWKHJC+jryHYBxOoT524
|
||||
hU3Hoc32DOnytb1EZwzwu4iJbRMe1xEHWqBf9wpf3sV6B5Pvc7/IHTnU91/dlawOh5eOp
|
||||
8wq45eO5w0c+PcITu9OUhWULKhEJcPunGNr0e96wdfK7L4khiPopHUTSbFF4dOhfF1GfV
|
||||
GgFTakyVg9jKYKre0aLGW2Gah3gzXuX2IQ9XGXebsnFLdtQL5ac7ET0hKDR8tZBGrwKj6
|
||||
c8bL2vzVKjOOD+sSnv4h7l+p8igtjczyVV83pn6dJ/v1GCMCFzGdOhaKJ2DIO1KtKK4jV
|
||||
c80+tpz0x/Cr/4Ld4rJU4mqqC8Y3Kk6AC2cNzsiYh1iPlpw+D/yoE0Lgugjjzc=
|
||||
|
||||
- secret:
|
||||
name: cosign_key
|
||||
data:
|
||||
public: |
|
||||
-----BEGIN PUBLIC KEY-----
|
||||
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEf5DzGuQLAvNIfiv/b7JULemWZcpU
|
||||
4uCefCqflA7wpypGLM+1lBo0pjBc/9QJAj+lG61ZNwpDx8Zk1jFGJUUl9A==
|
||||
-----END PUBLIC KEY-----
|
||||
private: !encrypted/pkcs1-oaep
|
||||
- lHcfMc85t12hzas/feMTOr1+pZVMZfQdxTMJouKIvSHpHjSQt6EwyMmWIhc+q03HUBGb5
|
||||
setWiSl1YNZIprZLyqCNCq8NjZlcBWVnw9zkkMdwN2Q6JkAe78mPHRLmVUdNqKuOVHmmr
|
||||
ThCUkQHxbieKW7ZGzAtUSouSWhfjLdx9poUf5wJx2ujotcNcCQ2Bkb7PPzWNBdzBJjRlE
|
||||
2PXW+Ni99wNZisEcjxan7QhrhFxcS+sou0R9FPds66zO9GgAYYD+4SRwF7dSUM2BXA7AZ
|
||||
0zeU6w+e2qd09eHUbHVYXeWDhYKx7FlsUetVHWzyVFg4LfnHCFC/tIWTvJnzyJIfbXziP
|
||||
KLSuv3wGlNCRZOPI7xgB0oeky++xzuTfnX2Ra9pNVZ9eAzpBArJRTOCCgltXjfWNS3QiZ
|
||||
LR3cmizPL53BUHX92MBBXPXqaEYfbkUcbcAlYYgnjYUT8rak4NW7R5qZMI0d8IWGAnC7w
|
||||
z0MGuT61LWhaPq63TusWpXPbh1GK6n8RxSAQeV9W69KSrbgirRKET2/HyW/WnDwrvYiCY
|
||||
866xxq/vtqkfB5ck/YtW6UCE5pVPzqnGBLKd+3/t9tu1j0UY/tuegi+3tLbm18E1hPg/T
|
||||
XDvEm7qkl8QerJFfI3XX8YVUcgc1/tzRHFslNXGsUFkgl6BxS9FIu5hXOIv3hQ=
|
||||
- CwAHQQkYQwM2uc4rDihEw+2jJQ0c/FxsutON5u/D48hRBxeUAzj8fTnAar+Co7jWkNHYV
|
||||
+dI/LvhT7y++gzi4kG41B2L+FJELnh2TI3+hz7XorUALHuei5aYsyIFFzVow2fP0t6nW+
|
||||
mBAYFlbO8stkDg9veIiBxv0RXaISQVNOfzOo428zt0EPJYSqno4FJ9by6plO/jY3A5h8j
|
||||
ElEs/J35vrDbWcWy80htZNKuLo6nBOaDPM1Esfd6uBsMVxxaPzUSa6yaov4pS8WV172CW
|
||||
98IaCSYY1+GGkpm+69nQmi6Ik9qILhn3yu3XqfnF/8rlrXXzhN2bDevMyPiWh/KXL4mAq
|
||||
UMWyNyXdNNY2g+5s3dCB/qoZVIdiilsDX9tvP7pQvKW4tNqLXm9+8RVbfPxVaWfKpb3JD
|
||||
02RZtvB0W+jpCk/tC3JNKpW3JVnlOGidYyLMsrMqDoKlohorq/LZ/hM4qDyYCoXr5NzJv
|
||||
Wq1JuqYu3+/gpx/PE+RI17lCKbA0vYI86L1qMkoQMK0rvShurWanz8/q7slDorWcfgHW8
|
||||
UbB4Rqd9xgk8jtHnxHNlafZrfjIJbE5W5PddzH5Q5Aw7l4sPlJ4V2hnF+mhVegCwhc7s7
|
||||
D/tlTTxjnHrQBLw9+vwDhkk/RADQbLExTIXFt6TH0No94zdTiUrTPg90s+rn6A=
|
||||
Reference in new issue
Block a user