From f3a6c77b18db97795f7de96eebf18dca5b5db51a Mon Sep 17 00:00:00 2001
From: Michal Nasiadka <mnasiadka@gmail.com>
Date: Mon, 13 Nov 2023 10:06:10 +0100
Subject: [PATCH] octavia-certificates: fix missing collection for ansible-core

community.crypto collection was omitted in ansible-core implementation
patch
adding in trigger for requirements-core.yml to all optional jobs

Change-Id: Ib6bdea51280e171d42d6d37b0ab96c31697fddbe
---
 requirements-core.yml |  3 +++
 zuul.d/base.yaml      | 17 +++++++++++++++++
 2 files changed, 20 insertions(+)

diff --git a/requirements-core.yml b/requirements-core.yml
index aec45a20a9..9f118a3f42 100644
--- a/requirements-core.yml
+++ b/requirements-core.yml
@@ -6,6 +6,9 @@ collections:
   - name: ansible.posix
     source: https://galaxy.ansible.com
     version: <2
+  - name: community.crypto
+    source: https://galaxy.ansible.com
+    version: <3
   - name: community.general
     source: https://galaxy.ansible.com
     version: <7
diff --git a/zuul.d/base.yaml b/zuul.d/base.yaml
index bccb904884..4c5b590ac9 100644
--- a/zuul.d/base.yaml
+++ b/zuul.d/base.yaml
@@ -93,6 +93,7 @@
     parent: kolla-ansible-base
     voting: false
     files:
+      - ^requirements-core.yml
       - ^ansible/roles/(nova-cell)/
       - ^tests/templates/nova-compute-overrides.j2
     vars:
@@ -118,6 +119,7 @@
     parent: kolla-ansible-base
     voting: false
     files:
+      - ^requirements-core.yml
       - ^ansible/roles/bifrost/
       - ^tests/test-bifrost.sh
     vars:
@@ -128,6 +130,7 @@
     parent: kolla-ansible-base
     voting: false
     files:
+      - ^requirements-core.yml
       - ^ansible/roles/(ironic|neutron|nova|nova-cell)/
       - ^tests/deploy-tenks\.sh$
       - ^tests/templates/ironic-overrides\.j2$
@@ -144,6 +147,7 @@
     parent: kolla-ansible-base
     voting: false
     files:
+      - ^requirements-core.yml
       - ^ansible/roles/(zun|kuryr|etcd|cinder|iscsi)/
       - ^tests/setup_disks.sh
       - ^tests/test-core-openstack.sh
@@ -158,6 +162,7 @@
     parent: kolla-ansible-base
     voting: false
     files:
+      - ^requirements-core.yml
       - ^ansible/roles/(glance|swift)/
       - ^tests/setup_disks.sh
       - ^tests/init-swift.sh
@@ -179,6 +184,7 @@
     parent: kolla-ansible-base
     voting: false
     files:
+      - ^requirements-core.yml
       - ^ansible/roles/(designate|magnum|trove)/
       - ^tests/test-dashboard.sh
       - ^tests/test-magnum.sh
@@ -190,6 +196,7 @@
     parent: kolla-ansible-base
     voting: false
     files:
+      - ^requirements-core.yml
       - ^ansible/roles/(octavia|octavia-certificates)/
       - ^tests/test-dashboard.sh
       - ^tests/test-octavia.sh
@@ -201,6 +208,7 @@
     parent: kolla-ansible-base
     voting: false
     files:
+      - ^requirements-core.yml
       - ^ansible/roles/masakari/
       - ^ansible/roles/hacluster/
       - ^tests/test-masakari.sh
@@ -213,6 +221,7 @@
     parent: kolla-ansible-base
     voting: false
     files:
+      - ^requirements-core.yml
       - ^ansible/roles/mariadb/
       - ^tests/test-mariadb.sh
     vars:
@@ -223,6 +232,7 @@
     parent: kolla-ansible-base
     voting: false
     files:
+      - ^requirements-core.yml
       - ^ansible/roles/(aodh|barbican|heat|mistral|redis|tacker)/
       - ^tests/test-scenario-nfv.sh
       - ^tests/test-dashboard.sh
@@ -234,6 +244,7 @@
     parent: kolla-ansible-base
     voting: false
     files:
+      - ^requirements-core.yml
       - ^ansible/roles/nova/
       - ^tests/test-core-openstack.sh
     vars:
@@ -244,6 +255,7 @@
     parent: kolla-ansible-base
     voting: false
     files:
+      - ^requirements-core.yml
       - ^ansible/roles/(neutron|octavia|openvswitch|ovn-controller|ovn-db)/
       - ^tests/test-ovn.sh
       - ^tests/test-core-openstack.sh
@@ -255,6 +267,7 @@
     parent: kolla-ansible-base
     voting: false
     files:
+      - ^requirements-core.yml
       - ^ansible/roles/(common|opensearch|grafana|prometheus)/
       - ^tests/test-prometheus-opensearch.sh
     vars:
@@ -265,6 +278,7 @@
     parent: kolla-ansible-base
     voting: false
     files:
+      - ^requirements-core.yml
       - ^ansible/roles/(common|opensearch|venus)/
       - ^tests/test-venus.sh
     vars:
@@ -279,6 +293,7 @@
       - openstack/requirements
     voting: false
     files:
+      - ^requirements-core.yml
       - ^kolla_ansible/
       - ^tests/run-hashi-vault.yml
       - ^tests/test-hashicorp-vault-passwords.sh
@@ -288,6 +303,7 @@
     parent: kolla-ansible-base
     voting: false
     files:
+      - ^requirements-core.yml
       - ^ansible/roles/letsencrypt/
       - ^ansible/roles/loadbalancer/
       - ^tests/test-core-openstack.sh
@@ -303,6 +319,7 @@
     parent: kolla-ansible-base
     voting: false
     files:
+      - ^requirements-core.yml
       - ^ansible/roles/skyline/
       - ^tests/test-skyline.sh
     vars: