Skip to content

TF Nutanix Provider Warning: Disabled Providers: ndb, foundation. #1097

@darthVikes

Description

@darthVikes

Issue: Provider always emits “Disabled Providers: ndb, foundation” warning with no way to disable or configure them

Provider Version

nutanix/nutanix v2.3.0
nutanix/nutanix v2.4.0

Terraform Version

(Insert your version here, e.g. 1.6.x)


Summary

When using the Nutanix Terraform provider, Terraform always emits the following warning:

Warning: Disabled Providers: ndb, foundation. Please provide required fields in provider configuration to enable them. Refer docs.

This happens even when:

  • No NDB or Foundation functionality is used
  • No configuration for NDB or Foundation exists
  • No configuration can be provided (the schema does not expose any fields for them)
  • The provider block is otherwise valid

There is no supported way to disable or configure these sub‑providers, so the warning cannot be resolved.


Minimal Reproduction

main.tf

terraform {
  required_providers {
    nutanix = {
      source  = "nutanix/nutanix"
      version = "2.4.0"
    }
  }
}

provider "nutanix" {
  endpoint     = "https://example"
  username     = "admin"
  password     = "password"
  insecure     = false
  port         = 443
  wait_timeout = 20
}

Terraform Output

Warning: Disabled Providers: ndb, foundation. Please provide required fields in provider configuration to enable them. Refer docs.

What I Expected

No warning should appear unless the user explicitly enables or configures NDB or Foundation.


What Actually Happens

Terraform warns that NDB and Foundation are “disabled,” even though:

  • The provider schema does not expose any configuration for them
  • The user cannot enable or disable them
  • The warning appears on every run (plan/apply)
  • The warning persists across provider versions 2.3.0 and 2.4.0

Attempts to configure or disable these modules fail:

Unsupported blocks:

foundation { }
ndb { }

Error:

Blocks of type "foundation" are not expected here.

Unsupported arguments:

foundation_enabled = false
ndb_enabled        = false

Error:

Unsupported argument

Impact

  • The warning is noisy and misleading
  • It suggests misconfiguration even when the provider is correctly configured
  • It cannot be suppressed or resolved by the user
  • It causes confusion in CI/CD pipelines where warnings are treated as signals of misconfiguration

Request

Please either:

  1. Remove the warning when NDB/Foundation are not explicitly configured
    or
  2. Expose proper configuration/disable flags for these optional modules
    or
  3. Update documentation to clarify the expected behavior

Additional Notes

This behavior appears to be caused by the provider internally registering optional API clients for Foundation and NDB, which Terraform interprets as sub‑providers that are “disabled,” even though the schema does not expose them.


If you'd like, I can help you add labels, a title variant, or a short reproduction repo to make the issue even stronger.

Warning Message:

------------------------------------------

Warning: Disabled Providers: ndb, foundation. Please provide required fields in provider configuration to enable them. Refer docs.

with provider["registry.terraform.io/nutanix/nutanix"],
on setup.tf line 182, in provider "nutanix":
182: provider "nutanix" {

------------------------------------------

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