nutanix-cloud-native / cluster-api-provider-nutanix

Kubernetes-native declarative infrastructure provider for Nutanix AHV
https://opendocs.nutanix.com/capx/latest/getting_started/
Apache License 2.0
42 stars 22 forks source link

Error when building OS image for NutanixMachineTemplate resource #290

Open jayesh-srivastava opened 1 year ago

jayesh-srivastava commented 1 year ago

/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:

nutanix-cn-prow-bot[bot] commented 1 year ago

@jayesh-srivastava: The label(s) kind/bug cannot be applied, because the repository doesn't have them.

In response to [this](https://github.com/nutanix-cloud-native/cluster-api-provider-nutanix/issues/290): >/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](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`): Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
tuxtof commented 1 year ago

@jayesh-srivastava any update ?

it seems you are even not able to connect to the cluster did IPv6 is expected here ?