Skip to content

Commit 075bd83

Browse files
authored
Merge branch 'stackhpc/2024.1' into upstream/2024.1-2025-07-21
2 parents 48f076b + 5aa74a2 commit 075bd83

32 files changed

+511
-14
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @stackhpc/kayobe
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
name: Tag & Release
3+
'on':
4+
push:
5+
branches:
6+
- stackhpc/2024.1
7+
permissions:
8+
actions: read
9+
contents: write
10+
jobs:
11+
tag-and-release:
12+
uses: stackhpc/.github/.github/workflows/tag-and-release.yml@main

.github/workflows/tox.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
name: Tox Continuous Integration
3+
'on':
4+
pull_request:
5+
jobs:
6+
tox:
7+
uses: stackhpc/.github/.github/workflows/tox.yml@main

doc/source/admin/image-building.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,23 @@ To remove a package from that list, say ``locales``, one would do:
298298
# Horizon
299299
{% set horizon_packages_remove = ['locales'] %}
300300
301+
An example of this is the Grafana plugins, which are mentioned in the next
302+
section.
303+
304+
Grafana plugins
305+
^^^^^^^^^^^^^^^
306+
307+
Additional Grafana plugins can be installed by adding the plugin name to the
308+
``grafana_plugins_append`` list. Plugins can also be removed by adding the
309+
plugin name to the ``grafana_plugins_remove`` list. Additionally the entire
310+
list can be overridden by setting the ``grafana_plugins_override`` variable.
311+
312+
.. code-block:: ini
313+
314+
grafana_plugins_append:
315+
- grafana-piechart-panel
316+
- vonage-status-panel
317+
301318
Python packages build options
302319
-----------------------------
303320

@@ -401,6 +418,7 @@ Some of these plugins used to be enabled by default but, due to
401418
their release characteristic, have been excluded from the default builds.
402419
Please read the included ``README.rst`` to learn how to apply them.
403420

421+
404422
Additions functionality
405423
-----------------------
406424

docker/base/Dockerfile.j2

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ COPY dnf.conf /etc/dnf/dnf.conf
5454

5555
#### BEGIN REPO ENABLEMENT
5656
{% set base_yum_repo_files = [
57+
'docker-ce.repo',
5758
'grafana.repo',
5859
'influxdb.repo',
5960
'mariadb.repo',
@@ -302,6 +303,7 @@ COPY apt_preferences /etc/apt/preferences.d/kolla-custom
302303

303304
{# NOTE(hrw): type field defaults to 'asc' which is used for single keys #}
304305
{% set base_remote_apt_keys = [
306+
{'name': 'docker-ce', 'url': 'https://download.docker.com/linux/debian/gpg'},
305307
{'name': 'grafana', 'url': 'https://rpm.grafana.com/gpg.key'},
306308
{'name': 'influxdb', 'url': 'https://repos.influxdata.com/influxdata-archive_compat.key'},
307309
{'name': 'mariadb', 'url': 'https://downloads.mariadb.com/MariaDB/mariadb-keyring-2019.gpg', 'type': 'gpg'},

docker/base/docker-ce.repo

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[docker-ce]
2+
name=Docker CE Stable - $basearch
3+
baseurl=https://download.docker.com/linux/centos/$releasever/$basearch/stable
4+
enabled=1
5+
gpgcheck=1
6+
gpgkey=https://download.docker.com/linux/centos/gpg

docker/caso/Dockerfile.j2

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
2+
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
3+
4+
{% block caso_header %}{% endblock %}
5+
6+
{% import "macros.j2" as macros with context %}
7+
8+
{% if base_distro in ['centos', 'rocky'] %}
9+
{% set caso_packages = [
10+
'cronie',
11+
] %}
12+
{% elif base_distro in ['debian', 'ubuntu'] %}
13+
{% set caso_packages = [
14+
'cron',
15+
] %}
16+
{% endif %}
17+
18+
{{ macros.install_packages(caso_packages | customizable("packages")) }}
19+
20+
{{ macros.configure_user(name='caso') }}
21+
22+
{% set caso_pip_packages = [
23+
'caso'
24+
] %}
25+
26+
# NOTE(wszumski:) Upgrade pip, otherwise we hit: ModuleNotFoundError: No module
27+
# named 'setuptools_rust' when install latest cryptography module. Doesn't
28+
# really make sense to use constraints as caso is not tied to an openstack
29+
# release.
30+
RUN mkdir -p /requirements \
31+
&& curl -sSL -o /requirements/upper-constraints.txt https://releases.openstack.org/constraints/upper/{{ openstack_release }}
32+
RUN {{ macros.install_pip(["pip"]) }}
33+
34+
RUN {{ macros.install_pip(caso_pip_packages | customizable("pip_packages"), constraints = false) }} \
35+
&& mkdir -p /etc/caso \
36+
&& chown -R caso: /etc/caso
37+
38+
COPY extend_start.sh /usr/local/bin/kolla_extend_start
39+
40+
RUN touch /usr/local/bin/kolla_caso_extend_start \
41+
&& chmod 755 /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_caso_extend_start
42+
43+
{% block caso_base_footer %}{% endblock %}

docker/caso/extend_start.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
# Create log directory, with appropriate permissions
4+
CASO_LOG_DIR="/var/log/kolla/caso"
5+
if [[ ! -d "$CASO_LOG_DIR" ]]; then
6+
mkdir -p $CASO_LOG_DIR
7+
fi
8+
if [[ $(stat -c %U:%G ${CASO_LOG_DIR}) != "caso:kolla" ]]; then
9+
chown caso:kolla ${CASO_LOG_DIR}
10+
fi
11+
if [[ $(stat -c %a ${CASO_LOG_DIR}) != "755" ]]; then
12+
chmod 755 ${CASO_LOG_DIR}
13+
fi
14+
15+
. /usr/local/bin/kolla_caso_extend_start

docker/grafana/Dockerfile.j2

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,12 @@ COPY extend_start.sh /usr/local/bin/kolla_extend_start
2222

2323
{% block grafana_plugins_install %}
2424

25-
RUN grafana-cli plugins install gnocchixyz-gnocchi-datasource \
26-
&& grafana-cli plugins install grafana-opensearch-datasource
25+
{% set grafana_default_plugins = ['grafana-opensearch-datasource'] %}
26+
{% set grafana_plugins = grafana_default_plugins | customizable("plugins") %}
2727

28+
{% if grafana_plugins | length > 0 %}
29+
RUN {{ (['grafana-cli plugins install %s'] * grafana_plugins | length ) | join(' && ') | format(*grafana_plugins) }}
30+
{% endif %}
2831
{% endblock %}
2932

3033
RUN chmod 750 /etc/sudoers.d \

docker/keystone/keystone/Dockerfile.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ ADD plugins-archive /
3232
'/plugins/*',
3333
] %}
3434

35+
3536
COPY keystone_bootstrap.sh /usr/local/bin/kolla_keystone_bootstrap
3637
COPY extend_start.sh /usr/local/bin/kolla_extend_start
3738

0 commit comments

Comments
 (0)