Skip to content

Caracal Ubuntu Noble support #1595

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 21 commits into
base: stackhpc/2024.1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .automation.conf/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ if [ ! -z ${KAYOBE_ENVIRONMENT:+x} ]; then
if [[ "$KAYOBE_ENVIRONMENT" =~ "aio" ]]; then
# Seem to get servers failing to spawn with higher concurrency
export TEMPEST_CONCURRENCY=1
# NOTE(seunghun1ee): Current Ubuntu Noble kernel 6.8.0-57-generic has a bug
# https://bugs.launchpad.net/ubuntu/+source/linux-meta-oracle-6.8/+bug/2104178
# which blocks attaching interfaces to neutron routers in OVS system.
# Ignoring sets of tests failing because of this until kernel fix is released.
export KAYOBE_AUTOMATION_TEMPEST_SKIPLIST=ci-aio-tempest-refstack
Comment on lines +28 to +32
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't remember, did we decide to switch to the older images from master?

fi

if [[ "$KAYOBE_ENVIRONMENT" =~ "ci-multinode" ]]; then
Expand Down
8 changes: 8 additions & 0 deletions .automation.conf/tempest/skip-lists/ci-aio-tempest-refstack
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
tempest.api.compute.servers.test_create_server.ServersTestJSON.test_host_name_is_same_as_server_name: "Ubuntu Noble kernel 6.8.0-57-generic has bug that doesn't work wtih OVS system https://bugs.launchpad.net/ubuntu/+source/linux-meta-oracle-6.8/+bug/2104178"
tempest.api.compute.servers.test_create_server.ServersTestJSON.test_verify_created_server_vcpus: "Ubuntu Noble kernel 6.8.0-57-generic has bug that doesn't work wtih OVS system https://bugs.launchpad.net/ubuntu/+source/linux-meta-oracle-6.8/+bug/2104178"
tempest.api.compute.servers.test_create_server.ServersTestManualDisk.test_host_name_is_same_as_server_name: "Ubuntu Noble kernel 6.8.0-57-generic has bug that doesn't work wtih OVS system https://bugs.launchpad.net/ubuntu/+source/linux-meta-oracle-6.8/+bug/2104178"
tempest.api.compute.servers.test_create_server.ServersTestManualDisk.test_verify_created_server_vcpus: "Ubuntu Noble kernel 6.8.0-57-generic has bug that doesn't work wtih OVS system https://bugs.launchpad.net/ubuntu/+source/linux-meta-oracle-6.8/+bug/2104178"
tempest.api.compute.servers.test_server_actions.ServerActionsTestJSON.test_lock_unlock_server: "Ubuntu Noble kernel 6.8.0-57-generic has bug that doesn't work wtih OVS system https://bugs.launchpad.net/ubuntu/+source/linux-meta-oracle-6.8/+bug/2104178"
tempest.api.compute.servers.test_server_actions.ServerActionsTestJSON.test_reboot_server_hard: "Ubuntu Noble kernel 6.8.0-57-generic has bug that doesn't work wtih OVS system https://bugs.launchpad.net/ubuntu/+source/linux-meta-oracle-6.8/+bug/2104178"
tempest.api.compute.servers.test_server_actions.ServerActionsTestJSON.test_rebuild_server: "Ubuntu Noble kernel 6.8.0-57-generic has bug that doesn't work wtih OVS system https://bugs.launchpad.net/ubuntu/+source/linux-meta-oracle-6.8/+bug/2104178"
tempest.api.compute.servers.test_server_actions.ServerActionsTestJSON.test_stop_start_server: "Ubuntu Noble kernel 6.8.0-57-generic has bug that doesn't work wtih OVS system https://bugs.launchpad.net/ubuntu/+source/linux-meta-oracle-6.8/+bug/2104178"
66 changes: 65 additions & 1 deletion .github/workflows/ipa-image-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
description: Build Ubuntu 22.04 Jammy
type: boolean
default: true
ubuntu-noble:
description: Build Ubuntu 24.04 Noble
type: boolean
default: true
runner_env:
description: Which cloud to run on?
type: choice
Expand Down Expand Up @@ -271,6 +275,65 @@ jobs:
KAYOBE_VAULT_PASSWORD: ${{ secrets.KAYOBE_VAULT_PASSWORD }}
if: inputs.ubuntu-jammy && steps.build_ubuntu_jammy_ipa.outcome == 'success'

- name: Build a Ubuntu 24.04 Noble IPA image
id: build_ubuntu_noble_ipa
continue-on-error: true
run: |
source venvs/kayobe/bin/activate &&
source src/kayobe-config/kayobe-env --environment ci-builder &&
kayobe overcloud deployment image build --force-rebuild \
-e os_distribution="ubuntu" \
-e os_release="noble" \
-e ipa_ci_builder_distribution="ubuntu" \
-e ipa_ci_builder_release="noble"
env:
KAYOBE_VAULT_PASSWORD: ${{ secrets.KAYOBE_VAULT_PASSWORD }}
if: inputs.ubuntu-noble

- name: Show last error logs
continue-on-error: true
run: |
source venvs/kayobe/bin/activate &&
source src/kayobe-config/kayobe-env --environment ci-builder &&
kayobe seed host command run --command "tail -200 /opt/kayobe/images/ipa/ipa.stdout" --show-output
env:
KAYOBE_VAULT_PASSWORD: ${{ secrets.KAYOBE_VAULT_PASSWORD }}
if: steps.build_ubuntu_noble_ipa.outcome == 'failure'

- name: Upload Ubuntu 24.04 Noble IPA kernel image to Ark
run: |
source venvs/kayobe/bin/activate &&
source src/kayobe-config/kayobe-env --environment ci-builder &&
kayobe playbook run \
src/kayobe-config/etc/kayobe/ansible/pulp-artifact-upload.yml \
-e artifact_path=/opt/kayobe/images/ipa \
-e artifact_type=ipa-images \
-e artifact_tag=${{ steps.ipa_image_tag.outputs.ipa_image_tag }} \
-e os_distribution="ubuntu" \
-e os_release="noble" \
-e file_regex='*.kernel' \
-e upload_checksum=true
env:
KAYOBE_VAULT_PASSWORD: ${{ secrets.KAYOBE_VAULT_PASSWORD }}
if: inputs.ubuntu-noble && steps.build_ubuntu_noble_ipa.outcome == 'success'

- name: Upload Ubuntu 24.04 Noble IPA ramdisk image to Ark
run: |
source venvs/kayobe/bin/activate &&
source src/kayobe-config/kayobe-env --environment ci-builder &&
kayobe playbook run \
src/kayobe-config/etc/kayobe/ansible/pulp-artifact-upload.yml \
-e artifact_path=/opt/kayobe/images/ipa \
-e artifact_type=ipa-images \
-e artifact_tag=${{ steps.ipa_image_tag.outputs.ipa_image_tag }} \
-e os_distribution="ubuntu" \
-e os_release="noble" \
-e file_regex='*.initramfs' \
-e upload_checksum=true
env:
KAYOBE_VAULT_PASSWORD: ${{ secrets.KAYOBE_VAULT_PASSWORD }}
if: inputs.ubuntu-noble && steps.build_ubuntu_noble_ipa.outcome == 'success'

- name: Build a Rocky 9 IPA image
id: build_rocky_9_ipa
continue-on-error: true
Expand Down Expand Up @@ -348,7 +411,8 @@ jobs:
echo "Builds failed. See workflow artifacts for details." &&
exit 1
if: steps.build_rocky_9_ipa.outcome == 'failure' ||
steps.build_ubuntu_jammy_ipa.outcome == 'failure'
steps.build_ubuntu_jammy_ipa.outcome == 'failure' ||
steps.build_ubuntu_noble_ipa.outcome == 'failure'

- name: Destroy
run: terraform destroy -auto-approve
Expand Down
20 changes: 19 additions & 1 deletion .github/workflows/ipa-image-promote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
description: Promote Ubuntu 22.04 Jammy
type: boolean
default: true
ubuntu-noble:
description: Promote Ubuntu 24.04 Noble
type: boolean
default: true
image_tag:
description: Tag to promote
type: string
Expand All @@ -25,7 +29,7 @@ jobs:
steps:
- name: Validate inputs
run: |
if [[ ${{ inputs.rocky9 }} == 'false' && ${{ inputs.ubuntu-jammy }} == 'false' ]]; then
if [[ ${{ inputs.rocky9 }} == 'false' && ${{ inputs.ubuntu-jammy }} == 'false' && ${{ inputs.ubuntu-noble }} == 'false' ]]; then
echo "At least one distribution must be selected"
exit 1
fi
Expand Down Expand Up @@ -98,3 +102,17 @@ jobs:
ARTIFACT_TAG: ${{ inputs.image_tag }}
KAYOBE_VAULT_PASSWORD: ${{ secrets.KAYOBE_VAULT_PASSWORD }}
if: inputs.ubuntu-jammy

- name: Promote Ubuntu Noble 24.04 IPA image artifact
run: |
source venvs/kayobe/bin/activate &&
source src/kayobe-config/kayobe-env --environment ci-builder &&
kayobe playbook run \
src/kayobe-config/etc/kayobe/ansible/pulp-artifact-promote.yml \
-e artifact_type="ipa-images" \
-e os_distribution='ubuntu' \
-e os_release='noble'
env:
ARTIFACT_TAG: ${{ inputs.image_tag }}
KAYOBE_VAULT_PASSWORD: ${{ secrets.KAYOBE_VAULT_PASSWORD }}
if: inputs.ubuntu-noble
2 changes: 2 additions & 0 deletions .github/workflows/multinode-inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ class Scenario:

ROCKY_9 = OSRelease("rocky", "9", "cloud-user")
UBUNTU_JAMMY = OSRelease("ubuntu", "jammy", "ubuntu")
UBUNTU_NOBLE = OSRelease("ubuntu", "noble", "ubuntu")
# NOTE(upgrade): Add supported releases here.
OPENSTACK_RELEASES = [
OpenStackRelease("2024.1", "2023.1", [ROCKY_9, UBUNTU_JAMMY]),
OpenStackRelease("2023.1", "zed", [ROCKY_9, UBUNTU_JAMMY]),
OpenStackRelease("master", "2024.1", [ROCKY_9, UBUNTU_NOBLE])
]
NEUTRON_PLUGINS = ["ovs", "ovn"]

Expand Down
78 changes: 76 additions & 2 deletions .github/workflows/overcloud-host-image-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
description: Build Ubuntu 22.04 Jammy
type: boolean
default: true
ubuntu-noble:
description: Build Ubuntu 24.04 Noble
type: boolean
default: true
runner_env:
description: Which cloud to run on?
type: choice
Expand Down Expand Up @@ -48,7 +52,7 @@ jobs:
steps:
- name: Validate inputs
run: |
if [[ ${{ inputs.rocky9 }} == 'false' && ${{ inputs.ubuntu-jammy }} == 'false' ]]; then
if [[ ${{ inputs.rocky9 }} == 'false' && ${{ inputs.ubuntu-jammy }} == 'false' && ${{ inputs.ubuntu-noble }} == 'false' ]]; then
echo "At least one distribution must be selected"
exit 1
fi
Expand Down Expand Up @@ -360,6 +364,75 @@ jobs:
OS_APPLICATION_CREDENTIAL_SECRET: ${{ secrets.OS_APPLICATION_CREDENTIAL_SECRET_OTHER_CLOUD }}
if: inputs.ubuntu-jammy && steps.build_ubuntu_jammy.outcome == 'success'

- name: Build an Ubuntu Noble 24.04 overcloud host image
id: build_ubuntu_noble
continue-on-error: true
run: |
source venvs/kayobe/bin/activate &&
source src/kayobe-config/kayobe-env --environment ci-builder &&
kayobe overcloud host image build --force-rebuild \
-e os_distribution="ubuntu" \
-e os_release="noble" \
-e stackhpc_overcloud_dib_name=overcloud-ubuntu-noble
env:
KAYOBE_VAULT_PASSWORD: ${{ secrets.KAYOBE_VAULT_PASSWORD }}
if: inputs.ubuntu-noble

- name: Show last error logs
continue-on-error: true
run: |
source venvs/kayobe/bin/activate &&
source src/kayobe-config/kayobe-env --environment ci-builder &&
kayobe seed host command run --command "tail -200 /opt/kayobe/images/overcloud-ubuntu-noble/overcloud-ubuntu-noble.stdout" --show-output
env:
KAYOBE_VAULT_PASSWORD: ${{ secrets.KAYOBE_VAULT_PASSWORD }}
if: steps.build_ubuntu_noble.outcome == 'failure'

- name: Upload Ubuntu Noble 24.04 overcloud host image to Ark
run: |
source venvs/kayobe/bin/activate &&
source src/kayobe-config/kayobe-env --environment ci-builder &&
kayobe playbook run \
src/kayobe-config/etc/kayobe/ansible/pulp-artifact-upload.yml \
-e artifact_path=/opt/kayobe/images/overcloud-ubuntu-noble \
-e artifact_tag=${{ steps.host_image_tag.outputs.host_image_tag }} \
-e artifact_type="kayobe-images" \
-e file_regex="*.qcow2" \
-e os_distribution="ubuntu" \
-e os_release="noble"
env:
KAYOBE_VAULT_PASSWORD: ${{ secrets.KAYOBE_VAULT_PASSWORD }}
if: inputs.ubuntu-noble && steps.build_ubuntu_noble.outcome == 'success'

- name: Upload Ubuntu Noble overcloud host image to current Dev Cloud (SMS/Leafcloud)
run: |
source venvs/kayobe/bin/activate &&
source src/kayobe-config/kayobe-env --environment ci-builder &&
kayobe playbook run \
src/kayobe-config/etc/kayobe/ansible/openstack-host-image-upload.yml \
-e local_image_path="/opt/kayobe/images/overcloud-ubuntu-noble/overcloud-ubuntu-noble.qcow2" \
-e image_name=overcloud-ubuntu-noble-${{ steps.host_image_tag.outputs.host_image_tag }}
env:
CLOUDS_YAML: ${{ secrets.CLOUDS_YAML }}
OS_APPLICATION_CREDENTIAL_ID: ${{ secrets.OS_APPLICATION_CREDENTIAL_ID }}
OS_APPLICATION_CREDENTIAL_SECRET: ${{ secrets.OS_APPLICATION_CREDENTIAL_SECRET }}
if: inputs.ubuntu-noble && steps.build_ubuntu_noble.outcome == 'success'

- name: Upload Ubuntu Noble overcloud host image to other Dev Cloud (Leafcloud/SMS)
run: |
source venvs/kayobe/bin/activate &&
source src/kayobe-config/kayobe-env --environment ci-builder &&
kayobe playbook run \
src/kayobe-config/etc/kayobe/ansible/openstack-host-image-upload.yml \
-e local_image_path="/opt/kayobe/images/overcloud-ubuntu-noble/overcloud-ubuntu-noble.qcow2" \
-e image_name=overcloud-ubuntu-noble-${{ steps.host_image_tag.outputs.host_image_tag }}
env:
CLOUDS_YAML: ${{ secrets.CLOUDS_YAML_OTHER_CLOUD }}
OS_APPLICATION_CREDENTIAL_ID: ${{ secrets.OS_APPLICATION_CREDENTIAL_ID_OTHER_CLOUD }}
OS_APPLICATION_CREDENTIAL_SECRET: ${{ secrets.OS_APPLICATION_CREDENTIAL_SECRET_OTHER_CLOUD }}
if: inputs.ubuntu-noble && steps.build_ubuntu_noble.outcome == 'success'


- name: Copy logs back
continue-on-error: true
run: |
Expand All @@ -373,7 +446,8 @@ jobs:
echo "Builds failed. See workflow artifacts for details." &&
exit 1
if: steps.build_rocky_9.outcome == 'failure' ||
steps.build_ubuntu_jammy.outcome == 'failure'
steps.build_ubuntu_jammy.outcome == 'failure' ||
steps.build_ubuntu_noble.outcome == 'failure'

- name: Upload logs artifact
uses: actions/upload-artifact@v4
Expand Down
20 changes: 19 additions & 1 deletion .github/workflows/overcloud-host-image-promote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
description: Promote Ubuntu 22.04 Jammy
type: boolean
default: true
ubuntu-noble:
description: Promote Ubuntu 24.04 Noble
type: boolean
default: true
image_tag:
description: Tag to promote
type: string
Expand All @@ -25,7 +29,7 @@ jobs:
steps:
- name: Validate inputs
run: |
if [[ ${{ inputs.rocky9 }} == 'false' && ${{ inputs.ubuntu-jammy }} == 'false' ]]; then
if [[ ${{ inputs.rocky9 }} == 'false' && ${{ inputs.ubuntu-jammy }} == 'false' && ${{ inputs.ubuntu-noble }} == 'false' ]]; then
echo "At least one distribution must be selected"
exit 1
fi
Expand Down Expand Up @@ -98,3 +102,17 @@ jobs:
ARTIFACT_TAG: ${{ inputs.image_tag }}
KAYOBE_VAULT_PASSWORD: ${{ secrets.KAYOBE_VAULT_PASSWORD }}
if: inputs.ubuntu-jammy

- name: Promote Ubuntu Noble 24.04 overcloud host image artifact
run: |
source venvs/kayobe/bin/activate &&
source src/kayobe-config/kayobe-env --environment ci-builder &&
kayobe playbook run \
src/kayobe-config/etc/kayobe/ansible/pulp-artifact-promote.yml \
-e artifact_type="kayobe-images" \
-e os_distribution='ubuntu' \
-e os_release='noble'
env:
ARTIFACT_TAG: ${{ inputs.image_tag }}
KAYOBE_VAULT_PASSWORD: ${{ secrets.KAYOBE_VAULT_PASSWORD }}
if: inputs.ubuntu-noble
51 changes: 50 additions & 1 deletion .github/workflows/overcloud-host-image-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
description: Upload Ubuntu 22.04 Jammy
type: boolean
default: true
ubuntu-noble:
description: Upload Ubuntu 24.04 Noble
type: boolean
default: true
kayobe-environment:
description: Kayobe environment to use
type: string
Expand Down Expand Up @@ -50,7 +54,7 @@ jobs:
steps:
- name: Validate inputs
run: |
if [[ ${{ inputs.rocky9 }} == 'false' && ${{ inputs.ubuntu-jammy }} == 'false' ]]; then
if [[ ${{ inputs.rocky9 }} == 'false' && ${{ inputs.ubuntu-jammy }} == 'false' && ${{ inputs.ubuntu-noble }} == 'false' ]]; then
echo "At least one distribution must be selected"
exit 1
fi
Expand Down Expand Up @@ -185,3 +189,48 @@ jobs:
OS_APPLICATION_CREDENTIAL_ID: ${{ secrets.OS_APPLICATION_CREDENTIAL_ID }}
OS_APPLICATION_CREDENTIAL_SECRET: ${{ secrets.OS_APPLICATION_CREDENTIAL_SECRET }}
if: inputs.ubuntu-jammy && steps.ubuntu_jammy_image_exists.outcome == 'failure'

- name: Output Ubuntu Noble image tag
id: ubuntu_noble_image_tag
run: |
echo image_tag=$(grep stackhpc_ubuntu_noble_overcloud_host_image_version: src/kayobe-config/etc/kayobe/pulp-host-image-versions.yml | awk '{print $2}') >> $GITHUB_OUTPUT
- name: Check if image exists already
id: ubuntu_noble_image_exists
run: |
source venvs/kayobe/bin/activate &&
openstack image show \
overcloud-ubuntu-noble-${{ steps.ubuntu_noble_image_tag.outputs.image_tag }}
env:
OS_CLOUD: openstack
OS_APPLICATION_CREDENTIAL_ID: ${{ secrets.OS_APPLICATION_CREDENTIAL_ID }}
OS_APPLICATION_CREDENTIAL_SECRET: ${{ secrets.OS_APPLICATION_CREDENTIAL_SECRET }}
continue-on-error: true

- name: Download Ubuntu Noble 24.04 overcloud host image from Ark
run: |
source venvs/kayobe/bin/activate &&
source src/kayobe-config/kayobe-env --environment ${{ inputs.kayobe-environment }} &&
kayobe playbook run \
src/kayobe-config/etc/kayobe/ansible/pulp-host-image-download.yml \
-e os_distribution="ubuntu" \
-e os_release="noble"
env:
KAYOBE_VAULT_PASSWORD: ${{ secrets.KAYOBE_VAULT_PASSWORD }}
if: inputs.ubuntu-noble && steps.ubuntu_noble_image_exists.outcome == 'failure'

- name: Upload Ubuntu Noble 24.04 overcloud host image to Cloud
run: |
source venvs/kayobe/bin/activate &&
openstack image create \
overcloud-ubuntu-noble-${{ steps.ubuntu_noble_image_tag.outputs.image_tag }} \
--container-format bare \
--disk-format qcow2 \
--file /tmp/ubuntu-noble.qcow2 \
--private \
--progress
env:
OS_CLOUD: openstack
OS_APPLICATION_CREDENTIAL_ID: ${{ secrets.OS_APPLICATION_CREDENTIAL_ID }}
OS_APPLICATION_CREDENTIAL_SECRET: ${{ secrets.OS_APPLICATION_CREDENTIAL_SECRET }}
if: inputs.ubuntu-noble && steps.ubuntu_noble_image_exists.outcome == 'failure'
Loading
Loading