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

Update host-ctr Go dependencies #337

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

piyush-jena
Copy link
Contributor

@piyush-jena piyush-jena commented Jan 6, 2025

Description of changes:
Updated Go dependencies with:

go get -u github.com/containerd/[email protected] ./...
go mod tidy
go mod vendor

I manually held back github.com/containerd/errdefs since v0.2.0 changes the interfaces and breaks builds for the vendor code as referenced in #146.

Testing done:
Built aws-k8s-1.30 for aarch64 and x86_64 and validated that host containers where pulled with no errors in the logs. Both control and admin container pulled and I was able to SSM and check the journal on both.

For x86_64, aws-k8s-1.30

[root@admin]# sheltie
bash-5.1# journalctl -u host-containers@admin
Jan 23 19:46:33 xxxxxxxxx.us-west-2.compute.internal systemd[1]: Started Host container: admin.
Jan 23 19:46:33 xxxxxxxxx.us-west-2.compute.internal host-containers@admin[1862]: time="2025-01-23T19:46:33Z" level=info msg="Image does not exist, proceeding to pull image from source." ref="ecr.aws/arn:aws:ecr:us-west-2:328549459982:repository/bottlerocket-admin:v0.11.16"
Jan 23 19:46:33 xxxxxxxxx.us-west-2.compute.internal host-containers@admin[1862]: time="2025-01-23T19:46:33Z" level=info msg="pulling with Amazon ECR Resolver" ref="ecr.aws/arn:aws:ecr:us-west-2:328549459982:repository/bottlerocket-admin:v0.11.16"
Jan 23 19:46:34 xxxxxxxxx.us-west-2.compute.internal host-containers@admin[1862]: time="2025-01-23T19:46:34Z" level=info msg="pulled image successfully" img="ecr.aws/arn:aws:ecr:us-west-2:328549459982:repository/bottlerocket-admin:v0.11.16"
Jan 23 19:46:34 xxxxxxxxx.us-west-2.compute.internal host-containers@admin[1862]: time="2025-01-23T19:46:34Z" level=info msg="unpacking image..." img="ecr.aws/arn:aws:ecr:us-west-2:328549459982:repository/bottlerocket-admin:v0.11.16"
Jan 23 19:46:37 xxxxxxxxx.us-west-2.compute.internal host-containers@admin[1862]: time="2025-01-23T19:46:37Z" level=info msg="tagging image" img="328549459982.dkr.ecr.us-west-2.amazonaws.com/bottlerocket-admin:v0.11.16"
Jan 23 19:46:37 xxxxxxxxx.us-west-2.compute.internal host-containers@admin[1862]: time="2025-01-23T19:46:37Z" level=info msg="Container does not exist, proceeding to create it" ctr-id=admin
Jan 23 19:46:37 xxxxxxxxx.us-west-2.compute.internal host-containers@admin[1862]: time="2025-01-23T19:46:37Z" level=info msg="container task does not exist, proceeding to create it" container-id=admin
Jan 23 19:46:37 xxxxxxxxx.us-west-2.compute.internal host-containers@admin[1862]: time="2025-01-23T19:46:37Z" level=info msg="successfully started container task"
Jan 23 19:46:37 xxxxxxxxx.us-west-2.compute.internal host-containers@admin[1862]: Created symlink /root/.config/systemd/user/admin.target.wants/[email protected], pointing to /etc/systemd/user/[email protected].
Jan 23 19:46:37 xxxxxxxxx.us-west-2.compute.internal host-containers@admin[1862]: Created symlink /root/.config/systemd/user/admin.target.wants/[email protected], pointing to /etc/systemd/user/[email protected].
Jan 23 19:46:37 xxxxxxxxx.us-west-2.compute.internal host-containers@admin[1862]: Created symlink /root/.config/systemd/user/admin.target.wants/sshd.service, pointing to /etc/systemd/user/sshd.service.
Jan 23 19:46:38 xxxxxxxxx.us-west-2.compute.internal host-containers@admin[1862]: Startup finished in 35ms.
bash-5.1# journalctl -u host-containers@control
Jan 23 19:45:38 xxxxxxxxx.us-west-2.compute.internal systemd[1]: Started Host container: control.
Jan 23 19:45:39 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: time="2025-01-23T19:45:39Z" level=info msg="Image does not exist, proceeding to pull image from source." ref="ecr.aws/arn:aws:ecr:us-west-2:328549459982:repository/bottlerocket-control:v0.7.20"
Jan 23 19:45:39 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: time="2025-01-23T19:45:39Z" level=info msg="pulling with Amazon ECR Resolver" ref="ecr.aws/arn:aws:ecr:us-west-2:328549459982:repository/bottlerocket-control:v0.7.20"
Jan 23 19:45:41 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: time="2025-01-23T19:45:41Z" level=info msg="pulled image successfully" img="ecr.aws/arn:aws:ecr:us-west-2:328549459982:repository/bottlerocket-control:v0.7.20"
Jan 23 19:45:41 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: time="2025-01-23T19:45:41Z" level=info msg="unpacking image..." img="ecr.aws/arn:aws:ecr:us-west-2:328549459982:repository/bottlerocket-control:v0.7.20"
Jan 23 19:45:48 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: time="2025-01-23T19:45:48Z" level=info msg="tagging image" img="328549459982.dkr.ecr.us-west-2.amazonaws.com/bottlerocket-control:v0.7.20"
Jan 23 19:45:48 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: time="2025-01-23T19:45:48Z" level=info msg="Container does not exist, proceeding to create it" ctr-id=control
Jan 23 19:45:48 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: time="2025-01-23T19:45:48Z" level=info msg="container task does not exist, proceeding to create it" container-id=control
Jan 23 19:45:48 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: time="2025-01-23T19:45:48Z" level=info msg="successfully started container task"
Jan 23 19:45:49 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: Error occurred fetching the seelog config file path:  open /etc/amazon/ssm/seelog.xml: no such file or directory
Jan 23 19:45:49 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: Initializing new seelog logger
Jan 23 19:45:49 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: New Seelog Logger Creation Complete
Jan 23 19:45:49 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: 2025-01-23 19:45:49.0238 INFO Proxy environment variables:
Jan 23 19:45:49 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: 2025-01-23 19:45:49.0238 INFO https_proxy:
Jan 23 19:45:49 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: 2025-01-23 19:45:49.0238 INFO http_proxy:
Jan 23 19:45:49 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: 2025-01-23 19:45:49.0238 INFO no_proxy: localhost,127.0.0.1,.cluster.local
Jan 23 19:45:49 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: 2025-01-23 19:45:49.0238 INFO Checking if agent identity type OnPrem can be assumed
Jan 23 19:45:49 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: 2025-01-23 19:45:49.0239 INFO Checking if agent identity type EC2 can be assumed
Jan 23 19:45:49 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: 2025-01-23 19:45:49.0440 INFO Agent will take identity from EC2
Jan 23 19:45:49 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: 2025-01-23 19:45:49.0455 INFO [amazon-ssm-agent] amazon-ssm-agent - v3.3.1345.0
Jan 23 19:45:49 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: 2025-01-23 19:45:49.0456 INFO [amazon-ssm-agent] OS: linux, Arch: amd64
Jan 23 19:45:49 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: 2025-01-23 19:45:49.0456 INFO [amazon-ssm-agent] Starting Core Agent
Jan 23 19:45:49 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: 2025-01-23 19:45:49.0456 INFO [amazon-ssm-agent] Registrar detected. Attempting registration
Jan 23 19:45:49 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: 2025-01-23 19:45:49.0456 INFO [Registrar] Starting registrar module
Jan 23 19:45:49 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: 2025-01-23 19:45:49.0473 INFO [EC2Identity] Checking disk for registration info
Jan 23 19:45:49 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: 2025-01-23 19:45:49.0474 INFO [EC2Identity] No registration info found for ec2 instance, attempting registration
Jan 23 19:45:49 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: 2025-01-23 19:45:49.0474 INFO [EC2Identity] Generating registration keypair
Jan 23 19:45:49 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: 2025-01-23 19:45:49.2169 INFO [EC2Identity] Checking write access before registering
Jan 23 19:45:49 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: 2025-01-23 19:45:49.2173 INFO [EC2Identity] Registering EC2 instance with Systems Manager
Jan 23 19:45:49 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: 2025-01-23 19:45:49.2782 INFO [EC2Identity] EC2 registration was successful.
Jan 23 19:45:49 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: 2025-01-23 19:45:49.2782 INFO [amazon-ssm-agent] Registration attempted. Resuming core agent startup.
Jan 23 19:45:49 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: 2025-01-23 19:45:49.2783 INFO [CredentialRefresher] credentialRefresher has started
Jan 23 19:45:49 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: 2025-01-23 19:45:49.2783 INFO [CredentialRefresher] Starting credentials refresher loop
Jan 23 19:45:49 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: 2025-01-23 19:45:49.3034 INFO EC2RoleProvider Successfully connected with instance profile role credentials
Jan 23 19:45:49 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: 2025-01-23 19:45:49.3048 INFO [CredentialRefresher] Credentials ready
Jan 23 19:45:49 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: 2025-01-23 19:45:49.3066 INFO [CredentialRefresher] Next credential rotation will be in 29.99994731545 minutes
Jan 23 19:45:50 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: 2025-01-23 19:45:50.3076 INFO [amazon-ssm-agent] [LongRunningWorkerContainer] [WorkerProvider] Worker ssm-agent-worker is not running, starting worker process
Jan 23 19:45:50 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: 2025-01-23 19:45:50.3078 INFO [amazon-ssm-agent] [LongRunningWorkerContainer] [WorkerProvider] Worker ssm-agent-worker (pid:23) started
Jan 23 19:45:50 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1411]: 2025-01-23 19:45:50.3079 INFO [amazon-ssm-agent] [LongRunningWorkerContainer] Monitor long running worker health every 60 seconds

For aarch64, aws-k8s-1.30

[root@admin]# sheltie
bash-5.1# journalctl -u host-containers@admin
Jan 23 21:08:21 xxxxxxxxx.us-west-2.compute.internal systemd[1]: Started Host container: admin.
Jan 23 21:08:21 xxxxxxxxx.us-west-2.compute.internal host-containers@admin[2151]: time="2025-01-23T21:08:21Z" level=info msg="Image does not exist, proceeding to pull image from source." ref="ecr.aws/arn:aws:ecr:us-west-2:328549459982:repository/bottlerocket-admin:v0.11.16"
Jan 23 21:08:21 xxxxxxxxx.us-west-2.compute.internal host-containers@admin[2151]: time="2025-01-23T21:08:21Z" level=info msg="pulling with Amazon ECR Resolver" ref="ecr.aws/arn:aws:ecr:us-west-2:328549459982:repository/bottlerocket-admin:v0.11.16"
Jan 23 21:08:22 xxxxxxxxx.us-west-2.compute.internal host-containers@admin[2151]: time="2025-01-23T21:08:22Z" level=info msg="pulled image successfully" img="ecr.aws/arn:aws:ecr:us-west-2:328549459982:repository/bottlerocket-admin:v0.11.16"
Jan 23 21:08:22 xxxxxxxxx.us-west-2.compute.internal host-containers@admin[2151]: time="2025-01-23T21:08:22Z" level=info msg="unpacking image..." img="ecr.aws/arn:aws:ecr:us-west-2:328549459982:repository/bottlerocket-admin:v0.11.16"
Jan 23 21:08:23 xxxxxxxxx.us-west-2.compute.internal host-containers@admin[2151]: time="2025-01-23T21:08:23Z" level=info msg="tagging image" img="328549459982.dkr.ecr.us-west-2.amazonaws.com/bottlerocket-admin:v0.11.16"
Jan 23 21:08:23 xxxxxxxxx.us-west-2.compute.internal host-containers@admin[2151]: time="2025-01-23T21:08:23Z" level=info msg="Container does not exist, proceeding to create it" ctr-id=admin
Jan 23 21:08:23 xxxxxxxxx.us-west-2.compute.internal host-containers@admin[2151]: time="2025-01-23T21:08:23Z" level=info msg="container task does not exist, proceeding to create it" container-id=admin
Jan 23 21:08:23 xxxxxxxxx.us-west-2.compute.internal host-containers@admin[2151]: time="2025-01-23T21:08:23Z" level=info msg="successfully started container task"
Jan 23 21:08:23 xxxxxxxxx.us-west-2.compute.internal host-containers@admin[2151]: Created symlink /root/.config/systemd/user/admin.target.wants/[email protected], pointing to /etc/systemd/user/[email protected].
Jan 23 21:08:23 xxxxxxxxx.us-west-2.compute.internal host-containers@admin[2151]: Created symlink /root/.config/systemd/user/admin.target.wants/[email protected], pointing to /etc/systemd/user/[email protected].
Jan 23 21:08:23 xxxxxxxxx.us-west-2.compute.internal host-containers@admin[2151]: Created symlink /root/.config/systemd/user/admin.target.wants/sshd.service, pointing to /etc/systemd/user/sshd.service.
Jan 23 21:08:24 xxxxxxxxx.us-west-2.compute.internal host-containers@admin[2151]: Startup finished in 88ms.
bash-5.1# journalctl -u host-containers@control
Jan 23 21:06:49 xxxxxxxxx.us-west-2.compute.internal systemd[1]: Started Host container: control.
Jan 23 21:06:51 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: time="2025-01-23T21:06:51Z" level=info msg="Image does not exist, proceeding to pull image from source." ref="ecr.aws/arn:aws:ecr:us-west-2:328549459982:repository/bottlerocket-control:v0.7.20"
Jan 23 21:06:51 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: time="2025-01-23T21:06:51Z" level=info msg="pulling with Amazon ECR Resolver" ref="ecr.aws/arn:aws:ecr:us-west-2:328549459982:repository/bottlerocket-control:v0.7.20"
Jan 23 21:06:52 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: time="2025-01-23T21:06:52Z" level=info msg="pulled image successfully" img="ecr.aws/arn:aws:ecr:us-west-2:328549459982:repository/bottlerocket-control:v0.7.20"
Jan 23 21:06:52 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: time="2025-01-23T21:06:52Z" level=info msg="unpacking image..." img="ecr.aws/arn:aws:ecr:us-west-2:328549459982:repository/bottlerocket-control:v0.7.20"
Jan 23 21:06:55 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: time="2025-01-23T21:06:55Z" level=info msg="tagging image" img="328549459982.dkr.ecr.us-west-2.amazonaws.com/bottlerocket-control:v0.7.20"
Jan 23 21:06:55 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: time="2025-01-23T21:06:55Z" level=info msg="Container does not exist, proceeding to create it" ctr-id=control
Jan 23 21:06:55 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: time="2025-01-23T21:06:55Z" level=info msg="container task does not exist, proceeding to create it" container-id=control
Jan 23 21:06:55 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: time="2025-01-23T21:06:55Z" level=info msg="successfully started container task"
Jan 23 21:06:56 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: Error occurred fetching the seelog config file path:  open /etc/amazon/ssm/seelog.xml: no such file or directory
Jan 23 21:06:56 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: Initializing new seelog logger
Jan 23 21:06:56 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: New Seelog Logger Creation Complete
Jan 23 21:06:56 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: 2025-01-23 21:06:56.0383 INFO Proxy environment variables:
Jan 23 21:06:56 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: 2025-01-23 21:06:56.0384 INFO https_proxy:
Jan 23 21:06:56 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: 2025-01-23 21:06:56.0384 INFO http_proxy:
Jan 23 21:06:56 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: 2025-01-23 21:06:56.0384 INFO no_proxy: localhost,127.0.0.1,.cluster.local
Jan 23 21:06:56 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: 2025-01-23 21:06:56.0384 INFO Checking if agent identity type OnPrem can be assumed
Jan 23 21:06:56 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: 2025-01-23 21:06:56.0384 INFO Checking if agent identity type EC2 can be assumed
Jan 23 21:06:56 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: 2025-01-23 21:06:56.0553 INFO Agent will take identity from EC2
Jan 23 21:06:56 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: 2025-01-23 21:06:56.0565 INFO [amazon-ssm-agent] amazon-ssm-agent - v3.3.1345.0
Jan 23 21:06:56 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: 2025-01-23 21:06:56.0565 INFO [amazon-ssm-agent] OS: linux, Arch: arm64
Jan 23 21:06:56 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: 2025-01-23 21:06:56.0565 INFO [amazon-ssm-agent] Starting Core Agent
Jan 23 21:06:56 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: 2025-01-23 21:06:56.0565 INFO [amazon-ssm-agent] Registrar detected. Attempting registration
Jan 23 21:06:56 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: 2025-01-23 21:06:56.0565 INFO [Registrar] Starting registrar module
Jan 23 21:06:56 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: 2025-01-23 21:06:56.0577 INFO [EC2Identity] Checking disk for registration info
Jan 23 21:06:56 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: 2025-01-23 21:06:56.0578 INFO [EC2Identity] No registration info found for ec2 instance, attempting registration
Jan 23 21:06:56 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: 2025-01-23 21:06:56.0578 INFO [EC2Identity] Generating registration keypair
Jan 23 21:06:56 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: 2025-01-23 21:06:56.7003 INFO [EC2Identity] Checking write access before registering
Jan 23 21:06:56 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: 2025-01-23 21:06:56.7007 INFO [EC2Identity] Registering EC2 instance with Systems Manager
Jan 23 21:06:56 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: 2025-01-23 21:06:56.7517 INFO [EC2Identity] EC2 registration was successful.
Jan 23 21:06:56 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: 2025-01-23 21:06:56.7518 INFO [amazon-ssm-agent] Registration attempted. Resuming core agent startup.
Jan 23 21:06:56 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: 2025-01-23 21:06:56.7518 INFO [CredentialRefresher] credentialRefresher has started
Jan 23 21:06:56 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: 2025-01-23 21:06:56.7519 INFO [CredentialRefresher] Starting credentials refresher loop
Jan 23 21:06:56 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: 2025-01-23 21:06:56.7861 INFO EC2RoleProvider Successfully connected with instance profile role credentials
Jan 23 21:06:56 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: 2025-01-23 21:06:56.7869 INFO [CredentialRefresher] Credentials ready
Jan 23 21:06:56 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: 2025-01-23 21:06:56.7871 INFO [CredentialRefresher] Next credential rotation will be in 29.999983927266666 minutes
Jan 23 21:06:57 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: 2025-01-23 21:06:57.7879 INFO [amazon-ssm-agent] [LongRunningWorkerContainer] [WorkerProvider] Worker ssm-agent-worker is not running, starting worker process
Jan 23 21:06:57 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: 2025-01-23 21:06:57.7881 INFO [amazon-ssm-agent] [LongRunningWorkerContainer] [WorkerProvider] Worker ssm-agent-worker (pid:26) started
Jan 23 21:06:57 xxxxxxxxx.us-west-2.compute.internal host-containers@control[1313]: 2025-01-23 21:06:57.7882 INFO [amazon-ssm-agent] [LongRunningWorkerContainer] Monitor long running worker health every 60 seconds

Terms of contribution:

By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.

@piyush-jena piyush-jena marked this pull request as ready for review January 8, 2025 09:23
Comment on lines -3 to +5
go 1.22.0
go 1.23.0

toolchain go1.22.2
toolchain go1.23.3
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry, but I'm a Golang toolchain novice. Do we actually want to bump the version of the go compiler used here?

Are these values informed by requirements of our dependencies, or do we get to control them?

Copy link
Contributor Author

@piyush-jena piyush-jena Jan 16, 2025

Choose a reason for hiding this comment

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

I am a novice too. But I can explain the reason why I did that.

I installed golang version 1.22.x in my system. Then ran,

go get -u github.com/containerd/[email protected] ./...
go mod tidy
go mod vendor

With golang 1.22 none of the packages were updates but I did get a lot of warnings saying 1.23.0+ version is required. Upgrading golang to 1.23 and running the above commands updated the versions of the required packages. I was able to force update a required package with golang 1.22 by running go get -u xxxxxx but since the package in question is an indirect package I opted for the other method (also golang 1.23 is available in sdk which made me more confident).

To make sure, I ran all the required tests and everything worked as expected. The logs are attached.

@vigh-m
Copy link
Contributor

vigh-m commented Jan 22, 2025

The current containerd version that we ship is v1.7.24. Can you re-run this update with that version and validate the diff

@piyush-jena piyush-jena force-pushed the go_updates branch 3 times, most recently from f6c9a29 to a426cfd Compare January 23, 2025 21:20
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.

3 participants