Skip to content

Timeout while listing subnets in Nutanix Prism #9677

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

Open
asshutossh opened this issue Apr 24, 2025 · 1 comment
Open

Timeout while listing subnets in Nutanix Prism #9677

asshutossh opened this issue Apr 24, 2025 · 1 comment

Comments

@asshutossh
Copy link

asshutossh commented Apr 24, 2025

This is the installer being used:
./openshift-install 4.18.9 built from commit d765baafafd7093c4a68e4cf96c9affb3839a109 release image quay.io/openshift-release-dev/ocp-release@sha256:720f89718effd16de7d77e5533c9608f1845295a2e00dfff543d0cf9aa09b2a0 release architecture amd64

The installation seems to run into a timeout. See the subnets are being paginated as there are 331 total subnets:
`

./openshift-install create install-config
? SSH Public Key /home/key.pub
? Platform nutanix
? Prism Central xyz.local
? Port 9440
? Username username
? Password [? for help] *********************
INFO Connecting to Prism Central prism_address
? Prism Element PE_Dummy
2025/04/24 14:56:42 [Debug] total=331, remaining=231, offset=100 len(entities)=100
2025/04/24 14:57:00 [Debug] total=331, remaining=131, offset=200 len(entities)=200

FATAL failed to fetch Install Config: failed to fetch dependency of "Install Config": failed to fetch dependency of "Base Domain": failed t o generate asset "Platform": unable to list subnets: Post "https://l:9440/api/nutanix/v3/subnets/list": context deadline

`
Could it be that the subnet listing is timing out after 60 seconds?
https://github.com/openshift/installer/blob/81f7a7e6af4fe5915ba5a3ebdac7bb27d98b613f/pkg/asset/installconfig/nutanix/nutanix.go:


func getSubnet(ctx context.Context, client *nutanixclientv3.Client, peUUID string) (string, error) {
  ctx, cancel := context.WithTimeout(ctx, 60*time.Second)
  defer cancel()
 
  emptyFilter := ""
  emptyClientFilters := make([]*nutanixclient.AdditionalFilter, 0)
  subnetsAll, err := client.V3.ListAllSubnet(ctx, emptyFilter, emptyClientFilters)
  if err != nil {
    return "", errors.Wrap(err, "unable to list subnets")
  }
 
  subnets := subnetsAll.Entities
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

No branches or pull requests

1 participant