Skip to content

Commit 97f8975

Browse files
authored
Merge pull request #1289 from stackhpc/caracal-host-images
Caracal host images
2 parents 5114b09 + 1872e36 commit 97f8975

File tree

12 files changed

+29
-38
lines changed

12 files changed

+29
-38
lines changed

.github/workflows/overcloud-host-image-build.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,15 @@ jobs:
9898
run: |
9999
cat << EOF > terraform.tfvars
100100
ssh_public_key = "id_rsa.pub"
101-
ssh_username = "rocky"
101+
ssh_username = "ubuntu"
102102
aio_vm_name = "skc-host-image-builder"
103-
# Must be a Rocky Linux 9 host to successfully build all images
103+
# Must be an Ubuntu Jammy host to successfully build all images
104104
# This MUST NOT be an LVM image. It can cause confusing conficts with the built image.
105-
aio_vm_image = "Rocky-9-GenericCloud-Base-9.3-20231113.0.x86_64.qcow2"
105+
aio_vm_image = "Ubuntu-22.04"
106106
aio_vm_flavor = "en1.medium"
107107
aio_vm_network = "stackhpc-ci"
108108
aio_vm_subnet = "stackhpc-ci"
109-
aio_vm_interface = "eth0"
109+
aio_vm_interface = "ens3"
110110
EOF
111111
working-directory: ${{ github.workspace }}/src/kayobe-config/terraform/aio
112112

@@ -184,14 +184,14 @@ jobs:
184184
run: |
185185
source venvs/kayobe/bin/activate &&
186186
source src/kayobe-config/kayobe-env --environment ci-builder &&
187-
kayobe seed host configure -e seed_bootstrap_user=rocky --skip-tags network
187+
kayobe seed host configure -e seed_bootstrap_user=ubuntu --skip-tags network
188188
189189
- name: Install dependencies
190190
run: |
191191
source venvs/kayobe/bin/activate &&
192192
source src/kayobe-config/kayobe-env --environment ci-builder &&
193193
kayobe seed host command run \
194-
--command "sudo dnf config-manager --set-enabled crb && sudo dnf -y install epel-release && sudo dnf -y install cloud-init debootstrap git kpartx zstd" --show-output
194+
--command "sudo apt update && sudo apt -y install gcc git libffi-dev python3-dev python-is-python3 python3-venv" --show-output
195195
env:
196196
KAYOBE_VAULT_PASSWORD: ${{ secrets.KAYOBE_VAULT_PASSWORD }}
197197

@@ -311,8 +311,8 @@ jobs:
311311
continue-on-error: true
312312
run: |
313313
mkdir logs
314-
scp -r rocky@$(jq -r .access_ip_v4.value src/kayobe-config/etc/kayobe/environments/ci-builder/tf-outputs.yml):/opt/kayobe/images/*/*.std* ./logs/
315-
scp -r rocky@$(jq -r .access_ip_v4.value src/kayobe-config/etc/kayobe/environments/ci-builder/tf-outputs.yml):/tmp/updated_images.txt ./logs/ || true
314+
scp -r ubuntu@$(jq -r .access_ip_v4.value src/kayobe-config/etc/kayobe/environments/ci-builder/tf-outputs.yml):/opt/kayobe/images/*/*.std* ./logs/
315+
scp -r ubuntu@$(jq -r .access_ip_v4.value src/kayobe-config/etc/kayobe/environments/ci-builder/tf-outputs.yml):/tmp/updated_images.txt ./logs/ || true
316316
if: always()
317317

318318
- name: Fail if any overcloud host image builds failed

.github/workflows/stackhpc-all-in-one.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,13 +396,15 @@ jobs:
396396
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}
397397
if: inputs.upgrade
398398

399+
# NOTE(Alex-Welsh): configure host with selinux_state=disabled, because
400+
# Antelope images are not built as permissive
399401
- name: Host configure
400402
run: |
401403
docker run -t --rm \
402404
-v $(pwd):/stack/kayobe-automation-env/src/kayobe-config \
403405
-e KAYOBE_ENVIRONMENT -e KAYOBE_VAULT_PASSWORD -e KAYOBE_AUTOMATION_SSH_PRIVATE_KEY \
404406
$KAYOBE_IMAGE \
405-
/stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/overcloud-host-configure.sh
407+
/stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/overcloud-host-configure.sh -e selinux_state=disabled
406408
env:
407409
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}
408410
if: inputs.upgrade

etc/kayobe/environments/ci-aio/globals.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,6 @@ os_release: >-
5555
{{ (lookup('pipe', '. /etc/os-release && echo $VERSION_CODENAME') | trim) if os_distribution == 'ubuntu' else
5656
(lookup('pipe', '. /etc/os-release && echo $VERSION_ID') | trim | split('.') | first) if os_distribution == 'rocky' }}
5757
58-
###############################################################################
59-
60-
# Avoid a reboot.
61-
selinux_state: disabled
62-
6358
###############################################################################
6459
# Dummy variable to allow Ansible to accept this file.
6560
workaround_ansible_issue_8743: yes

etc/kayobe/environments/ci-aio/inventory/group_vars/controllers/selinux

Lines changed: 0 additions & 4 deletions
This file was deleted.

etc/kayobe/environments/ci-builder/globals.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,3 @@
77
# OS distribution name. Valid options are "rocky", "ubuntu". Default is
88
# "rocky".
99
os_distribution: "{{ lookup('pipe', '. /etc/os-release && echo $ID') | trim }}"
10-
11-
###############################################################################
12-
# SELinux.
13-
14-
# Avoid a reboot.
15-
selinux_state: disabled

etc/kayobe/environments/ci-multinode/globals.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,6 @@ os_release: >-
6060
stackhpc_write_barbican_role_id_to_file: true
6161
stackhpc_barbican_role_id_file_path: "/tmp/barbican-role-id"
6262

63-
###############################################################################
64-
65-
# Avoid a reboot.
66-
selinux_state: disabled
67-
6863
###############################################################################
6964
# Dummy variable to allow Ansible to accept this file.
7065
workaround_ansible_issue_8743: yes

etc/kayobe/overcloud-dib.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ overcloud_dib_host_packages_extra:
6767
overcloud_dib_git_elements_extra:
6868
- repo: "https://github.com/stackhpc/stackhpc-image-elements"
6969
local: "{{ source_checkout_path }}/stackhpc-image-elements"
70-
version: "v1.6.1"
70+
version: "v1.6.3"
7171
elements_path: "elements"
7272

7373
# List of git repositories containing Diskimage Builder (DIB) elements. See
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
22
# Overcloud host image versioning tags
33
# These images must be in SMS, since they are used by our AIO CI runners
4-
stackhpc_rocky_9_overcloud_host_image_version: "2023.1-20240126T093158"
5-
stackhpc_ubuntu_jammy_overcloud_host_image_version: "2023.1-20240325T130221"
4+
stackhpc_rocky_9_overcloud_host_image_version: "2024.1-20240912T145502"
5+
stackhpc_ubuntu_jammy_overcloud_host_image_version: "2024.1-20240911T124950"

etc/kayobe/pulp-repo-versions.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ stackhpc_pulp_repo_centos_stream_9_nfv_openvswitch_version: 20240829T093746
55
stackhpc_pulp_repo_centos_stream_9_openstack_caracal_version: 20240902T080424
66
stackhpc_pulp_repo_centos_stream_9_opstools_version: 20231213T031318
77
stackhpc_pulp_repo_centos_stream_9_storage_ceph_reef_version: 20240502T000614
8-
stackhpc_pulp_repo_docker_ce_ubuntu_jammy_version: 20240829T093746
8+
stackhpc_pulp_repo_docker_ce_ubuntu_jammy_version: 20240910T001721
99
stackhpc_pulp_repo_elrepo_9_version: 20240902T122220
1010
stackhpc_pulp_repo_epel_9_version: 20240902T080424
1111
stackhpc_pulp_repo_grafana_version: 20240902T080424
@@ -39,6 +39,6 @@ stackhpc_pulp_repo_rocky_9_4_crb_version: 20240816T002610
3939
stackhpc_pulp_repo_rocky_9_4_extras_version: 20240816T002610
4040
stackhpc_pulp_repo_rocky_9_4_highavailability_version: 20240816T002610
4141
stackhpc_pulp_repo_rocky_9_sig_security_common_version: 20240718T001130
42-
stackhpc_pulp_repo_ubuntu_cloud_archive_version: 20240902T130724
43-
stackhpc_pulp_repo_ubuntu_jammy_security_version: 20240901T094519
44-
stackhpc_pulp_repo_ubuntu_jammy_version: 20240901T094519
42+
stackhpc_pulp_repo_ubuntu_cloud_archive_version: 20240911T041957
43+
stackhpc_pulp_repo_ubuntu_jammy_security_version: 20240911T063424
44+
stackhpc_pulp_repo_ubuntu_jammy_version: 20240911T063424

etc/kayobe/stackhpc-overcloud-dib.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ stackhpc_overcloud_dib_name: "deployment_image"
2323
stackhpc_overcloud_dib_elements:
2424
- "{{ os_distribution }}-{% if os_distribution == 'rocky' %}container-stackhpc{% else %}minimal{% endif %}"
2525
- "cloud-init-datasources"
26-
- "{% if os_distribution == 'rocky' %}disable-selinux{% endif %}"
26+
- "{% if os_distribution == 'rocky' %}selinux-permissive{% endif %}"
2727
- "enable-serial-console"
28-
- "{% if kayobe_environment == 'ci-builder' %}etc-hosts{% endif %}"
2928
- "vm"
3029
- "block-device-efi"
3130
- "cloud-init"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
features:
3+
- |
4+
The StackHPC overcloud host images have been rebuilt using new packages for
5+
the Caracal release.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
upgrade:
3+
- |
4+
Enables SELinux in permissive mode in the overcloud host image. This
5+
matches the default configuration for SELinux in StackHPC Kayobe Configuration.

0 commit comments

Comments
 (0)