Skip to content

jobs/kola-azure: run kola tests on new Gen2 Gallery Images #1153

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

Merged
merged 1 commit into from
May 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ clouds:
test_resource_group: fedora-coreos-testing
test_storage_account: fedoracoreostesting
test_storage_container: fedora-coreos-testing-image-blobs
test_gallery: fedora-coreos-testing-gallery
test_architectures: [x86_64]
Copy link
Member

Choose a reason for hiding this comment

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

As a followup to this I'd really like to start testing aarch64 so we'd change this line (or possibly remove the functionality if it's no longer needed).

Copy link
Member Author

Choose a reason for hiding this comment

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

I built an aarch64 image and ran a vm with it yesterday using coreos/coreos-assembler@fd81647. I'll open a PR to cosa after coreos/coreos-assembler#4109 merges.

gcp:
bucket: fedora-coreos-cloud-image-uploads/image-import
Expand Down
25 changes: 16 additions & 9 deletions jobs/kola-azure.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,18 @@ cosaPod(memory: "${cosa_memory_request_mb}Mi", kvm: false,
def azure_testing_resource_group = pipecfg.clouds?.azure?.test_resource_group
def azure_testing_storage_account = pipecfg.clouds?.azure?.test_storage_account
def azure_testing_storage_container = pipecfg.clouds?.azure?.test_storage_container
def azure_testing_gallery = pipecfg.clouds?.azure?.test_gallery

stage('Upload/Create Image') {
// Create the image in Azure
shwrap("""
# First delete the blob/image since we re-use it.
ore azure delete-image --log-level=INFO \
ore azure delete-gallery-image --log-level=INFO \
--azure-credentials \${AZURE_KOLA_TESTS_CONFIG} \
--azure-location $region \
--resource-group ${azure_testing_resource_group} \
--image-name ${azure_image_name}
--resource-group $azure_testing_resource_group \
--gallery-name $azure_testing_gallery \
--gallery-image-name $azure_image_name
ore azure delete-blob --log-level=INFO \
--azure-credentials \${AZURE_KOLA_TESTS_CONFIG} \
--azure-location $region \
Expand All @@ -120,11 +122,15 @@ cosaPod(memory: "${cosa_memory_request_mb}Mi", kvm: false,
--container $azure_testing_storage_container \
--blob-name $azure_image_name \
--file ${azure_image_filepath}
ore azure create-image --log-level=INFO \
# Create a fresh gallery image. Note that this will
# create the testing gallery if it does not exist, but
# it will be a no-op on gallery creation given the
# gallery exists in the specified region.
ore azure create-gallery-image --log-level=INFO
--azure-credentials \${AZURE_KOLA_TESTS_CONFIG} \
--resource-group $azure_testing_resource_group \
--azure-location $region \
--image-name $azure_image_name \
--resource-group $azure_testing_resource_group \
--gallery-image-name $azure_image_name \
--image-blob "https://${azure_testing_storage_account}.blob.core.windows.net/${azure_testing_storage_container}/${azure_image_name}"
""")
}
Expand All @@ -141,16 +147,17 @@ cosaPod(memory: "${cosa_memory_request_mb}Mi", kvm: false,
platformArgs: """-p=azure \
--azure-credentials \${AZURE_KOLA_TESTS_CONFIG} \
--azure-location $region \
--azure-disk-uri /subscriptions/${azure_subscription}/resourceGroups/${azure_testing_resource_group}/providers/Microsoft.Compute/images/${azure_image_name}""")
--azure-disk-uri /subscriptions/${azure_subscription}/resourceGroups/${azure_testing_resource_group}/providers/Microsoft.Compute/galleries/${azure_testing_gallery}/images/${azure_image_name}/versions/1.0.0""")
} finally {
parallel "Delete Image": {
// Delete the image in Azure
shwrap("""
ore azure delete-image --log-level=INFO \
ore azure delete-gallery-image --log-level=INFO \
--azure-credentials \${AZURE_KOLA_TESTS_CONFIG} \
--azure-location $region \
--resource-group $azure_testing_resource_group \
--image-name $azure_image_name
--gallery-name $azure_testing_gallery \
--gallery-image-name $azure_image_name
ore azure delete-blob --log-level=INFO \
--azure-credentials \${AZURE_KOLA_TESTS_CONFIG} \
--azure-location $region \
Expand Down