Skip to content
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

Add Ubuntu 24.04 LTS for Azure #1454

Merged
merged 1 commit into from
May 7, 2024

Conversation

mboersma
Copy link
Contributor

Change description

Adds support for Ubuntu 24.04-based builds on Azure.

Related issues

Additional context

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 26, 2024
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Apr 26, 2024
@mboersma
Copy link
Contributor Author

mboersma commented Apr 26, 2024

The two targets build-azure-sig-ubuntu-2404-cvm and build-azure-sig-ubuntu-2404-gen2 are failing:

% PACKER_LOG=1 noproxy=* make -C images/capi build-azure-sig-ubuntu-2404-gen2
hack/ensure-python.sh
Checking if python is available
Python 3.12.3
...
2024/04/26 10:07:34 On error: 

A build command cannot run without at least one build to process. If the only or
except flags have been specified at run time check that at least one build is
selected for execution.

Error: No builds to run

A build command cannot run without at least one build to process. If the only or
2024/04/26 10:07:34 [INFO] (telemetry) Finalizing.
except flags have been specified at run time check that at least one build is
selected for execution.


2024/04/26 10:07:34 waiting for all plugin processes to complete...
make: *** [build-azure-sig-ubuntu-2404-gen2] Error 1

I'm having trouble figuring out where this is going wrong. The other new targets all work. Any help would be appreciated!

Edit: fixed, see below

@mboersma mboersma changed the title Add support for Ubuntu 24.04 LTS on Azure [WIP] Add support for Ubuntu 24.04 LTS on Azure Apr 26, 2024
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 26, 2024
@mboersma mboersma changed the title [WIP] Add support for Ubuntu 24.04 LTS on Azure [WIP] Add Ubuntu 24.04 LTS for Azure Apr 30, 2024
@mboersma mboersma added the kind/feature Categorizes issue or PR as related to a new feature. label May 1, 2024
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels May 3, 2024
@mboersma
Copy link
Contributor Author

mboersma commented May 3, 2024

Still getting Error: No builds to run on make build-azure-sig-ubuntu-2404-cvm and make build-azure-sig-ubuntu-2404-gen2. I'm failing to figure out why--any clues would be much appreciated!

Edit: never mind, I finally realized the build_name in the new JSON files hadn't been updated to match the new targets. Seems to work now. 😆

@mboersma
Copy link
Contributor Author

mboersma commented May 3, 2024

/retitle Add Ubuntu 24.04 LTS for Azure

@k8s-ci-robot k8s-ci-robot changed the title [WIP] Add Ubuntu 24.04 LTS for Azure Add Ubuntu 24.04 LTS for Azure May 3, 2024
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 3, 2024
SIG_CVM_TARGETS="ubuntu-2004 ubuntu-2204 windows-2019-containerd windows-2022-containerd"
SIG_CVM_CI_TARGETS="ubuntu-2204 windows-2022-containerd"
VHD_TARGETS="ubuntu-2004 ubuntu-2204 ubuntu-2404 centos-7 mariner-2 rhel-8 windows-2019-containerd windows-2022-containerd"
VHD_CI_TARGETS="ubuntu-2204 ubuntu-2404 mariner-2 windows-2019-containerd windows-2022-containerd"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I traded Ubuntu 20.04 for 24.04 in CI, not wanting to expand our costs per PR run. But please let me know if this doesn't seem like a worthwhile tradeoff.

@@ -488,7 +488,7 @@ $(AZURE_BUILD_SIG_GEN2_TARGETS): deps-azure

.PHONY: $(AZURE_BUILD_SIG_CVM_TARGETS)
$(AZURE_BUILD_SIG_CVM_TARGETS): deps-azure
. $(abspath packer/azure/scripts/init-sig.sh) $(subst build-azure-sig-,,$@) && packer build $(if $(findstring windows,$@),$(PACKER_WINDOWS_NODE_FLAGS),$(PACKER_NODE_FLAGS)) -var-file="$(abspath packer/azure/azure-config.json)" -var-file="$(abspath packer/azure/azure-sig-cvm.json)" -var-file="$(abspath packer/azure/$(subst build-azure-sig-,,$@).json)" -only="$(subst build-azure-,,$@)" $(ABSOLUTE_PACKER_VAR_FILES) packer/azure/packer$(findstring -windows,$@).json
. $(abspath packer/azure/scripts/init-sig.sh) $(subst build-azure-sig-,,$@) && $(PACKER) build $(if $(findstring windows,$@),$(PACKER_WINDOWS_NODE_FLAGS),$(PACKER_NODE_FLAGS)) -var-file="$(abspath packer/azure/azure-config.json)" -var-file="$(abspath packer/azure/azure-sig-cvm.json)" -var-file="$(abspath packer/azure/$(subst build-azure-sig-,,$@).json)" -only="$(subst build-azure-,,$@)" $(ABSOLUTE_PACKER_VAR_FILES) packer/azure/packer$(findstring -windows,$@).json
Copy link
Member

Choose a reason for hiding this comment

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

Nice catch! 👍

Copy link
Member

@AverageMarcus AverageMarcus left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 7, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: AverageMarcus

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 7, 2024
@k8s-ci-robot k8s-ci-robot merged commit 5e8e692 into kubernetes-sigs:main May 7, 2024
13 checks passed
@mboersma mboersma deleted the azure-ubuntu-2404 branch May 7, 2024 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants