Skip to content

Commit 702b8d9

Browse files
authored
Merge pull request #55 from stackhpc/upstream/master-2025-06-23
Synchronise master with upstream
2 parents aff2d9c + 663a1d8 commit 702b8d9

File tree

14 files changed

+52
-20
lines changed

14 files changed

+52
-20
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env bash
2+
3+
# Openstack moved from using wsgi scripts to directly calling the wsgi module
4+
# due to changes in setuptools that stops the pbr wsgi_scripts from working.
5+
# This script will reconfigure uwsgi on upgrade to point to the module instead
6+
# of the wsgi script that is no longer present in octavia.
7+
8+
function configure_octavia_upgrade {
9+
source $GRENADE_DIR/functions
10+
11+
iniset $OCTAVIA_UWSGI_CONF uwsgi module $OCTAVIA_UWSGI_APP
12+
}

diskimage-create/README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Command syntax:
102102
[-a **amd64** | armhf | aarch64 | ppc64le ]
103103
[-b **haproxy** ]
104104
[-c **~/.cache/image-create** | <cache directory> ]
105-
[-d **jammy**/**9-stream**/**9** | <other release id> ]
105+
[-d **noble**/**9-stream**/**9** | <other release id> ]
106106
[-e]
107107
[-f]
108108
[-g **repository branch** | stable/train | stable/stein | ... ]
@@ -125,7 +125,7 @@ Command syntax:
125125
'-a' is the architecture type for the image (default: amd64)
126126
'-b' is the backend type (default: haproxy)
127127
'-c' is the path to the cache directory (default: ~/.cache/image-create)
128-
'-d' distribution release id (default on ubuntu: jammy)
128+
'-d' distribution release id (default on ubuntu: noble)
129129
'-e' enable complete mandatory access control systems when available (default: permissive)
130130
'-f' disable tmpfs for build
131131
'-g' build the image for a specific OpenStack Git branch (default: current repository branch)

diskimage-create/diskimage-create.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ usage() {
2323
echo " [-a **amd64** | armhf | aarch64 | ppc64le]"
2424
echo " [-b **haproxy** ]"
2525
echo " [-c **~/.cache/image-create** | <cache directory> ]"
26-
echo " [-d **jammy**/**9-stream**/**9** | <other release id> ]"
26+
echo " [-d **noble**/**9-stream**/**9** | <other release id> ]"
2727
echo " [-e]"
2828
echo " [-f]"
2929
echo " [-g **repository branch** | stable/train | stable/stein | ... ]"
@@ -45,7 +45,7 @@ usage() {
4545
echo " '-a' is the architecture type for the image (default: amd64)"
4646
echo " '-b' is the backend type (default: haproxy)"
4747
echo " '-c' is the path to the cache directory (default: ~/.cache/image-create)"
48-
echo " '-d' distribution release id (default on ubuntu: jammy)"
48+
echo " '-d' distribution release id (default on ubuntu: noble)"
4949
echo " '-e' enable complete mandatory access control systems when available (default: permissive)"
5050
echo " '-f' disable tmpfs for build"
5151
echo " '-g' build the image for a specific OpenStack Git branch (default: current repository branch)"
@@ -242,7 +242,7 @@ AMP_CACHEDIR="$( cd "$AMP_CACHEDIR" && pwd )"
242242
AMP_BASEOS=${AMP_BASEOS:-"ubuntu-minimal"}
243243

244244
if [ "$AMP_BASEOS" = "ubuntu-minimal" ]; then
245-
export DIB_RELEASE=${AMP_DIB_RELEASE:-"jammy"}
245+
export DIB_RELEASE=${AMP_DIB_RELEASE:-"noble"}
246246
elif [ "${AMP_BASEOS}" = "rhel" ]; then
247247
export DIB_RELEASE=${AMP_DIB_RELEASE:-"9"}
248248
elif [ "${AMP_BASEOS}" = "centos-minimal" ]; then
@@ -469,6 +469,11 @@ if [ "${AMP_BASEOS}" = "centos-minimal" ] || [ "${AMP_BASEOS}" = "fedora" ] || [
469469
fi
470470
fi
471471

472+
# AppArmor systems
473+
if [ "${AMP_BASEOS}" = "ubuntu-minimal" ] || [ "${AMP_BASEOS}" = "ubuntu" ]; then
474+
AMP_element_sequence="$AMP_element_sequence amphora-apparmor"
475+
fi
476+
472477
# Disable the dnf makecache timer
473478
if [ "${AMP_BASEOS}" = "centos-minimal" ] || [ "${AMP_BASEOS}" = "fedora" ] || [ "${AMP_BASEOS}" = "rhel" ] || [ "${AMP_BASEOS}" = "rocky-container" ]; then
474479
AMP_element_sequence="$AMP_element_sequence disable-makecache"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Element to configure apparmor for Octavia
2+
3+
This element will configure apparmor to allow rsyslog to create a log socket
4+
for Octavia Amphora logging
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
install-static
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
# This is a workaround to a known kernel bug with apparmor:
3+
# https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1373070
4+
#
5+
# Apparmor cannot handle namespaces correctly and will drop the '/' prefix
6+
# from a file path, thus causing the process to not have access.
7+
#
8+
# The reported workaround is to add flags=(attach_disconnected) to the rsyslog
9+
# profile.
10+
11+
sed -i 's#profile rsyslogd /usr/sbin/rsyslogd {#profile rsyslogd /usr/sbin/rsyslogd flags=(attach_disconnected) {#g' /etc/apparmor.d/usr.sbin.rsyslogd
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Allow rsyslog to create the octavia logging socket
2+
/run/rsyslog/ w,
3+
/run/rsyslog/octavia/ w,
4+
/run/rsyslog/octavia/log rwk,

octavia/common/jinja/haproxy/combined_listeners/templates/haproxy.cfg.j2

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ frontend prometheus-exporter-internal-endpoint
3434
bind 127.0.0.1:9101
3535
mode http
3636
no log
37-
option http-use-htx
3837
http-request use-service prometheus-exporter if { path /metrics }
3938
http-request reject
4039
timeout http-request 5s

octavia/tests/unit/common/jinja/haproxy/combined_listeners/test_jinja_cfg.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,6 @@ def test_render_template_prometheus(self):
570570
" bind 127.0.0.1:9101\n"
571571
" mode http\n"
572572
" no log\n"
573-
" option http-use-htx\n"
574573
" http-request use-service prometheus-exporter if { "
575574
"path /metrics }\n"
576575
" http-request reject\n"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
upgrade:
3+
- |
4+
``diskimage-create.sh`` has been updated to build Ubuntu Noble (24.04)
5+
amphora images per default.

0 commit comments

Comments
 (0)