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 AMI ID #1475

Merged

Conversation

jayfranco999
Copy link
Collaborator

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

As we pinned the base AMI ids for ubuntu 22.04, this PR tracks and updates the latest base AMI id of ubuntu 22.04 AMD64

Tested locally and successfully:

TARGETS
========

updateVersion
-------------

**Dry Run enabled**

✔ - no change detected:
        * key "$.aws.ubuntu.'22.04'.amd64" already set to "ami-00eb69d236edcfaf8", from file "./images-versions.yaml"


ACTIONS
========


=============================

SUMMARY:



✔ Bump aws `ubuntu 22.04 AMD64` image version:
        Source:
                ✔ [lastReleaseVersion] Get the latest `ubuntu 22.04 AMD64` AMI ID
        Target:
                ✔ [updateVersion] Update aws `ubuntu 22.04 AMD64` AMI ID in locals


Run Summary
===========
Pipeline(s) run:
  * Changed:    0
  * Failed:     0
  * Skipped:    0
  * Succeeded:  1
  * Total:      1

Signed-off-by: jayfranco999 <[email protected]>
@jayfranco999
Copy link
Collaborator Author

jayfranco999 commented Oct 25, 2024

Logs on infra.ci indicate that we need an IAM user for updatecli with aws credentials and required permissions (ex. "ec2:DescribeInstances" ) to perform the required task –
https://infra.ci.jenkins.io/job/updatecli/job/packer-images/job/PR-1475/1/pipeline-console/log?nodeId=18

[2024-10-25T06:59:10.764Z] ###############################################
[2024-10-25T06:59:10.764Z] # BUMP AWS `UBUNTU 22.04 AMD64` IMAGE VERSION #
[2024-10-25T06:59:10.764Z] ###############################################
[2024-10-25T06:59:10.764Z] 
[2024-10-25T06:59:10.764Z] 
[2024-10-25T06:59:10.764Z] SOURCES
[2024-10-25T06:59:10.764Z] =======
[2024-10-25T06:59:10.764Z] 
[2024-10-25T06:59:10.764Z] lastReleaseVersion
[2024-10-25T06:59:10.764Z] ------------------
[2024-10-25T06:59:10.764Z] ERROR: environment variable "AWS_ACCESS_KEY_ID" not found, skipping
[2024-10-25T06:59:10.764Z] ERROR: environment variable "AWS_SECRET_ACCESS_KEY" not found, skipping
[2024-10-25T06:59:20.690Z] The shell 🐚 command "/bin/sh /tmp/updatecli/bin/5486cb61c1b00f9c390de3c8d04cf835502ed46fc7cdc0495a77e22d34179ea4.sh" exited on error (exit code 253) with the following output:
[2024-10-25T06:59:20.690Z] ----
[2024-10-25T06:59:20.690Z] ----
[2024-10-25T06:59:20.690Z] 
[2024-10-25T06:59:20.690Z] command stderr output was:
[2024-10-25T06:59:20.690Z] ----

Signed-off-by: jayfranco999 <[email protected]>
@jayfranco999 jayfranco999 marked this pull request as draft October 25, 2024 07:27
@jayfranco999
Copy link
Collaborator Author

Converted to draft till IAM updatecli user is created.

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.

[2024-10-28T16:03:27.199Z] ✔ - no change detected:
[2024-10-28T16:03:27.199Z] 	* key "$.aws.ubuntu.'22.04'.amd64" already set to "ami-00eb69d236edcfaf8", from file "./images-versions.yaml"

LGTM!

@dduportal dduportal merged commit d90edf2 into jenkins-infra:main Oct 28, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants