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

Image not found #5348

Open
thiDucTran opened this issue Dec 23, 2024 · 1 comment
Open

Image not found #5348

thiDucTran opened this issue Dec 23, 2024 · 1 comment
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@thiDucTran
Copy link
Contributor

/kind bug

What steps did you take and what happened:
The CAPZ project publishes reference images to a community gallery. But as mentioned at the top of this document, they are the default. You don't need to specify a custom image section in your template to use the reference images.

  • When I tried, You don't need to specify a custom image section in your template I get the error message below
E1223 19:34:23.246198       1 controller.go:324] "Reconciler error" err="failed to init machine scope cache: failed to get default image: no VM image found for publisher \"cncf-upstream\" offer \"capi\" sku \"ubuntu-2204-gen1\" with Kubernetes version \"v1.31.4\"" controller="azuremachine" controllerGroup="infrastructure.cluster.x-k8s.io" controllerKind="AzureMachine" AzureMachine="default/capz-etcd-control-plane-76mlv" namespace="default" name="capz-etcd-control-plane-76mlv" reconcileID="1dacf88e-0b0c-48b9-86c1-2d6ed22adb62" 
  • When I do try to use the Community Gallery. I get GalleryImageNotFound . In the error it clearly saying not found in northcentralus region..but I do see it as available (see screenshot) and yaml below
    image
      image:
        computeGallery:
          name: "ClusterAPI-f72ceb4f-5159-4c26-a0fe-2ea738f0d019"
          gallery: "capi-ubun2-2404"
          version: "1.31.4"
E1223 19:12:04.367109       1 controller.go:324] "Reconciler error" err=<
        failed to reconcile AzureMachine: failed to reconcile AzureMachine service virtualmachine: failed to create or update resource thi-poc-capz-etcd/capz-etcd-control-plane-2g5dd (service: virtualmachine): PUT https://management.azure.com/subscriptions/123/resourceGroups/abc/providers/Microsoft.Compute/virtualMachines/capz-etcd-control-plane-2g5dd
        --------------------------------------------------------------------------------
        RESPONSE 404: 404 Not Found
        ERROR CODE: GalleryImageNotFound
        --------------------------------------------------------------------------------
        {
          "error": {
            "code": "GalleryImageNotFound",
            "message": "\"The gallery image /CommunityGalleries/capi-ubun2-2404/Images/ClusterAPI-f72ceb4f-5159-4c26-a0fe-2ea738f0d019/Versions/1.31.4 is not available in northcentralus region. Please contact image owner to replicate to this region, or change your requested region.\"",
            "target": "imageReference"
          }
        }
        --------------------------------------------------------------------------------

What did you expect to happen:
The CAPZ project publishes reference images to a community gallery. But as mentioned at the top of this document, they are the default. You don't need to specify a custom image section in your template to use the reference images.

Environment:

  • cluster-api-provider-azure version
    image
  • Kubernetes version: (use kubectl version): v1.30.6
  • OS (e.g. from /etc/os-release): 20.04.6 LTS (Focal Fossa)
  • clusterctl: v1.9.3
@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Dec 23, 2024
@thiDucTran
Copy link
Contributor Author

thiDucTran commented Dec 23, 2024

wait.... isn't the gallery supposed to be ClusterAPI-f72ceb4f-5159-4c26-a0fe-2ea738f0d019 ? I copied and pasted from the doc and didn't double check just now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
Status: Todo
Development

No branches or pull requests

2 participants