Skip to content

Commit 711a762

Browse files
authored
Merge pull request #12 from stackhpc/update/hpctests
Update/hpctests
2 parents 6396afc + 42b7cf2 commit 711a762

File tree

6 files changed

+35
-29
lines changed

6 files changed

+35
-29
lines changed

.github/workflows/arcus.yml

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,16 @@ name: Build images on arcus:rcp-cloud-portal-demo
22
on:
33
workflow_dispatch:
44
pull_request:
5-
concurrency: rcp-cloud-portal-demo # openstack project
65
jobs:
76
arcus:
87
runs-on: ubuntu-20.04
9-
defaults:
10-
run:
11-
working-directory: ./collections/ansible_collections/stackhpc/slurm_image_builder
8+
# defaults:
9+
# run:
10+
# working-directory: ./collections/ansible_collections/stackhpc/slurm_image_builder
1211
outputs:
1312
image_name: ${{ steps.manifest.outputs.IMAGE_NAME }}
1413
steps:
1514
- uses: actions/checkout@v2
16-
with:
17-
path: collections/ansible_collections/stackhpc/slurm_image_builder
1815

1916
- name: Setup ssh
2017
run: |
@@ -48,12 +45,6 @@ jobs:
4845
env:
4946
OS_CLOUD: openstack
5047

51-
- name: Delete infrastructure
52-
run: terraform destroy -auto-approve
53-
env:
54-
OS_CLOUD: openstack
55-
if: ${{ success() || cancelled() }}
56-
5748
- name: Get created image name from manifest
5849
id: manifest
5950
run: |
@@ -68,12 +59,12 @@ jobs:
6859
env:
6960
OS_CLOUD: openstack
7061

71-
- name: Download image to runner
72-
run: |
73-
. venv/bin/activate
74-
openstack image save --file ${{ steps.manifest.outputs.IMAGE_NAME }} ${{ steps.manifest.outputs.IMAGE_ID }}
75-
env:
76-
OS_CLOUD: openstack
62+
# - name: Download image to runner
63+
# run: |
64+
# . venv/bin/activate
65+
# openstack image save --file ${{ steps.manifest.outputs.IMAGE_NAME }} ${{ steps.manifest.outputs.IMAGE_ID }}
66+
# env:
67+
# OS_CLOUD: openstack
7768

7869
# - name: Upload image to S3 release bucket
7970
# run: |

ansible.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[defaults]
2-
# assumes this path is e.g. .../collections/ansible_collections/stackhpc/slurm_image_builder
3-
collections_paths = ../../../../collections
2+
roles_path = roles
43
any_errors_fatal = True
54
stdout_callback = debug
65
stderr_callback = debug

playbooks/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
gather_facts: no
44
tasks:
55
- import_role:
6-
name: stackhpc.slurm_image_builder.builder
6+
name: builder
77

roles/builder/defaults/main/dnf_packages.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
releasever: '8.6'
2+
13
rpm_keys:
24
- https://yum.osc.edu/ondemand/RPM-GPG-KEY-ondemand # https://github.com/OSC/ood-ansible/blob/master/defaults/main/install.yml: rpm_repo_key
35

@@ -14,6 +16,9 @@ dnf_release_packages: # list of ansible.builtin.dnf args for packages to install
1416
- name: https://yum.osc.edu/ondemand/2.0/ondemand-release-web-2.0-1.noarch.rpm # https://github.com/OSC/ood-ansible/blob/master/defaults/main/install.yml:rpm_repo_url
1517
disable_gpg_check: yes
1618

19+
dnf_repofiles_no_minor_releasever: # list of repofiles which can't cope with an X.Y releasever
20+
- /etc/yum.repos.d/ondemand-web.repo
21+
1722
dnf_latest_packages: # list of packages to install using dnf
1823

1924
# https://github.com/stackhpc/ansible-role-openhpc/blob/master/vars/ohpc-2
@@ -35,8 +40,8 @@ dnf_latest_packages: # list of packages to install using dnf
3540

3641
# https://github.com/stackhpc/ansible-slurm-appliance/blob/main/environments/common/inventory/group_vars/all/openhpc.yml
3742
- slurm-libpmi-ohpc
38-
- ohpc-gnu9-openmpi4-perf-tools
39-
- openblas-gnu9-ohpc
43+
- ohpc-gnu12-openmpi4-perf-tools # for hpctests
44+
- openblas-gnu12-ohpc # for hpctests (HPL)
4045

4146
# https://github.com/OSC/ood-ansible/blob/master/vars/Rocky.yml
4247
- lua-posix
@@ -56,16 +61,16 @@ dnf_latest_packages: # list of packages to install using dnf
5661
- chkconfig
5762

5863
dnf_specific_packages:
59-
# done separately as @ruby and @nodejs are el8.4 modules which breaks if requiring latest, as for above
64+
# done separately as @ruby and @nodejs are EL modules which breaks if requiring latest, as for above
6065
# https://github.com/OSC/ood-ansible/blob/master/vars/Rocky.yml
6166
- '@ruby:2.7'
62-
- '@nodejs:12'
67+
- '@nodejs:14'
6368

6469
# https://github.com/stackhpc/ansible-slurm-appliance/blob/main/ansible/roles/openondemand/tasks/vnc_compute.yml
65-
- turbovnc-2.2.7
70+
- turbovnc-3.0.1
6671

6772
# https://github.com/OSC/ood-ansible/blob/master/tasks/install-rpm.yml
68-
- ondemand
73+
- ondemand-2.0.29
6974

7075
# NB: firewalld can't be installed in this image as it starts on boot, which is not wanted
7176

roles/builder/tasks/dnf_packages.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@
44
dnf: "{{ item }}"
55
loop: "{{ dnf_release_packages }}"
66

7+
- name: Remove minor releasever from repofiles
8+
ansible.builtin.replace:
9+
path: "{{ item }}"
10+
regexp: '\$releasever'
11+
replace: "{{ releasever | split('.') | first }}"
12+
when: "'.' in releasever"
13+
loop: "{{ dnf_repofiles_no_minor_releasever }}"
14+
715
- name: Install latest dnf packages
816
dnf:
917
name: "{{ dnf_latest_packages }}"

roles/builder/tasks/main.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
policy: "{{ selinux_policy }}"
1616
register: sestatus
1717

18+
- name: Set releasever
19+
ansible.builtin.copy:
20+
dest: /etc/yum/vars/releasever
21+
content: "{{ releasever }}"
22+
1823
- name: Upgrade base image packages
1924
dnf:
2025
name: '*'
@@ -45,13 +50,11 @@
4550
file:
4651
path: /etc/resolv.conf
4752
state: absent
48-
become: yes
4953

5054
- name: Delete any injected ssh config for rocky
5155
file:
5256
path: /home/rocky/.ssh/
5357
state: absent
54-
become: yes
5558

5659
- name: Run cloud-init cleanup
5760
command: cloud-init clean --logs --seed

0 commit comments

Comments
 (0)