Skip to content

Error when building OS image for NutanixMachineTemplate resource #290

@jayesh-srivastava

Description

@jayesh-srivastava

/kind bug

What steps did you take and what happened:
Was trying to deploy a Nutanix workload cluster and had to give info for NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME in clusterctl.yaml. So in turn was trying to build an OS image for NutanixMachineTemplate resource. I was following https://image-builder.sigs.k8s.io/capi/providers/nutanix.html. Filled up the required info in nutanix.json file. Running $ make build-nutanix-ubuntu-2204 gives error:

nutanix: output will be in this color.

==> nutanix: Creating Packer Builder virtual machine...
==> nutanix: Error creating virtual machine request: error while findImageByUUID, Error error while findClusterByName, Post "https://gateway-external-api.cloud.nutanix.com:9440/api/nutanix/v3/clusters/list": dial tcp [2600:140f:5:991::181c]:9440: connect: operation timed out
Build 'nutanix' errored after 2 minutes 30 seconds: error while findImageByUUID, Error error while findClusterByName, Post "https://gateway-external-api.cloud.nutanix.com:9440/api/nutanix/v3/clusters/list": dial tcp [2600:140f:5:991::181c]:9440: connect: operation timed out

==> Wait completed after 2 minutes 30 seconds

==> Some builds didn't complete successfully and had errors:
--> nutanix: error while findImageByUUID, Error error while findClusterByName, Post "https://gateway-external-api.cloud.nutanix.com:9440/api/nutanix/v3/clusters/list": dial tcp [2600:140f:5:991::181c]:9440: connect: operation timed out

==> Builds finished but no artifacts were created.
make: *** [build-nutanix-ubuntu-2204] Error 1

What did you expect to happen:
I expected image build to work without any errors.

Anything else you would like to add:
I have created an NC2 cluster and launched the Prism Element Console but couldn't deploy a Prism Central Instance due to all the Prism Central versions being incompatible with the AOS version. The AOS version is 6.6.2.

Environment:

  • Cluster-api-provider-nutanix version:
  • Kubernetes version: (use kubectl version):
  • OS (e.g. from /etc/os-release):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions