Skip to content

Commit b1d0d6e

Browse files
authored
Merge pull request #606 from stackhpc/zed-kolla-build
Zed kolla build config
2 parents aa408d2 + 55a203c commit b1d0d6e

File tree

12 files changed

+35
-84
lines changed

12 files changed

+35
-84
lines changed

.github/workflows/stackhpc-build-kayobe-image.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ on:
1616
no_proxy:
1717
type: string
1818
required: false
19+
base_image:
20+
type: string
21+
required: false
22+
default: "rockylinux:9"
1923
outputs:
2024
kayobe_image:
2125
description: Reference of Kayobe image that was built
@@ -39,7 +43,7 @@ jobs:
3943
- name: Checkout kayobe config
4044
uses: actions/checkout@v3
4145
with:
42-
submodules: true
46+
submodules: true
4347

4448
- name: Log in to the Container registry
4549
uses: docker/login-action@v2
@@ -76,6 +80,7 @@ jobs:
7680
build-args: |
7781
http_proxy=${{ inputs.http_proxy }}
7882
https_proxy=${{ inputs.https_proxy }}
83+
BASE_IMAGE=${{ inputs.base_image }}
7984
push: true
8085
tags: ${{ steps.meta.outputs.tags }}
8186
labels: ${{ steps.meta.outputs.labels }}

.github/workflows/stackhpc-container-image-build.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
runs-on: [self-hosted, stackhpc-kayobe-config-kolla-builder]
4444
permissions: {}
4545
outputs:
46-
kolla_tag: ${{ steps.kolla_tag.outputs.kolla_tag }}
46+
datetime_tag: ${{ steps.datetime_tag.outputs.datetime_tag }}
4747
matrix: ${{ steps.set-matrix.outputs.matrix }}
4848
openstack_release: ${{ steps.openstack_release.outputs.openstack_release }}
4949
steps:
@@ -58,10 +58,10 @@ jobs:
5858
5959
# Generate a tag to apply to all built container images.
6060
# Without this, each kayobe * container image build command would use a different tag.
61-
- name: Generate container image tag
62-
id: kolla_tag
61+
- name: Generate container datetime tag
62+
id: datetime_tag
6363
run: |
64-
echo "kolla_tag=$(date +${{ steps.openstack_release.outputs.openstack_release }}-%Y%m%dT%H%M%S)" >> $GITHUB_OUTPUT
64+
echo "datetime_tag=$(date +%Y%m%dT%H%M%S)" >> $GITHUB_OUTPUT
6565
6666
# Dynamically define job matrix.
6767
# We need a separate matrix entry for each distribution, when the relevant input is true.
@@ -81,9 +81,9 @@ jobs:
8181
fi
8282
echo "]}" >> $GITHUB_OUTPUT
8383
84-
- name: Display container image tag
84+
- name: Display container datetime tag
8585
run: |
86-
echo "${{ steps.kolla_tag.outputs.kolla_tag }}"
86+
echo "${{ steps.datetime_tag.outputs.datetime_tag }}"
8787
8888
container-image-build:
8989
name: Build Kolla container images
@@ -162,7 +162,7 @@ jobs:
162162
run: |
163163
args="${{ github.event.inputs.regexes }}"
164164
args="$args -e kolla_base_distro=${{ matrix.distro }}"
165-
args="$args -e kolla_tag=${{ needs.generate-tag.outputs.kolla_tag }}"
165+
args="$args -e kolla_tag=$KOLLA_TAG"
166166
if ${{ inputs.push }} == 'true'; then
167167
args="$args --push"
168168
fi
@@ -171,12 +171,13 @@ jobs:
171171
kayobe overcloud container image build $args
172172
env:
173173
KAYOBE_VAULT_PASSWORD: ${{ secrets.KAYOBE_VAULT_PASSWORD }}
174+
KOLLA_TAG: "${{ needs.generate-tag.outputs.openstack_release }}-${{ matrix.distro }}-${{ matrix.distro == 'rocky' && '9' || 'jammy' }}-${{ needs.generate-tag.outputs.datetime_tag }}"
174175
if: github.event.inputs.overcloud == 'true'
175176

176177
- name: Build and push kolla seed images
177178
run: |
178179
args="kolla_base_distro=${{ matrix.distro }}"
179-
args="$args -e kolla_tag=${{ needs.generate-tag.outputs.kolla_tag }}"
180+
args="$args -e kolla_tag=$KOLLA_TAG"
180181
if ${{ inputs.push }} == 'true'; then
181182
args="$args --push"
182183
fi
@@ -185,11 +186,12 @@ jobs:
185186
kayobe seed container image build $args
186187
env:
187188
KAYOBE_VAULT_PASSWORD: ${{ secrets.KAYOBE_VAULT_PASSWORD }}
189+
KOLLA_TAG: "${{ needs.generate-tag.outputs.openstack_release }}-${{ matrix.distro }}-${{ matrix.distro == 'rocky' && '9' || 'jammy' }}-${{ needs.generate-tag.outputs.datetime_tag }}"
188190
if: github.event.inputs.seed == 'true'
189191

190192
- name: Get built container images
191193
run: |
192-
sudo docker image ls --filter "reference=ark.stackhpc.com/stackhpc-dev/${{ matrix.distro }}-*:${{ needs.generate-tag.outputs.kolla_tag }}" > ${{ matrix.distro }}-container-images
194+
sudo docker image ls --filter "reference=ark.stackhpc.com/stackhpc-dev/*:*${{ matrix.distro }}*${{ needs.generate-tag.outputs.datetime_tag }}" > ${{ matrix.distro }}-container-images
193195
194196
- name: Upload container images artifact
195197
uses: actions/upload-artifact@v3

.github/workflows/stackhpc-pull-request.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ name: Pull request
99
pull_request:
1010
jobs:
1111
tox:
12-
runs-on: ubuntu-20.04
12+
runs-on: ubuntu-22.04
1313
permissions: {}
1414
strategy:
1515
matrix:
1616
include:
1717
- environment: pep8
18-
python-version: 3.8
18+
python-version: "3.10"
1919
- environment: releasenotes
20-
python-version: 3.8
20+
python-version: "3.10"
2121
- environment: docs
22-
python-version: 3.8
22+
python-version: "3.10"
2323
name: Tox ${{ matrix.environment }} with Python ${{ matrix.python-version }}
2424
if: github.repository == 'stackhpc/stackhpc-kayobe-config'
2525
steps:

etc/kayobe/ansible/rsyslog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
# Custom playbook to configure rsyslog to forward operating system logs to
3-
# fluentd, eventually reaching Kolla's Opensearch cluster.
3+
# fluentd, eventually reaching Kolla's OpenSearch cluster.
44
#
55
# Variables:
66
# * rsyslog_group: Host pattern against which to target the playbook. Default

etc/kayobe/environments/aufn-ceph/kolla/globals.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ glance_backend_ceph: "yes"
1212
cinder_backend_ceph: "yes"
1313
nova_backend_ceph: "yes"
1414

15-
# Opensearch memory tuning
15+
# OpenSearch memory tuning
1616
opensearch_heap_size: 1g

etc/kayobe/environments/ci-aio/globals.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ os_distribution: "{{ lookup('pipe', '. /etc/os-release && echo $ID') | trim }}"
5656
###############################################################################
5757

5858
# Avoid a reboot.
59-
selinux_do_reboot: false
59+
selinux_state: disabled
6060

6161
###############################################################################
6262
# Dummy variable to allow Ansible to accept this file.

etc/kayobe/environments/ci-aio/kolla/globals.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ nova_compute_virt_type: qemu
99
openstack_service_workers: "1"
1010
openstack_service_rpc_workers: "1"
1111

12-
# Elasticsearch memory tuning
12+
# OpenSearch memory tuning
1313
opensearch_heap_size: 1g
1414

1515
# Increase Grafana timeout

etc/kayobe/environments/ci-multinode/kolla/globals.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ nova_backend_ceph: "yes"
1515
neutron_bridge_name: "{{ vxlan_interfaces[0].device }}-ovs"
1616
neutron_external_interface: "{{ vxlan_interfaces[0].device }}"
1717

18-
# Opensearch memory tuning
18+
# OpenSearch memory tuning
1919
opensearch_heap_size: 1g
2020

2121
# Octavia load balancer configuration

etc/kayobe/kolla.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ kolla_docker_registry_password: "{{ stackhpc_docker_registry_password }}"
9696

9797
# Kolla OpenStack release version. This should be a Docker image tag.
9898
# Default is {{ openstack_release }}.
99-
kolla_openstack_release: "{% raw %}{{ kayobe_image_tags['openstack'][kolla_base_distro] }}{% endraw %}"
99+
# kolla_openstack_release:
100100

101101
# Docker tag applied to built container images. Default is {{
102102
# kolla_openstack_release }}-{{ kolla_base_distro }}-{{
@@ -263,14 +263,6 @@ kolla_build_blocks:
263263
&& grafana-cli plugins install grafana-piechart-panel
264264
ironic_inspector_header: |
265265
ADD additions-archive /
266-
keystone_base_footer: |
267-
{% raw %}
268-
{% if base_package_type == 'deb' %}
269-
RUN curl -sLO https://github.com/stackhpc/lasso/releases/download/applied%2F2.7.0-2build3/liblasso3_2.7.0-2build3_amd64.deb && \
270-
sudo dpkg -i liblasso3_2.7.0-2build3_amd64.deb && \
271-
rm -f liblasso3_2.7.0-2build3_amd64.deb
272-
{% endif %}
273-
{% endraw %}
274266
magnum_base_footer: |
275267
RUN curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | head -n -1 | bash
276268
# Dict mapping image customization variable names to their values.
@@ -344,10 +336,9 @@ kolla_build_args:
344336
memcached_exporter_version: "0.9.0"
345337
mysqld_exporter_version: "0.13.0"
346338
node_exporter_version: "1.5.0"
339+
node_exporter_sha256sum: "af999fd31ab54ed3a34b9f0b10c28e9acee9ef5ac5a5d5edfdde85437db7acbb"
347340
prometheus_version: "2.35.0"
348341
prometheus_alertmanager_version: "0.24.0"
349-
prometheus_cadvisor_sha256sum: "8e3df91eee70c72ac3f3184b9fab1229b037c2e850ff1593103b2bd9028c57c0"
350-
prometheus_cadvisor_version: "0.40.0"
351342

352343
###############################################################################
353344
# Kolla-ansible inventory configuration.

etc/kayobe/kolla/globals.yml

Lines changed: 4 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -6,63 +6,16 @@
66
# non-overcloud hosts
77
enable_docker_repo: "{% raw %}{{ 'overcloud' not in group_names or ansible_facts.os_family == 'Debian' }}{% endraw %}"
88

9-
magnum_tag: yoga-20230705T121023
10-
neutron_tag: yoga-20230515T150233
11-
nova_tag: yoga-20230718T112646
12-
octavia_tag: yoga-20230523T110936
13-
openvswitch_tag: yoga-20230515T150233
14-
ovn_tag: yoga-20230515T150233
15-
169
# kolla_base_distro must be set here to be resolvable on a per-host basis
1710
# This is necessary for os migrations where mixed clouds might be deployed
18-
kolla_base_distro: "{% raw %}{{ 'centos' if ansible_facts.distribution == 'Rocky' and ansible_facts.distribution_major_version == '8' else ansible_facts.distribution | lower }}{% endraw %}"
11+
kolla_base_distro: "{% raw %}{{ ansible_facts.distribution | lower }}{% endraw %}"
1912

2013
kayobe_image_tags:
2114
openstack:
22-
centos: yoga-20230217T135826
23-
rocky: yoga-20230310T170929
24-
ubuntu: yoga-20230220T181235
25-
bifrost:
26-
centos: yoga-20230217T160618
27-
rocky: yoga-20230310T194732
28-
ubuntu: yoga-20230220T184947
29-
blazar:
30-
centos: yoga-20230315T125157
31-
rocky: yoga-20230315T130918
32-
ubuntu: yoga-20230315T125441
33-
caso:
34-
centos: yoga-20230315T125157
35-
rocky: yoga-20230315T130918
36-
ubuntu: yoga-20230315T125441
37-
grafana:
38-
centos: yoga-20230419T085955
39-
rocky: yoga-20230419T111514
40-
ubuntu: yoga-20230426T084340
41-
ironic:
42-
centos: yoga-20230316T154655
43-
rocky: yoga-20230316T170311
44-
ubuntu: yoga-20230316T154704
45-
ironic_dnsmasq:
46-
centos: yoga-20230217T135826
47-
rocky: yoga-20230310T170929
48-
ubuntu: yoga-20230220T181235
49-
opensearch:
50-
centos: yoga-20230324T084510
51-
rocky: yoga-20230622T154317
52-
ubuntu: yoga-20230324T090345
53-
prometheus_node_exporter:
54-
centos: yoga-20230310T173747
55-
rocky: yoga-20230315T170614
56-
ubuntu: yoga-20230315T170541
15+
rocky: zed-rocky-9-20230821T155947
16+
ubuntu: zed-ubuntu-jammy-20230821T155947
5717

58-
bifrost_tag: "{% raw %}{{ kayobe_image_tags['bifrost'][kolla_base_distro] | default(openstack_tag) }}{% endraw %}"
59-
blazar_tag: "{% raw %}{{ kayobe_image_tags['blazar'][kolla_base_distro] | default(openstack_tag) }}{% endraw %}"
60-
caso_tag: "{% raw %}{{ kayobe_image_tags['caso'][kolla_base_distro] | default(openstack_tag) }}{% endraw %}"
61-
grafana_tag: "{% raw %}{{ kayobe_image_tags['grafana'][kolla_base_distro] | default(openstack_tag) }}{% endraw %}"
62-
ironic_tag: "{% raw %}{{ kayobe_image_tags['ironic'][kolla_base_distro] | default(openstack_tag) }}{% endraw %}"
63-
ironic_dnsmasq_tag: "{% raw %}{{ kayobe_image_tags['ironic_dnsmasq'][kolla_base_distro] | default(openstack_tag) }}{% endraw %}"
64-
opensearch_tag: "{% raw %}{{ kayobe_image_tags['opensearch'][kolla_base_distro] | default(openstack_tag) }}{% endraw %}"
65-
prometheus_node_exporter_tag: "{% raw %}{{ kayobe_image_tags['prometheus_node_exporter'][kolla_base_distro] | default(openstack_tag) }}{% endraw %}"
18+
openstack_tag: "{% raw %}{{ kayobe_image_tags['openstack'][kolla_base_distro] }}{% endraw %}"
6619

6720
om_enable_rabbitmq_high_availability: true
6821

etc/kayobe/pulp-repo-versions.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ stackhpc_pulp_repo_rocky_9_2_baseos_version: 20230627T185020
2121
stackhpc_pulp_repo_rocky_9_2_crb_version: 20230627T185020
2222
stackhpc_pulp_repo_rocky_9_2_extras_version: 20230612T072506
2323
stackhpc_pulp_repo_rocky_9_2_highavailability_version: 20230628T031859
24-
stackhpc_pulp_repo_ubuntu_jammy_version: 20230809T045713
25-
stackhpc_pulp_repo_ubuntu_jammy_security_version: 20230809T045713
24+
stackhpc_pulp_repo_ubuntu_jammy_version: 20230811T044829
25+
stackhpc_pulp_repo_ubuntu_jammy_security_version: 20230811T044829
2626
stackhpc_pulp_repo_ubuntu_cloud_archive_version: 20230809T091421
2727
stackhpc_pulp_repo_docker_ce_ubuntu_version: 20230809T012447
2828
stackhpc_pulp_repo_opensearch_2_x_version: 20230725T013015

0 commit comments

Comments
 (0)