Skip to content

Commit

Permalink
Merge branch 'main' into feat/ohpc-release-train
Browse files Browse the repository at this point in the history
  • Loading branch information
wtripp180901 committed Jan 6, 2025
2 parents 051251b + 8c979cd commit f860305
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ansible/filter_plugins/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ def to_ood_regex(items):
eg {{ [compute-001, compute-002, control] | to_regex }} -> '(compute-\d+)|(control)'
"""

# NB: for python3.12+ the \d in this function & docstring
# need to be raw strings. See https://docs.python.org/3/reference/lexical_analysis.html

# There's a python bug which means re.sub() can't use '\d' in the replacement so
# have to do replacement in two stages:
r = [re.sub(r"\d+", 'XBACKSLASHX', v) for v in items]
Expand Down
1 change: 1 addition & 0 deletions dev/setup-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ PYTHON_VERSION=""
if [[ "$OS" == "ubuntu" && "$MAJOR_VERSION" == "22" ]]; then
PYTHON_VERSION="/usr/bin/python3.10"
elif [[ "$OS" == "rocky" && "$MAJOR_VERSION" == "8" ]]; then
# python3.9+ doesn't have selinux bindings
PYTHON_VERSION="/usr/bin/python3.8" # use `sudo yum install python38` on Rocky Linux 8 to install this
elif [[ "$OS" == "rocky" && "$MAJOR_VERSION" == "9" ]]; then
PYTHON_VERSION="/usr/bin/python3.9"
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ansible==8.0.0
ansible==6.7.0 # cloudalchemy.prometheus uses ansible.builtin.include, removed in ansible-core==2.16 => ansible==9
openstacksdk
python-openstackclient==6.6.1 # v7.0.0 has a bug re. rebuild
python-manilaclient
Expand All @@ -9,4 +9,4 @@ cookiecutter
selinux # this is a shim to avoid having to use --system-site-packages, you still need sudo yum install libselinux-python3
netaddr
matplotlib
pulp-cli==0.29.2
pulp-cli==0.23.2
4 changes: 4 additions & 0 deletions requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ collections:
- name: https://github.com/azimuth-cloud/ansible-collection-image-utils
type: git
version: 0.4.0
# stackhpc.pulp has pulp.squeezer as dependency, any version, but latest
# requires newer ansible than can install
- name: pulp.squeezer
version: 0.0.15
- name: stackhpc.pulp
version: 0.5.5
...

0 comments on commit f860305

Please sign in to comment.