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

chore(updatecli):Track ubuntu 22_04 AMD64 AZ images #1507

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jayfranco999
Copy link
Collaborator

As per jenkins-infra/helpdesk#4365 (comment)

This PR pins and tracks the latest AZ image for ubuntu 22_04 AMD64

Signed-off-by: jayfranco999 <[email protected]>
Signed-off-by: jayfranco999 <[email protected]>
Signed-off-by: jayfranco999 <[email protected]>
Signed-off-by: jayfranco999 <[email protected]>
@jayfranco999 jayfranco999 marked this pull request as draft November 11, 2024 17:24
@jayfranco999 jayfranco999 changed the title chore(updatecli):Track ubuntu 22_04 AMD64 images chore(updatecli):Track ubuntu 22_04 AMD64 AZ images Nov 11, 2024
@@ -17,6 +17,7 @@ build {
image_publisher = "canonical"
# List available SKUs with the command `az vm image list-skus --offer 0001-com-ubuntu-server-jammy --location eastus --publisher canonical --output table`
image_sku = local.az_instance_image_sku[var.architecture]
image_version = try(local.images_versions["azure"]["ubuntu"][var.agent_os_version][var.architecture], "N/A")
Copy link
Contributor

@dduportal dduportal Nov 12, 2024

Choose a reason for hiding this comment

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

This line looks good to me 👍
Current image version in the YAML images definition file is latest. As such, the CI check uses the expected "latest" reference:

-> SourceImageName: '/subscriptions/****/providers/Microsoft.Compute/locations/eastus2/publishers/canonical/ArtifactTypes/vmimage/offers/0001-com-ubuntu-server-jammy/skus/22_04-lts-gen2/versions/latest'

Copy link
Contributor

@dduportal dduportal left a comment

Choose a reason for hiding this comment

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

Good work! Still some work is needed:

  • Blocker: fix the updatecli errors. It looks like the source responds with an empty string on the CI. Not sure if it is an updatecli error, AZ credential error, or something else.
  • Rebase the PR against the latest main reference

Comment on lines +37 to +39
transformers:
- addprefix: '"'
- addsuffix: '"'
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you test locally? If yes what was the result for your test?

On the CI side, it fails with the following error:

ERROR: something went wrong in "target#updateVersion" : something went wrong in target "updateVersion" : "validation error: transformer input is empty"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants