Skip to content

Commit 9ad7119

Browse files
committed
Merge branch 'main' into experi/tf-images
2 parents fe9f83a + 50fc320 commit 9ad7119

File tree

10 files changed

+67
-7
lines changed

10 files changed

+67
-7
lines changed

ansible/filter_plugins/utils.py

+3
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ def to_ood_regex(items):
4141
eg {{ [compute-001, compute-002, control] | to_regex }} -> '(compute-\d+)|(control)'
4242
"""
4343

44+
# NB: for python3.12+ the \d in this function & docstring
45+
# need to be raw strings. See https://docs.python.org/3/reference/lexical_analysis.html
46+
4447
# There's a python bug which means re.sub() can't use '\d' in the replacement so
4548
# have to do replacement in two stages:
4649
r = [re.sub(r"\d+", 'XBACKSLASHX', v) for v in items]

ansible/roles/dnf_repos/defaults/main.yml

+14-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dnf_repos_filenames:
1717
dnf_repos_version_filenames: "{{ dnf_repos_filenames[ansible_distribution_major_version] }}"
1818

1919
# epel installed separately
20-
dnf_repos_repolist:
20+
dnf_repos_default_repolist:
2121
- file: "{{ dnf_repos_version_filenames.baseos }}"
2222
name: baseos
2323
base_url: "{{ dnf_repos_pulp_content_url }}/{{ appliances_pulp_repos.baseos[ansible_distribution_version] | appliances_repo_to_subpath }}"
@@ -30,6 +30,19 @@ dnf_repos_repolist:
3030
- file: "{{ dnf_repos_version_filenames.extras }}"
3131
name: extras
3232
base_url: "{{ dnf_repos_pulp_content_url }}/{{ appliances_pulp_repos.extras[ansible_distribution_version] | appliances_repo_to_subpath }}"
33+
- file: ceph
34+
name: Ceph
35+
base_url: "{{ dnf_repos_pulp_content_url }}/{{ appliances_pulp_repos.ceph[ansible_distribution_major_version] | appliances_repo_to_subpath }}"
36+
37+
dnf_repos_openhpc_repolist:
38+
- name: OpenHPC
39+
file: OpenHPC
40+
base_url: "{{ dnf_repos_pulp_content_url }}/{{ appliances_pulp_repos.openhpc_base[ansible_distribution_major_version] | appliances_repo_to_subpath }}"
41+
- name: OpenHPC-updates
42+
file: OpenHPC
43+
base_url: "{{ dnf_repos_pulp_content_url }}/{{ appliances_pulp_repos.openhpc_updates[ansible_distribution_major_version] | appliances_repo_to_subpath }}"
44+
45+
dnf_repos_repolist: "{{ dnf_repos_default_repolist + (dnf_repos_openhpc_repolist if (openhpc_install_type | default('ohpc')) == 'ohpc' else []) }}"
3346

3447
dnf_repos_epel_baseurl: "{{ dnf_repos_pulp_content_url }}/{{ appliances_pulp_repos.epel[ansible_distribution_major_version] | appliances_repo_to_subpath }}"
3548
dnf_repos_epel_description: "epel"

ansible/roles/pulp_site/defaults/main.yml

+6
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ pulp_site_rpm_info:
2222
subpath: "{{ appliances_pulp_repos.extras[pulp_site_target_distribution_version] | appliances_repo_to_subpath }}"
2323
- name: "epel-{{ pulp_site_target_distribution_version_major }}-{{ appliances_pulp_repos.epel[pulp_site_target_distribution_version_major].timestamp }}"
2424
subpath: "{{ appliances_pulp_repos.epel[pulp_site_target_distribution_version_major] | appliances_repo_to_subpath }}"
25+
- name: "ohpc-{{ pulp_site_target_distribution_version_major }}-{{ appliances_pulp_repos.openhpc_base[pulp_site_target_distribution_version_major].timestamp }}"
26+
subpath: "{{ appliances_pulp_repos.openhpc_base[pulp_site_target_distribution_version_major] | appliances_repo_to_subpath }}"
27+
- name: "ohpc-updates-{{ pulp_site_target_distribution_version_major }}-{{ appliances_pulp_repos.openhpc_updates[pulp_site_target_distribution_version_major].timestamp }}"
28+
subpath: "{{ appliances_pulp_repos.openhpc_updates[pulp_site_target_distribution_version_major] | appliances_repo_to_subpath }}"
29+
- name: "ceph-{{ pulp_site_target_distribution_version_major }}-{{ appliances_pulp_repos.ceph[pulp_site_target_distribution_version_major].timestamp }}"
30+
subpath: "{{ appliances_pulp_repos.ceph[pulp_site_target_distribution_version_major] | appliances_repo_to_subpath }}"
2531

2632
pulp_site_rpm_repo_defaults:
2733
remote_username: "{{ pulp_site_upstream_username }}"

dev/setup-env.sh

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ PYTHON_VERSION=""
1717
if [[ "$OS" == "ubuntu" && "$MAJOR_VERSION" == "22" ]]; then
1818
PYTHON_VERSION="/usr/bin/python3.10"
1919
elif [[ "$OS" == "rocky" && "$MAJOR_VERSION" == "8" ]]; then
20+
# python3.9+ doesn't have selinux bindings
2021
PYTHON_VERSION="/usr/bin/python3.8" # use `sudo yum install python38` on Rocky Linux 8 to install this
2122
elif [[ "$OS" == "rocky" && "$MAJOR_VERSION" == "9" ]]; then
2223
PYTHON_VERSION="/usr/bin/python3.9"
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"cluster_image_names": {
33
"RL8": {
4-
"default": "openhpc-RL8-250102-1138-77cfc703"
4+
"default": "openhpc-RL8-250107-1534-b03caaf3"
55
},
66
"RL9": {
7-
"default": "openhpc-RL9-250102-1139-77cfc703"
7+
"default": "openhpc-RL9-250107-1535-b03caaf3"
88
}
99
}
1010
}

environments/common/inventory/group_vars/all/defaults.yml

+21
Original file line numberDiff line numberDiff line change
@@ -151,3 +151,24 @@ appliances_pulp_repos:
151151
'8':
152152
timestamp: 20241216T235733
153153
path: epel/8/Everything/x86_64
154+
openhpc_base:
155+
'8':
156+
path: OpenHPC/2/EL_8
157+
timestamp: 20241218T154614
158+
'9':
159+
path: OpenHPC/3/EL_9
160+
timestamp: 20241218T154614
161+
openhpc_updates:
162+
'8':
163+
path: OpenHPC/2/updates/EL_8
164+
timestamp: 20241218T154614
165+
'9':
166+
path: OpenHPC/3/updates/EL_9
167+
timestamp: 20241218T154614
168+
ceph:
169+
'8':
170+
timestamp: 20231104T015751
171+
path: centos/8-stream/storage/x86_64/ceph-quincy
172+
'9':
173+
timestamp: 20240923T233036
174+
path: centos/9-stream/storage/x86_64/ceph-reef

environments/common/inventory/group_vars/all/openhpc.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,15 @@ openhpc_config_extra: {}
3939
openhpc_config: "{{ openhpc_config_default | combine(openhpc_config_extra, list_merge='append') }}"
4040
openhpc_state_save_location: "{{ appliances_state_dir + '/slurmctld' if appliances_state_dir is defined else '/var/spool' }}"
4141

42+
openhpc_install_type: ohpc # 'ohpc' or 'generic', see https://github.com/stackhpc/ansible-slurm-appliance/pull/326
43+
44+
# Empty repo lists from stackhpc.openhpc role defaults, as these repofiles are
45+
# now generated by dnf_repos to allow injecting Ark creds:
46+
ohpc_openhpc_repos:
47+
"9": []
48+
"8": []
49+
50+
# overriding to ensure doesn't overwrite Ark epel repo
4251
ohpc_default_extra_repos:
43-
"9": [] #overriding to ensure doesn't overwrite ark epel repo
52+
"9": []
4453
"8": []
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Empty repo lists from stackhpc.ansible-role-os-manila-mount role defaults, as these repofiles are
2+
# now generated by dnf_repos to allow injecting Ark creds:
3+
os_manila_mount_ceph_rpm_repos: []

requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ansible==8.0.0
1+
ansible==6.7.0 # cloudalchemy.prometheus uses ansible.builtin.include, removed in ansible-core==2.16 => ansible==9
22
openstacksdk
33
python-openstackclient==6.6.1 # v7.0.0 has a bug re. rebuild
44
python-manilaclient
@@ -9,4 +9,4 @@ cookiecutter
99
selinux # this is a shim to avoid having to use --system-site-packages, you still need sudo yum install libselinux-python3
1010
netaddr
1111
matplotlib
12-
pulp-cli==0.29.2
12+
pulp-cli==0.23.2

requirements.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ roles:
2121
version: v3.1.5
2222
- src: https://github.com/stackhpc/ansible-role-os-manila-mount.git
2323
name: stackhpc.os-manila-mount
24-
version: v24.11.0 # Support ceph quincy for RL9
24+
version: v25.1.1
2525

2626
collections:
2727
- name: containers.podman
@@ -49,6 +49,10 @@ collections:
4949
- name: https://github.com/azimuth-cloud/ansible-collection-image-utils
5050
type: git
5151
version: 0.4.0
52+
# stackhpc.pulp has pulp.squeezer as dependency, any version, but latest
53+
# requires newer ansible than can install
54+
- name: pulp.squeezer
55+
version: 0.0.15
5256
- name: stackhpc.pulp
5357
version: 0.5.5
5458
...

0 commit comments

Comments
 (0)