Skip to content

Commit 8caadc2

Browse files
middelkooptclaude
andcommitted
fix(openeuler): correct Warewulf3 recipes and update SP4/COPR repos
- Rename openEuler 22.03 recipes from warewulf -> warewulf3 provisioner - Update VNFS chroot template to SP4 repository URLs (was SP3) - Update OpenHPC COPR repo target to openeuler-24.03_LTS_SP2 - Add virtio_pci before virtio_net in Warewulf3 bootstrap for VM support - Abstract MariaDB/MySQL service name and config path per distro - Abstract extra-repos package per distro (epel-release vs openEuler-release) - Remove stale BOS_MIRROR comment and openeuler-extra-repos install step - Add ChangeLog entries for 3.x Co-authored-by: Claude <noreply@anthropic.com> Signed-off-by: Timothy Middelkoop <tmiddelkoop@internet2.edu>
1 parent 8db77f0 commit 8caadc2

12 files changed

Lines changed: 44 additions & 32 deletions

components/provisioning/warewulf-vnfs/SOURCES/openeuler-22.03.tmpl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ if [ -z "$YUM_MIRROR" ]; then
1818
if [ -z "$YUM_MIRROR_BASE" ]; then
1919
YUM_MIRROR_BASE="http://repo.openeuler.org"
2020
fi
21-
YUM_MIRROR="${YUM_MIRROR_BASE}/openEuler-22.03-LTS-SP3/OS/\$basearch/, \
22-
${YUM_MIRROR_BASE}/openEuler-22.03-LTS-SP3/everything/\$basearch/, \
23-
${YUM_MIRROR_BASE}/openEuler-22.03-LTS-SP3/EPOL/main/\$basearch/, \
24-
${YUM_MIRROR_BASE}/openEuler-22.03-LTS-SP3/EPOL/update/main/\$basearch/, \
25-
${YUM_MIRROR_BASE}/openEuler-22.03-LTS-SP3/update/\$basearch/"
21+
YUM_MIRROR="${YUM_MIRROR_BASE}/openEuler-22.03-LTS-SP4/OS/\$basearch/, \
22+
${YUM_MIRROR_BASE}/openEuler-22.03-LTS-SP4/everything/\$basearch/, \
23+
${YUM_MIRROR_BASE}/openEuler-22.03-LTS-SP4/EPOL/main/\$basearch/, \
24+
${YUM_MIRROR_BASE}/openEuler-22.03-LTS-SP4/EPOL/update/main/\$basearch/, \
25+
${YUM_MIRROR_BASE}/openEuler-22.03-LTS-SP4/update/\$basearch/"
2626
fi
2727

2828
# Install only what is necessary/specific for this distribution

docs/ChangeLog

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# -*- mode: sh; fill-column: 120; -*-
22

3+
Version 3.x (unreleased)
4+
5+
[General Updates]
6+
7+
* openEuler 22.03 Warewulf3 recipes corrected to use warewulf3 provisioner (previously referenced warewulf4 config)
8+
* Updated openEuler 22.03 VNFS chroot template to use SP4 repository URLs (previously SP3)
9+
* Updated OpenHPC COPR repository reference for openEuler 22.03 recipes to openeuler-24.03_LTS_SP2 build target
10+
* Warewulf3 bootstrap now loads virtio_pci before virtio_net to ensure the PCI bus driver is present for VM guests
11+
* Warewulf3 compute image setup generalized to support distro-specific MariaDB/MySQL service and config file names
12+
(openEuler 22.03 uses mysqld/mysql-server.cnf rather than mariadb/mariadb-server.cnf)
13+
* Warewulf3 chroot extra-repos package now config-driven per distro (epel-release for EL9, openEuler-release for openEuler)
14+
15+
----------------------------------------------------------------------------------------------------------------------
16+
317
Version 3.0 (15 September 2023)
418

519
[Important Highlights/Notices for 3.x series]

docs/install/config/distro/el9.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ pkg_remove: "dnf -y remove"
2323
pkg_upgrade: "dnf -y upgrade"
2424
pkg_upgrade_chroot: 'dnf -y --installroot="$CHROOT" upgrade'
2525
pkg_tftp: "syslinux-tftpboot"
26+
mariadb_cnf: "/etc/my.cnf.d/mariadb-server.cnf"
27+
mariadb_service: "mariadb"
28+
extra_repos_pkg: "epel-release"

docs/install/config/distro/openeuler22.03.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ pkg_remove: "dnf -y remove"
3030
pkg_upgrade: "dnf -y upgrade"
3131
pkg_upgrade_chroot: 'dnf -y --installroot="$CHROOT" upgrade'
3232
pkg_tftp: "syslinux-tftpboot"
33-
34-
# External repository URLs
35-
beegfs_repo: "https://www.beegfs.io/release/beegfs_7.4.5/dists/beegfs-rhel9.repo"
33+
mariadb_cnf: "/etc/my.cnf.d/mysql-server.cnf"
34+
mariadb_service: "mysqld"
35+
extra_repos_pkg: "openEuler-release"
3636

3737
# openEuler-specific OHPC repo (COPR for compute image)
3838
openeuler_ohpc_repo_server: "https://eur.openeuler.openatom.cn"
39-
openeuler_ohpc_repo_dir: "coprs/openhpc/OpenHPC/repo/openeuler-22.03_LTS_SP4"
40-
openeuler_ohpc_repo_file: "openhpc-OpenHPC-openeuler-22.03_LTS_SP4.repo"
39+
openeuler_ohpc_repo_dir: "coprs/openhpc/OpenHPC/repo/openeuler-24.03_LTS_SP2"
40+
openeuler_ohpc_repo_file: "openhpc-OpenHPC-openeuler-24.03_LTS_SP2.repo"

docs/install/recipes/openeuler22.03-aarch64-warewulf-openpbs.conf renamed to docs/install/recipes/openeuler22.03-aarch64-warewulf3-openpbs.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
config/base.yaml
22
config/distro/openeuler22.03.yaml
33
config/arch/aarch64.yaml
4-
config/provisioner/warewulf.yaml
4+
config/provisioner/warewulf3.yaml
55
config/scheduler/openpbs.yaml

docs/install/recipes/openeuler22.03-aarch64-warewulf-slurm.conf renamed to docs/install/recipes/openeuler22.03-aarch64-warewulf3-slurm.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
config/base.yaml
22
config/distro/openeuler22.03.yaml
33
config/arch/aarch64.yaml
4-
config/provisioner/warewulf.yaml
4+
config/provisioner/warewulf3.yaml
55
config/scheduler/slurm.yaml

docs/install/recipes/openeuler22.03-x86_64-warewulf-openpbs.conf renamed to docs/install/recipes/openeuler22.03-x86_64-warewulf3-openpbs.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
config/base.yaml
22
config/distro/openeuler22.03.yaml
33
config/arch/x86_64.yaml
4-
config/provisioner/warewulf.yaml
4+
config/provisioner/warewulf3.yaml
55
config/scheduler/openpbs.yaml

docs/install/recipes/openeuler22.03-x86_64-warewulf-slurm.conf renamed to docs/install/recipes/openeuler22.03-x86_64-warewulf3-slurm.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
config/base.yaml
22
config/distro/openeuler22.03.yaml
33
config/arch/x86_64.yaml
4-
config/provisioner/warewulf.yaml
4+
config/provisioner/warewulf3.yaml
55
config/scheduler/slurm.yaml

docs/install/templates/distro/openeuler/repos.md.j2

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
In addition to the OpenHPC package repository, the *head node* also requires
22
access to the standard base OS distro repositories in order to resolve necessary
3-
dependencies. For {{ distro_full_name }}, the requirements are to have access to
4-
the OS, Everything, EPOL main, and EPOL update repositories. Note that the OS,
5-
Everything, and EPOL main repositories are typically enabled by default. To
6-
enable the EPOL update repository on {{ distro_full_name }}, you can run the
7-
following command:
3+
dependencies. For openEuler, the requirements are to have access to
4+
the OS, Everything, EPOL main, and update repositories. These are all enabled by
5+
default on openEuler. We now enable the OpenEuler OpenHPC repo (Note: these are
6+
from openEuler 24.03).
87

98
<!-- ohpc_begin -->
109
<!-- ohpc_comment Install EPOL -->
@@ -13,7 +12,6 @@ following command:
1312
{{ pkg_add_repo }} {{ openeuler_ohpc_repo_server }}\
1413
/{{ openeuler_ohpc_repo_dir }}\
1514
/{{ openeuler_ohpc_repo_file }}
16-
{{ pkg_install }} openeuler-extra-repos
1715
```
1816
<!-- ohpc_end -->
1917

docs/install/templates/provisioner/warewulf3/compute-create-image.md.j2

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ of the compute node. The default location for this example is
1616
::: {.tip}
1717
Warewulf is configured by default to access an external repository during the
1818
`wwmkchroot` process. If the head node cannot reach the public {{ distro_full_name }}
19-
mirrors, set the `${BOS_MIRROR}` environment variable to your desired repo
20-
location prior to running `wwmkchroot`.
19+
mirrors, set the `YUM_MIRROR_BASE` environment variable to your desired mirror
20+
base URL prior to running `wwmkchroot`.
2121
:::
2222

2323
<!-- ohpc_begin -->
@@ -40,14 +40,11 @@ cp -p /etc/zypp/repos.d/OpenHPC*.repo $CHROOT/etc/zypp/repos.d
4040
# Import GPG keys for chroot repository usage
4141
zypper -n --root $CHROOT --no-gpg-checks --gpg-auto-import-keys refresh
4242
{% else %}
43-
# Override default OS repository (optional) - set BOS_MIRROR to desired repo
44-
# export YUM_MIRROR=${BOS_MIRROR}
45-
4643
# Build initial chroot image
4744
wwmkchroot -v {{ baseos }} $CHROOT
4845

49-
# Enable OpenHPC and EPEL repos inside chroot
50-
{{ pkg_install_chroot }} epel-release
46+
# Enable OpenHPC and distro repos inside chroot
47+
{{ pkg_install_chroot }} {{ extra_repos_pkg }}
5148
cp -p /etc/yum.repos.d/OpenHPC*.repo $CHROOT/etc/yum.repos.d
5249
{% endif %}
5350
```

0 commit comments

Comments
 (0)