Skip to content

Conversation

@salasberryfin
Copy link
Contributor

Change description

This is an attempt at fixing an error that occurs when the url task is called before a symbolic link to /usr/local/bin/ctr is created. This task tries to execute /usr/bin/ctr before it is available in the path and it fails to build the image.

The issue was identified in the job periodic-cluster-api-provider-gcp-make-conformance-main-ci-artifacts (Prow job history), which is one of the recently reported jobs in the Kubernetes organization that have been failing for a long time.

When building the image for cluster-api-provider-gcp with kubernetes_source_type == "http" and kubernetes_cni_source_type == "http", the job outputs the following error:

"/bin/sh: 1: /usr/bin/ctr: not found"

A full log can be found here.

The proposed fix places the creation of the symlink right after containerd is installed. If this is not considered the correct approach, we can look for other alternatives to avoid calling tasks that invoke /usr/bin/ctr before it is available.

cc @justinsb @damdo @cpanato

Related issues

  • Fixes #

Additional context

This originated from @justinsb's investigation kubernetes-sigs/cluster-api-provider-gcp#1529 (comment)

Signed-off-by: Carlos Salas <carlos.salas@suse.com>
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jan 26, 2026
Copy link
Member

@damdo damdo left a comment

Choose a reason for hiding this comment

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

/approve

/hold

For other reviews, thanks @salasberryfin

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 26, 2026
@damdo
Copy link
Member

damdo commented Jan 26, 2026

/assign @cpanato @justinsb

Copy link
Contributor

@drew-viles drew-viles left a comment

Choose a reason for hiding this comment

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

/ok-to-test
/lgtm

@k8s-ci-robot k8s-ci-robot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Feb 9, 2026
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 9, 2026
@damdo
Copy link
Member

damdo commented Feb 9, 2026

/test pull-azure-vhds

Copy link
Member

@cpanato cpanato left a comment

Choose a reason for hiding this comment

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

/approve
/lgtm

@salasberryfin
Copy link
Contributor Author

@damdo I think you have a hold on this, are we ready to remove it?

@damdo
Copy link
Member

damdo commented Feb 10, 2026

/unhold

Thanks @salasberryfin

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 10, 2026
@damdo
Copy link
Member

damdo commented Feb 10, 2026

/assign @drew-viles @mboersma

For approval

Thanks!

Copy link
Contributor

@drew-viles drew-viles left a comment

Choose a reason for hiding this comment

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

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cpanato, damdo, drew-viles

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

The pull request process is described here

Details 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 Feb 10, 2026
@k8s-ci-robot k8s-ci-robot merged commit d7f8aa3 into kubernetes-sigs:main Feb 10, 2026
10 checks passed
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. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants