Skip to content

Commit 1e2c961

Browse files
authored
Merge pull request #77 from stackhpc/upstream/master-2025-06-30
Synchronise master with upstream
2 parents 7837157 + 4757b87 commit 1e2c961

File tree

9 files changed

+625
-23
lines changed

9 files changed

+625
-23
lines changed

playbooks/roles/bifrost-ironic-install/templates/ironic.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ dhcp_provider = {{ dhcp_provider }}
131131
[dnsmasq]
132132
dhcp_hostsdir = {{ dnsmasq_dhcp_hostsdir }}
133133
dhcp_optsdir = {{ dnsmasq_dhcp_optsdir }}
134-
leases_file = {{ dnsmasq_leases_file }}
134+
dhcp_leasefile = {{ dnsmasq_leases_file }}
135135
{% endif %}
136136

137137
{% if enable_cors | bool == true %}

playbooks/roles/bifrost-keystone-install/tasks/bootstrap.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@
2222
--network-interface argument to "bifrost-cli install".
2323
when: ('ansible_' + ans_network_interface) not in hostvars[inventory_hostname]
2424

25-
- name: "Get keystone-wsgi-public location"
26-
shell: echo $(dirname $(which keystone-wsgi-public))
27-
register: keystone_install_prefix
28-
environment: "{{ bifrost_venv_env }}"
29-
3025
# NOTE(sean-k-mooney) only the MySQL db is started during bootstrapping.
3126
# all other services are started in the Start phase.
3227
- name: "Start database service"
@@ -195,18 +190,6 @@
195190
group: "{{ nginx_user }}" # TODO(TheJulia): Split webserver user/group.
196191
mode: "0755"
197192

198-
# Note(ashestakov): "copy" module in ansible doesn't support recursive
199-
# copying on remote host. "cp" command used instead.
200-
- name: "Copy keystone-wsgi-public to /var/www/keystone/public"
201-
command: cp -r "{{ keystone_install_prefix.stdout }}/keystone-wsgi-public" /var/www/keystone/public
202-
203-
- name: "Ensure owner and mode of keystone-wsgi-public"
204-
file:
205-
path: /var/www/keystone/public
206-
owner: "keystone"
207-
group: "{{ nginx_user }}"
208-
mode: "0754"
209-
210193
- name: "Bootstrap uWSGI"
211194
include_role:
212195
name: bifrost-uwsgi-install

playbooks/roles/bifrost-keystone-install/templates/uwsgi-keystone.ini.j2

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# {{ ansible_managed }}
22
[uwsgi]
3+
module = keystone.wsgi.api:application
4+
plugins = python
5+
36
master = true
47
processes = 2
58
threads = 2
@@ -18,4 +21,3 @@ uid = keystone
1821
gid = {{ nginx_user }}
1922

2023
chdir = /var/www/keystone/
21-
wsgi-file = /var/www/keystone/public

playbooks/roles/bifrost-pip-install/tasks/main.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
# source installation if the package itself is in constraints.
3333
- not source_install | bool
3434

35+
- name: "Detect Python version in virtualenv"
36+
command: "{{ ansible_python_interpreter }} -c 'import sys; print(\".\".join(map(str, sys.version_info[:3])))'"
37+
register: ansible_python_interpreter_version
38+
3539
- name: "Install {{ package }} package from pip using virtualenv"
3640
pip:
3741
name: "{{ package }}"
@@ -45,7 +49,7 @@
4549
retries: "{{ pip_install_retries }}"
4650
delay: "{{ pip_install_delay }}"
4751
when: not source_install | bool
48-
environment: "{{ (bifrost_venv_env | combine({'SETUPTOOLS_USE_DISTUTILS': 'stdlib'})) if ansible_facts.python_version is version('3.12', '<') else bifrost_venv_env }}"
52+
environment: "{{ (bifrost_venv_env | combine({'SETUPTOOLS_USE_DISTUTILS': 'stdlib'})) if ansible_python_interpreter_version.stdout is version('3.12', '<') else bifrost_venv_env }}"
4953

5054
- name: "Install requirements from {{ sourcedir }} using pip"
5155
pip:
@@ -56,7 +60,7 @@
5660
retries: 5
5761
delay: 10
5862
when: source_install | bool
59-
environment: "{{ (bifrost_venv_env | combine({'SETUPTOOLS_USE_DISTUTILS': 'stdlib'})) if ansible_facts.python_version is version('3.12', '<') else bifrost_venv_env }}"
63+
environment: "{{ (bifrost_venv_env | combine({'SETUPTOOLS_USE_DISTUTILS': 'stdlib'})) if ansible_python_interpreter_version.stdout is version('3.12', '<') else bifrost_venv_env }}"
6064

6165
# NOTE(dtantsur): do not use constraints here, it does not work when the
6266
# package itself is constrained.
@@ -66,4 +70,4 @@
6670
editable: "{{ developer_mode | bool }}"
6771
extra_args: "{{ extra_args }}"
6872
when: source_install | bool
69-
environment: "{{ (bifrost_venv_env | combine({'SETUPTOOLS_USE_DISTUTILS': 'stdlib'})) if ansible_facts.python_version is version('3.12', '<') else bifrost_venv_env }}"
73+
environment: "{{ (bifrost_venv_env | combine({'SETUPTOOLS_USE_DISTUTILS': 'stdlib'})) if ansible_python_interpreter_version.stdout is version('3.12', '<') else bifrost_venv_env }}"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
fixes:
3+
- |
4+
Fixes error DHCP lease file not found for dnsmasq dhcp provider.
5+
Changed wrong DHCP lease variable name in ironic.conf.j2 template in bifrost-ironic-install role.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
fixes:
3+
- |
4+
Fixes Keystone start-up by providing the correct WSGI entry point.

scripts/install-deps.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ case ${ID,,} in
6969
# NOTE(rpittau): epel repos are installed but the content is purged
7070
# in the CI images, we remove them and reinstall later
7171
sudo -E ${PKG_MANAGER} remove -y epel-release epel-next-release
72+
73+
if [[ $NAME == 'CentOS Stream' ]] && [[ $VERSION == 9 ]]; then
74+
export CONSTRAINTS_FILE="$BIFROST_HOME/upper-constraints-cs9-py39.txt"
75+
export UPPER_CONSTRAINTS_FILE=$CONSTRAINTS_FILE
76+
export TOX_CONSTRAINTS_FILE=$CONSTRAINTS_FILE
77+
fi
7278
;;
7379

7480
*) echo "ERROR: Supported package manager not found. Supported: apt, dnf, yum, zypper"; exit 1;;

scripts/test-bifrost.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -euxo pipefail
44

55
export PYTHONUNBUFFERED=1
66
SCRIPT_HOME="$(cd "$(dirname "$0")" && pwd)"
7-
BIFROST_HOME=$SCRIPT_HOME/..
7+
export BIFROST_HOME=$SCRIPT_HOME/..
88
USE_DHCP="${USE_DHCP:-false}"
99
BUILD_IMAGE="${BUILD_IMAGE:-false}"
1010
BAREMETAL_DATA_FILE=${BAREMETAL_DATA_FILE:-'/tmp/baremetal.json'}

0 commit comments

Comments
 (0)