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

RESTMapper client error when applying #203

Open
davidcodesido opened this issue Nov 6, 2024 · 4 comments
Open

RESTMapper client error when applying #203

davidcodesido opened this issue Nov 6, 2024 · 4 comments
Labels

Comments

@davidcodesido
Copy link

I've been struggling to get a connection with an AKS cluster that is already created. I'm using the terraform outputs of the resources creating the cluster as input variables for the provider in another set of resources to create some manifests. This is becoming an excruciating task. Tried hashicorp/kubernetes, gavin's kubectl and this provider. All with no success. Now I'm stuck on this error:


│ Error: Failed to get RESTMapper client

│ cannot create discovery client: no client config

The provider config looks like:

provider "kubectl" {
  load_config_file       = false
  host                   = var.aks_host
  username               = var.aks_username
  password               = var.aks_password
  client_certificate     = var.aks_client_certificate
  client_key             = var.aks_client_key
  cluster_ca_certificate = var.aks_cluster_ca_certificate

}

module "keyvaultstorageclasses" {
    source = "${var.repo_url}//src/keyvaultstorageclasses?ref=develop"
    project = var.project
    databases = local.databases
    namespace =  var.namespace
    aks_secret_identity_id = var.aks_secret_identity_id
    providers = {
        kubectl = kubectl
    }
}

And that module does this:

resource "kubectl_manifest" "vault-db-spc" {
  yaml_body = <<YAML
apiVersion: secrets-store.csi.x-k8s.io/v1
kind: SecretProviderClass
metadata:
  name: ${var.namespace}-vault
  namespace: ${var.namespace}
spec:
  provider: azure
  parameters:
    usePodIdentity: "false"
    useVMManagedIdentity: "true"         
    userAssignedIdentityID: ${var.aks_secret_identity_id}
    keyvaultName: "${var.project}-vault"
${templatefile("${path.module}/objects.tftpl",{databases = var.databases, namespace = var.namespace})}
    tenantId: ${data.azurerm_client_config.current.tenant_id}
${templatefile("${path.module}/secrets.tftpl",{databases = var.databases, namespace = var.namespace })}
YAML
}

Any idea what might be going on there?

@davidcodesido davidcodesido changed the title Error when applying RESTMapper client error when applying Nov 6, 2024
@alekc
Copy link
Owner

alekc commented Nov 6, 2024

try to run it with TF_LOG=trace and see if its using your vars for connection

@alekc alekc added the triage label Nov 6, 2024
@davidcodesido
Copy link
Author

davidcodesido commented Nov 6, 2024 via email

@davidcodesido
Copy link
Author

davidcodesido commented Nov 6, 2024

What I can tell is that those variables are properly displayed when I run terraform console. I can see the values of all of them if that helps.

Edit: This is extracted from the trace log:

2024-11-06T16:37:17.513+0100 [TRACE] (graphTransformerMulti) Completed graph transform *tofu.ProviderTransformer with new graph:
  local.databases (expand) - *tofu.nodeExpandLocal
  local.namespace_score (expand) - *tofu.nodeExpandLocal
  local.namespace_underscore (expand) - *tofu.nodeExpandLocal
  local.yaml_rg (expand) - *tofu.nodeExpandLocal
  module.database_mysql8_vault.azurerm_key_vault_secret.database_password - *tofu.NodeValidatableResource
    provider["registry.opentofu.org/hashicorp/azurerm"] - *tofu.NodeApplyableProvider
  module.database_mysql8_vault.azurerm_mysql_flexible_database.databases - *tofu.NodeValidatableResource
    provider["registry.opentofu.org/hashicorp/azurerm"] - *tofu.NodeApplyableProvider
  module.database_mysql8_vault.mysql_grant.grant - *tofu.NodeValidatableResource
    provider["registry.opentofu.org/petoju/mysql"].mysql8 - *tofu.NodeApplyableProvider
  module.database_mysql8_vault.mysql_user.users - *tofu.NodeValidatableResource
    provider["registry.opentofu.org/petoju/mysql"].mysql8 - *tofu.NodeApplyableProvider
  module.database_mysql8_vault.random_password.dbpassword - *tofu.NodeValidatableResource
    provider["registry.opentofu.org/hashicorp/random"] - *tofu.NodeApplyableProvider
  module.database_mysql8_vault.var.cluster_vault_id (expand) - *tofu.nodeExpandModuleVariable
  module.database_mysql8_vault.var.database (expand) - *tofu.nodeExpandModuleVariable
  module.database_mysql8_vault.var.resource_group_name (expand) - *tofu.nodeExpandModuleVariable
  module.database_mysql8_vault.var.server_name (expand) - *tofu.nodeExpandModuleVariable
  module.keyvaultstorageclasses.data.azurerm_client_config.current - *tofu.NodeValidatableResource
    provider["registry.opentofu.org/hashicorp/azurerm"] - *tofu.NodeApplyableProvider
  module.keyvaultstorageclasses.kubectl_manifest.vault-db-spc - *tofu.NodeValidatableResource
    provider["registry.opentofu.org/alekc/kubectl"] - *tofu.NodeApplyableProvider
  module.keyvaultstorageclasses.var.aks_secret_identity_id (expand) - *tofu.nodeExpandModuleVariable
  module.keyvaultstorageclasses.var.databases (expand) - *tofu.nodeExpandModuleVariable
  module.keyvaultstorageclasses.var.namespace (expand) - *tofu.nodeExpandModuleVariable
  module.keyvaultstorageclasses.var.project (expand) - *tofu.nodeExpandModuleVariable
  provider["registry.opentofu.org/alekc/kubectl"] - *tofu.NodeApplyableProvider
  provider["registry.opentofu.org/hashicorp/azurerm"] - *tofu.NodeApplyableProvider
  provider["registry.opentofu.org/hashicorp/kubernetes"] - *tofu.NodeApplyableProvider
  provider["registry.opentofu.org/hashicorp/random"] - *tofu.NodeApplyableProvider
  provider["registry.opentofu.org/petoju/mysql"] - *tofu.NodeApplyableProvider
  provider["registry.opentofu.org/petoju/mysql"].mysql8 - *tofu.NodeApplyableProvider
  var.administrator_password - *tofu.NodeRootVariable
  var.administrator_username - *tofu.NodeRootVariable
  var.aks_client_certificate - *tofu.NodeRootVariable
  var.aks_client_key - *tofu.NodeRootVariable
  var.aks_cluster_ca_certificate - *tofu.NodeRootVariable
  var.aks_host - *tofu.NodeRootVariable
  var.aks_password - *tofu.NodeRootVariable
  var.aks_secret_identity_id - *tofu.NodeRootVariable
  var.aks_username - *tofu.NodeRootVariable
  var.cluster_vault_id - *tofu.NodeRootVariable
  var.database_server_fqdn - *tofu.NodeRootVariable
  var.database_server_name - *tofu.NodeRootVariable
  var.filename - *tofu.NodeRootVariable
  var.namespace - *tofu.NodeRootVariable
  var.project - *tofu.NodeRootVariable
  var.repo_url - *tofu.NodeRootVariable
  var.resource_group_name - *tofu.NodeRootVariable
  var.subscription_id - *tofu.NodeRootVariable

[...]

2024-11-06T16:37:17.961+0100 [TRACE] Executing graph transform *tofu.TransitiveReductionTransformer
2024-11-06T16:37:17.962+0100 [TRACE] Completed graph transform *tofu.TransitiveReductionTransformer with new graph:
  local.databases (expand) - *tofu.nodeExpandLocal
    local.namespace_score (expand) - *tofu.nodeExpandLocal
    local.namespace_underscore (expand) - *tofu.nodeExpandLocal
    local.yaml_rg (expand) - *tofu.nodeExpandLocal
  local.namespace_score (expand) - *tofu.nodeExpandLocal
    var.namespace - *tofu.NodeRootVariable
  local.namespace_underscore (expand) - *tofu.nodeExpandLocal
    var.namespace - *tofu.NodeRootVariable
  local.yaml_rg (expand) - *tofu.nodeExpandLocal
    var.filename - *tofu.NodeRootVariable
  module.database_mysql8_vault (close) - *tofu.nodeCloseModule
    module.database_mysql8_vault.mysql_grant.grant - *tofu.NodeValidatableResource
  module.database_mysql8_vault (expand) - *tofu.nodeValidateModule
    local.databases (expand) - *tofu.nodeExpandLocal
  module.database_mysql8_vault.azurerm_key_vault_secret.database_password - *tofu.NodeValidatableResource
    module.database_mysql8_vault.random_password.dbpassword - *tofu.NodeValidatableResource
    module.database_mysql8_vault.var.cluster_vault_id (expand) - *tofu.nodeExpandModuleVariable
    module.database_mysql8_vault.var.database (expand) - *tofu.nodeExpandModuleVariable
    provider["registry.opentofu.org/hashicorp/azurerm"] - *tofu.NodeApplyableProvider
  module.database_mysql8_vault.azurerm_mysql_flexible_database.databases - *tofu.NodeValidatableResource
    module.database_mysql8_vault.var.database (expand) - *tofu.nodeExpandModuleVariable
    module.database_mysql8_vault.var.resource_group_name (expand) - *tofu.nodeExpandModuleVariable
    module.database_mysql8_vault.var.server_name (expand) - *tofu.nodeExpandModuleVariable
    provider["registry.opentofu.org/hashicorp/azurerm"] - *tofu.NodeApplyableProvider
  module.database_mysql8_vault.mysql_grant.grant - *tofu.NodeValidatableResource
    module.database_mysql8_vault.mysql_user.users - *tofu.NodeValidatableResource
  module.database_mysql8_vault.mysql_user.users - *tofu.NodeValidatableResource
    module.database_mysql8_vault.azurerm_key_vault_secret.database_password - *tofu.NodeValidatableResource
    module.database_mysql8_vault.azurerm_mysql_flexible_database.databases - *tofu.NodeValidatableResource
    provider["registry.opentofu.org/petoju/mysql"].mysql8 - *tofu.NodeApplyableProvider
  module.database_mysql8_vault.random_password.dbpassword - *tofu.NodeValidatableResource
    module.database_mysql8_vault (expand) - *tofu.nodeValidateModule
    provider["registry.opentofu.org/hashicorp/random"] - *tofu.NodeApplyableProvider
  module.database_mysql8_vault.var.cluster_vault_id (expand) - *tofu.nodeExpandModuleVariable
    module.database_mysql8_vault (expand) - *tofu.nodeValidateModule
    var.cluster_vault_id - *tofu.NodeRootVariable
  module.database_mysql8_vault.var.database (expand) - *tofu.nodeExpandModuleVariable
    module.database_mysql8_vault (expand) - *tofu.nodeValidateModule
  module.database_mysql8_vault.var.resource_group_name (expand) - *tofu.nodeExpandModuleVariable
    module.database_mysql8_vault (expand) - *tofu.nodeValidateModule
    var.resource_group_name - *tofu.NodeRootVariable
  module.database_mysql8_vault.var.server_name (expand) - *tofu.nodeExpandModuleVariable
    module.database_mysql8_vault (expand) - *tofu.nodeValidateModule
    var.database_server_name - *tofu.NodeRootVariable
  module.keyvaultstorageclasses (close) - *tofu.nodeCloseModule
    module.keyvaultstorageclasses.kubectl_manifest.vault-db-spc - *tofu.NodeValidatableResource
  module.keyvaultstorageclasses (expand) - *tofu.nodeValidateModule
  module.keyvaultstorageclasses.data.azurerm_client_config.current - *tofu.NodeValidatableResource
    module.keyvaultstorageclasses (expand) - *tofu.nodeValidateModule
    provider["registry.opentofu.org/hashicorp/azurerm"] - *tofu.NodeApplyableProvider
  module.keyvaultstorageclasses.kubectl_manifest.vault-db-spc - *tofu.NodeValidatableResource
    module.keyvaultstorageclasses.data.azurerm_client_config.current - *tofu.NodeValidatableResource
    module.keyvaultstorageclasses.var.aks_secret_identity_id (expand) - *tofu.nodeExpandModuleVariable
    module.keyvaultstorageclasses.var.databases (expand) - *tofu.nodeExpandModuleVariable
    module.keyvaultstorageclasses.var.namespace (expand) - *tofu.nodeExpandModuleVariable
    module.keyvaultstorageclasses.var.project (expand) - *tofu.nodeExpandModuleVariable
    provider["registry.opentofu.org/alekc/kubectl"] - *tofu.NodeApplyableProvider
  module.keyvaultstorageclasses.var.aks_secret_identity_id (expand) - *tofu.nodeExpandModuleVariable
    module.keyvaultstorageclasses (expand) - *tofu.nodeValidateModule
    var.aks_secret_identity_id - *tofu.NodeRootVariable
  module.keyvaultstorageclasses.var.databases (expand) - *tofu.nodeExpandModuleVariable
    local.databases (expand) - *tofu.nodeExpandLocal
    module.keyvaultstorageclasses (expand) - *tofu.nodeValidateModule
  module.keyvaultstorageclasses.var.namespace (expand) - *tofu.nodeExpandModuleVariable
    module.keyvaultstorageclasses (expand) - *tofu.nodeValidateModule
    var.namespace - *tofu.NodeRootVariable
  module.keyvaultstorageclasses.var.project (expand) - *tofu.nodeExpandModuleVariable
    module.keyvaultstorageclasses (expand) - *tofu.nodeValidateModule
    var.project - *tofu.NodeRootVariable
  provider["registry.opentofu.org/alekc/kubectl"] - *tofu.NodeApplyableProvider
    var.aks_client_certificate - *tofu.NodeRootVariable
    var.aks_client_key - *tofu.NodeRootVariable
    var.aks_cluster_ca_certificate - *tofu.NodeRootVariable
    var.aks_host - *tofu.NodeRootVariable
    var.aks_password - *tofu.NodeRootVariable
    var.aks_username - *tofu.NodeRootVariable
  provider["registry.opentofu.org/alekc/kubectl"] (close) - *tofu.graphNodeCloseProvider
    module.keyvaultstorageclasses.kubectl_manifest.vault-db-spc - *tofu.NodeValidatableResource
  provider["registry.opentofu.org/hashicorp/azurerm"] - *tofu.NodeApplyableProvider
    var.subscription_id - *tofu.NodeRootVariable
  provider["registry.opentofu.org/hashicorp/azurerm"] (close) - *tofu.graphNodeCloseProvider
    module.database_mysql8_vault.azurerm_key_vault_secret.database_password - *tofu.NodeValidatableResource
    module.database_mysql8_vault.azurerm_mysql_flexible_database.databases - *tofu.NodeValidatableResource
    module.keyvaultstorageclasses.data.azurerm_client_config.current - *tofu.NodeValidatableResource
  provider["registry.opentofu.org/hashicorp/random"] - *tofu.NodeApplyableProvider
  provider["registry.opentofu.org/hashicorp/random"] (close) - *tofu.graphNodeCloseProvider
    module.database_mysql8_vault.random_password.dbpassword - *tofu.NodeValidatableResource
  provider["registry.opentofu.org/petoju/mysql"].mysql8 - *tofu.NodeApplyableProvider
    var.administrator_password - *tofu.NodeRootVariable
    var.administrator_username - *tofu.NodeRootVariable
    var.database_server_fqdn - *tofu.NodeRootVariable
  provider["registry.opentofu.org/petoju/mysql"].mysql8 (close) - *tofu.graphNodeCloseProvider
    module.database_mysql8_vault.mysql_grant.grant - *tofu.NodeValidatableResource
  root - *tofu.nodeCloseModule
    module.database_mysql8_vault (close) - *tofu.nodeCloseModule
    module.keyvaultstorageclasses (close) - *tofu.nodeCloseModule
    provider["registry.opentofu.org/alekc/kubectl"] (close) - *tofu.graphNodeCloseProvider
    provider["registry.opentofu.org/hashicorp/azurerm"] (close) - *tofu.graphNodeCloseProvider
    provider["registry.opentofu.org/hashicorp/random"] (close) - *tofu.graphNodeCloseProvider
    provider["registry.opentofu.org/petoju/mysql"].mysql8 (close) - *tofu.graphNodeCloseProvider
    var.repo_url - *tofu.NodeRootVariable
  var.administrator_password - *tofu.NodeRootVariable
  var.administrator_username - *tofu.NodeRootVariable
  var.aks_client_certificate - *tofu.NodeRootVariable
  var.aks_client_key - *tofu.NodeRootVariable
  var.aks_cluster_ca_certificate - *tofu.NodeRootVariable
  var.aks_host - *tofu.NodeRootVariable
  var.aks_password - *tofu.NodeRootVariable
  var.aks_secret_identity_id - *tofu.NodeRootVariable
  var.aks_username - *tofu.NodeRootVariable
  var.cluster_vault_id - *tofu.NodeRootVariable
  var.database_server_fqdn - *tofu.NodeRootVariable
  var.database_server_name - *tofu.NodeRootVariable
  var.filename - *tofu.NodeRootVariable
  var.namespace - *tofu.NodeRootVariable
  var.project - *tofu.NodeRootVariable
  var.repo_url - *tofu.NodeRootVariable
  var.resource_group_name - *tofu.NodeRootVariable
  var.subscription_id - *tofu.NodeRootVariable
  ------
2024-11-06T16:58:34.142+0100 [DEBUG] Starting graph walk: walkValidate
2024-11-06T16:58:34.146+0100 [TRACE] vertex "var.resource_group_name": starting visit (*tofu.NodeRootVariable)
2024-11-06T16:58:34.146+0100 [TRACE] vertex "var.administrator_password": starting visit (*tofu.NodeRootVariable)
2024-11-06T16:58:34.146+0100 [TRACE] vertex "var.database_server_fqdn": starting visit (*tofu.NodeRootVariable)
2024-11-06T16:58:34.146+0100 [TRACE] vertex "var.aks_client_key": starting visit (*tofu.NodeRootVariable)
2024-11-06T16:58:34.146+0100 [TRACE] vertex "var.namespace": starting visit (*tofu.NodeRootVariable)
2024-11-06T16:58:34.146+0100 [TRACE] vertex "var.database_server_name": starting visit (*tofu.NodeRootVariable)
2024-11-06T16:58:34.146+0100 [TRACE] vertex "var.aks_client_certificate": starting visit (*tofu.NodeRootVariable)
2024-11-06T16:58:34.146+0100 [TRACE] vertex "var.cluster_vault_id": starting visit (*tofu.NodeRootVariable)
2024-11-06T16:58:34.146+0100 [TRACE] vertex "var.filename": starting visit (*tofu.NodeRootVariable)
2024-11-06T16:58:34.146+0100 [TRACE] vertex "var.administrator_username": starting visit (*tofu.NodeRootVariable)
2024-11-06T16:58:34.146+0100 [TRACE] vertex "module.keyvaultstorageclasses (expand)": starting visit (*tofu.nodeValidateModule)
2024-11-06T16:58:34.146+0100 [TRACE] vertex "var.project": starting visit (*tofu.NodeRootVariable)
2024-11-06T16:58:34.146+0100 [TRACE] vertex "var.aks_username": starting visit (*tofu.NodeRootVariable)
2024-11-06T16:58:34.147+0100 [TRACE] vertex "var.aks_host": starting visit (*tofu.NodeRootVariable)
2024-11-06T16:58:34.147+0100 [TRACE] vertex "var.repo_url": starting visit (*tofu.NodeRootVariable)
2024-11-06T16:58:34.147+0100 [TRACE] vertex "var.aks_password": starting visit (*tofu.NodeRootVariable)
2024-11-06T16:58:34.147+0100 [TRACE] vertex "var.aks_cluster_ca_certificate": starting visit (*tofu.NodeRootVariable)
2024-11-06T16:58:34.147+0100 [TRACE] vertex "var.subscription_id": starting visit (*tofu.NodeRootVariable)
2024-11-06T16:58:34.147+0100 [TRACE] vertex "var.aks_secret_identity_id": starting visit (*tofu.NodeRootVariable)
2024-11-06T16:58:34.147+0100 [TRACE] NodeRootVariable: evaluating var.administrator_password
2024-11-06T16:58:34.147+0100 [TRACE] NodeRootVariable: evaluating var.filename
2024-11-06T16:58:34.147+0100 [TRACE] NodeRootVariable: evaluating var.database_server_name
2024-11-06T16:58:34.147+0100 [TRACE] NodeRootVariable: evaluating var.namespace
2024-11-06T16:58:34.147+0100 [TRACE] NodeRootVariable: evaluating var.aks_client_key
2024-11-06T16:58:34.147+0100 [TRACE] vertex "module.keyvaultstorageclasses (expand)": visit complete
2024-11-06T16:58:34.147+0100 [TRACE] NodeRootVariable: evaluating var.administrator_username
2024-11-06T16:58:34.147+0100 [TRACE] NodeRootVariable: evaluating var.database_server_fqdn
2024-11-06T16:58:34.147+0100 [TRACE] NodeRootVariable: evaluating var.aks_client_certificate
2024-11-06T16:58:34.147+0100 [TRACE] prepareFinalInputVariableValue: preparing var.administrator_password
2024-11-06T16:58:34.147+0100 [TRACE] prepareFinalInputVariableValue: preparing var.database_server_fqdn
2024-11-06T16:58:34.147+0100 [TRACE] prepareFinalInputVariableValue: preparing var.namespace
2024-11-06T16:58:34.147+0100 [TRACE] NodeRootVariable: evaluating var.cluster_vault_id
2024-11-06T16:58:34.147+0100 [TRACE] prepareFinalInputVariableValue: preparing var.cluster_vault_id
2024-11-06T16:58:34.147+0100 [TRACE] prepareFinalInputVariableValue: preparing var.administrator_username
2024-11-06T16:58:34.147+0100 [TRACE] prepareFinalInputVariableValue: preparing var.aks_client_key
2024-11-06T16:58:34.147+0100 [TRACE] prepareFinalInputVariableValue: preparing var.filename
2024-11-06T16:58:34.147+0100 [TRACE] NodeRootVariable: evaluating var.resource_group_name
2024-11-06T16:58:34.147+0100 [TRACE] prepareFinalInputVariableValue: preparing var.resource_group_name
2024-11-06T16:58:34.147+0100 [TRACE] prepareFinalInputVariableValue: preparing var.database_server_name
2024-11-06T16:58:34.147+0100 [TRACE] prepareFinalInputVariableValue: preparing var.aks_client_certificate
2024-11-06T16:58:34.147+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.administrator_password
2024-11-06T16:58:34.147+0100 [TRACE] evalVariableValidations: no validation rules declared for var.administrator_password, so skipping
2024-11-06T16:58:34.147+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.database_server_fqdn
2024-11-06T16:58:34.147+0100 [TRACE] NodeRootVariable: evaluating var.project
2024-11-06T16:58:34.147+0100 [TRACE] prepareFinalInputVariableValue: preparing var.project
2024-11-06T16:58:34.147+0100 [TRACE] evalVariableValidations: no validation rules declared for var.database_server_fqdn, so skipping
2024-11-06T16:58:34.147+0100 [TRACE] vertex "var.database_server_fqdn": visit complete
2024-11-06T16:58:34.147+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.namespace
2024-11-06T16:58:34.147+0100 [TRACE] NodeRootVariable: evaluating var.aks_username
2024-11-06T16:59:10.036+0100 [TRACE] evalVariableValidations: no validation rules declared for var.namespace, so skipping
2024-11-06T16:59:10.036+0100 [TRACE] vertex "var.administrator_password": visit complete
2024-11-06T16:59:10.036+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.cluster_vault_id
2024-11-06T16:59:10.036+0100 [TRACE] vertex "var.namespace": visit complete
2024-11-06T16:59:10.036+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.administrator_username
2024-11-06T16:59:10.036+0100 [TRACE] vertex "provider[\"registry.opentofu.org/hashicorp/random\"]": starting visit (*tofu.NodeApplyableProvider)
2024-11-06T16:59:10.036+0100 [TRACE] NodeRootVariable: evaluating var.aks_host
2024-11-06T16:59:10.036+0100 [TRACE] prepareFinalInputVariableValue: preparing var.aks_host
2024-11-06T16:59:10.036+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.aks_client_key
2024-11-06T16:59:10.036+0100 [TRACE] evalVariableValidations: no validation rules declared for var.aks_client_key, so skipping
2024-11-06T16:59:10.036+0100 [TRACE] vertex "var.aks_client_key": visit complete
2024-11-06T16:59:10.036+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.var.databases (expand)" is waiting for "local.databases (expand)"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.var.server_name (expand)" is waiting for "var.database_server_name"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.var.database (expand)" is waiting for "module.database_mysql8_vault (expand)"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.mysql_grant.grant" is waiting for "module.database_mysql8_vault.mysql_user.users"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "local.databases (expand)" is waiting for "local.yaml_rg (expand)"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.data.azurerm_client_config.current" is waiting for "provider[\"registry.opentofu.org/hashicorp/azurerm\"]"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault (close)" is waiting for "module.database_mysql8_vault.mysql_grant.grant"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/hashicorp/azurerm\"]" is waiting for "var.subscription_id"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.var.resource_group_name (expand)" is waiting for "var.resource_group_name"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.azurerm_key_vault_secret.database_password" is waiting for "module.database_mysql8_vault.random_password.dbpassword"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.azurerm_mysql_flexible_database.databases" is waiting for "module.database_mysql8_vault.var.database (expand)"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/alekc/kubectl\"] (close)" is waiting for "module.keyvaultstorageclasses.kubectl_manifest.vault-db-spc"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/hashicorp/azurerm\"] (close)" is waiting for "module.keyvaultstorageclasses.data.azurerm_client_config.current"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.kubectl_manifest.vault-db-spc" is waiting for "provider[\"registry.opentofu.org/alekc/kubectl\"]"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.var.cluster_vault_id (expand)" is waiting for "module.database_mysql8_vault (expand)"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/petoju/mysql\"].mysql8 (close)" is waiting for "module.database_mysql8_vault.mysql_grant.grant"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "root" is waiting for "provider[\"registry.opentofu.org/hashicorp/random\"] (close)"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "local.namespace_score (expand)" is waiting for "var.namespace"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses (close)" is waiting for "module.keyvaultstorageclasses.kubectl_manifest.vault-db-spc"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/alekc/kubectl\"]" is waiting for "var.aks_client_certificate"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "local.yaml_rg (expand)" is waiting for "var.filename"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "local.namespace_underscore (expand)" is waiting for "var.namespace"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/hashicorp/random\"] (close)" is waiting for "module.database_mysql8_vault.random_password.dbpassword"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.random_password.dbpassword" is waiting for "module.database_mysql8_vault (expand)"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.mysql_user.users" is waiting for "module.database_mysql8_vault.azurerm_mysql_flexible_database.databases"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.var.aks_secret_identity_id (expand)" is waiting for "var.aks_secret_identity_id"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/petoju/mysql\"].mysql8" is waiting for "var.administrator_password"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault (expand)" is waiting for "local.databases (expand)"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.var.namespace (expand)" is waiting for "var.namespace"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.var.project (expand)" is waiting for "var.project"
2024-11-06T16:59:10.037+0100 [TRACE] prepareFinalInputVariableValue: preparing var.aks_username
2024-11-06T16:59:10.037+0100 [TRACE] evalVariableValidations: no validation rules declared for var.cluster_vault_id, so skipping
2024-11-06T16:59:10.037+0100 [TRACE] vertex "var.cluster_vault_id": visit complete
2024-11-06T16:59:10.037+0100 [TRACE] NodeRootVariable: evaluating var.aks_password
2024-11-06T16:59:10.037+0100 [TRACE] evalVariableValidations: no validation rules declared for var.administrator_username, so skipping
2024-11-06T16:59:10.037+0100 [TRACE] prepareFinalInputVariableValue: preparing var.aks_password
2024-11-06T16:59:10.037+0100 [TRACE] NodeRootVariable: evaluating var.repo_url
2024-11-06T16:59:10.037+0100 [TRACE] prepareFinalInputVariableValue: preparing var.repo_url
2024-11-06T16:59:10.037+0100 [TRACE] prepareFinalInputVariableValue: var.filename has a default value
2024-11-06T16:59:10.037+0100 [TRACE] vertex "local.namespace_score (expand)": starting visit (*tofu.nodeExpandLocal)
2024-11-06T16:59:10.037+0100 [TRACE] vertex "local.namespace_score (expand)": expanding dynamic subgraph
2024-11-06T16:59:10.037+0100 [TRACE] Expanding local: adding local.namespace_score as *tofu.NodeLocal
2024-11-06T16:59:10.037+0100 [TRACE] vertex "local.namespace_underscore (expand)": starting visit (*tofu.nodeExpandLocal)
2024-11-06T16:59:10.037+0100 [TRACE] vertex "local.namespace_underscore (expand)": expanding dynamic subgraph
2024-11-06T16:59:10.037+0100 [TRACE] vertex "local.namespace_score (expand)": entering dynamic subgraph
2024-11-06T16:59:10.037+0100 [TRACE] Expanding local: adding local.namespace_underscore as *tofu.NodeLocal
2024-11-06T16:59:10.037+0100 [TRACE] vertex "var.administrator_username": visit complete
2024-11-06T16:59:10.037+0100 [TRACE] vertex "local.namespace_underscore (expand)": entering dynamic subgraph
2024-11-06T16:59:10.037+0100 [TRACE] prepareFinalInputVariableValue: var.repo_url has a default value
2024-11-06T16:59:10.037+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.resource_group_name
2024-11-06T16:59:10.037+0100 [TRACE] evalVariableValidations: no validation rules declared for var.resource_group_name, so skipping
2024-11-06T16:59:56.908+0100 [TRACE] vertex "var.resource_group_name": visit complete
2024-11-06T16:59:56.908+0100 [TRACE] NodeRootVariable: evaluating var.aks_cluster_ca_certificate
2024-11-06T16:59:56.908+0100 [TRACE] vertex "provider[\"registry.opentofu.org/petoju/mysql\"].mysql8": starting visit (*tofu.NodeApplyableProvider)
2024-11-06T16:59:56.908+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.database_server_name
2024-11-06T16:59:56.908+0100 [TRACE] vertex "module.keyvaultstorageclasses.var.namespace (expand)": starting visit (*tofu.nodeExpandModuleVariable)
2024-11-06T16:59:56.908+0100 [TRACE] vertex "local.namespace_underscore": starting visit (*tofu.NodeLocal)
2024-11-06T16:59:56.908+0100 [TRACE] vertex "local.namespace_score": starting visit (*tofu.NodeLocal)
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/hashicorp/azurerm\"] (close)" is waiting for "module.keyvaultstorageclasses.data.azurerm_client_config.current"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.var.databases (expand)" is waiting for "local.databases (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.var.server_name (expand)" is waiting for "var.database_server_name"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.var.database (expand)" is waiting for "module.database_mysql8_vault (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.mysql_grant.grant" is waiting for "module.database_mysql8_vault.mysql_user.users"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "local.databases (expand)" is waiting for "local.yaml_rg (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/alekc/kubectl\"]" is waiting for "var.aks_client_certificate"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.data.azurerm_client_config.current" is waiting for "provider[\"registry.opentofu.org/hashicorp/azurerm\"]"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault (close)" is waiting for "module.database_mysql8_vault.mysql_grant.grant"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "local.yaml_rg (expand)" is waiting for "var.filename"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/hashicorp/azurerm\"]" is waiting for "var.subscription_id"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.var.resource_group_name (expand)" is waiting for "var.resource_group_name"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.azurerm_key_vault_secret.database_password" is waiting for "module.database_mysql8_vault.random_password.dbpassword"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses (close)" is waiting for "module.keyvaultstorageclasses.kubectl_manifest.vault-db-spc"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/alekc/kubectl\"] (close)" is waiting for "module.keyvaultstorageclasses.kubectl_manifest.vault-db-spc"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.azurerm_mysql_flexible_database.databases" is waiting for "module.database_mysql8_vault.var.database (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.var.cluster_vault_id (expand)" is waiting for "module.database_mysql8_vault (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.var.aks_secret_identity_id (expand)" is waiting for "var.aks_secret_identity_id"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.var.project (expand)" is waiting for "var.project"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.random_password.dbpassword" is waiting for "module.database_mysql8_vault (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.kubectl_manifest.vault-db-spc" is waiting for "provider[\"registry.opentofu.org/alekc/kubectl\"]"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "root" is waiting for "provider[\"registry.opentofu.org/hashicorp/random\"] (close)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.mysql_user.users" is waiting for "module.database_mysql8_vault.azurerm_mysql_flexible_database.databases"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault (expand)" is waiting for "local.databases (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/hashicorp/random\"] (close)" is waiting for "module.database_mysql8_vault.random_password.dbpassword"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/petoju/mysql\"].mysql8 (close)" is waiting for "module.database_mysql8_vault.mysql_grant.grant"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "root" is waiting for "local.namespace_score"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "root" is waiting for "local.namespace_underscore"
2024-11-06T16:59:56.908+0100 [TRACE] NodeRootVariable: evaluating var.subscription_id
2024-11-06T16:59:56.908+0100 [TRACE] prepareFinalInputVariableValue: preparing var.subscription_id
2024-11-06T16:59:56.908+0100 [TRACE] prepareFinalInputVariableValue: var.subscription_id has a default value
2024-11-06T16:59:56.908+0100 [TRACE] prepareFinalInputVariableValue: preparing var.aks_cluster_ca_certificate
2024-11-06T16:59:56.908+0100 [TRACE] vertex "module.keyvaultstorageclasses.var.namespace (expand)": expanding dynamic subgraph
2024-11-06T16:59:56.908+0100 [TRACE] vertex "module.keyvaultstorageclasses.var.namespace (expand)": entering dynamic subgraph
2024-11-06T16:59:56.908+0100 [TRACE] evalVariableValidations: no validation rules declared for var.database_server_name, so skipping
2024-11-06T16:59:56.908+0100 [TRACE] vertex "var.database_server_name": visit complete
2024-11-06T16:59:56.908+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.aks_client_certificate
2024-11-06T16:59:56.908+0100 [TRACE] NodeRootVariable: evaluating var.aks_secret_identity_id
2024-11-06T16:59:56.908+0100 [TRACE] prepareFinalInputVariableValue: preparing var.aks_secret_identity_id
2024-11-06T16:59:56.908+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.project
2024-11-06T16:59:56.908+0100 [TRACE] evalVariableValidations: no validation rules declared for var.aks_client_certificate, so skipping
2024-11-06T16:59:56.908+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.aks_host
2024-11-06T16:59:56.908+0100 [TRACE] evalVariableValidations: no validation rules declared for var.aks_host, so skipping
2024-11-06T16:59:56.908+0100 [TRACE] vertex "var.aks_host": visit complete
2024-11-06T16:59:56.908+0100 [TRACE] evalVariableValidations: no validation rules declared for var.project, so skipping
2024-11-06T16:59:56.908+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.aks_username
2024-11-06T16:59:56.908+0100 [TRACE] evalVariableValidations: no validation rules declared for var.aks_username, so skipping
2024-11-06T16:59:56.908+0100 [TRACE] vertex "var.aks_username": visit complete
2024-11-06T16:59:56.908+0100 [TRACE] vertex "module.keyvaultstorageclasses.var.namespace": starting visit (*tofu.nodeModuleVariable)
2024-11-06T16:59:56.908+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.aks_password
2024-11-06T16:59:56.908+0100 [TRACE] vertex "var.project": visit complete
2024-11-06T16:59:56.908+0100 [TRACE] evalVariableValidations: no validation rules declared for var.aks_password, so skipping
2024-11-06T16:59:56.908+0100 [TRACE] vertex "var.aks_password": visit complete
2024-11-06T16:59:56.908+0100 [TRACE] vertex "var.aks_client_certificate": visit complete
2024-11-06T16:59:56.908+0100 [TRACE] vertex "module.keyvaultstorageclasses.var.project (expand)": starting visit (*tofu.nodeExpandModuleVariable)
2024-11-06T17:00:43.144+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.filename
2024-11-06T16:59:56.909+0100 [DEBUG] created provider logger: level=trace
2024-11-06T17:00:43.145+0100 [INFO]  provider: configuring client automatic mTLS
2024-11-06T17:00:43.144+0100 [TRACE] vertex "module.keyvaultstorageclasses.var.project (expand)": expanding dynamic subgraph
2024-11-06T17:00:43.145+0100 [TRACE] nodeModuleVariable: evaluating module.keyvaultstorageclasses.var.namespace
2024-11-06T17:00:43.145+0100 [TRACE] vertex "module.keyvaultstorageclasses.var.project (expand)": entering dynamic subgraph
2024-11-06T17:00:43.145+0100 [TRACE] dag/walk: vertex "root" is waiting for "local.namespace_score"
 ESCOD
2024-11-06T16:59:56.908+0100 [TRACE] vertex "var.resource_group_name": visit complete
2024-11-06T16:59:56.908+0100 [TRACE] NodeRootVariable: evaluating var.aks_cluster_ca_certificate
2024-11-06T16:59:56.908+0100 [TRACE] vertex "provider[\"registry.opentofu.org/petoju/mysql\"].mysql8": starting visit (*tofu.NodeApplyableProvider)
2024-11-06T16:59:56.908+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.database_server_name
2024-11-06T16:59:56.908+0100 [TRACE] vertex "module.keyvaultstorageclasses.var.namespace (expand)": starting visit (*tofu.nodeExpandModuleVariable)
2024-11-06T16:59:56.908+0100 [TRACE] vertex "local.namespace_underscore": starting visit (*tofu.NodeLocal)
2024-11-06T16:59:56.908+0100 [TRACE] vertex "local.namespace_score": starting visit (*tofu.NodeLocal)
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/hashicorp/azurerm\"] (close)" is waiting for "module.keyvaultstorageclasses.data.azurerm_client_config.current"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.var.databases (expand)" is waiting for "local.databases (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.var.server_name (expand)" is waiting for "var.database_server_name"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.var.database (expand)" is waiting for "module.database_mysql8_vault (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.mysql_grant.grant" is waiting for "module.database_mysql8_vault.mysql_user.users"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "local.databases (expand)" is waiting for "local.yaml_rg (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/alekc/kubectl\"]" is waiting for "var.aks_client_certificate"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.data.azurerm_client_config.current" is waiting for "provider[\"registry.opentofu.org/hashicorp/azurerm\"]"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault (close)" is waiting for "module.database_mysql8_vault.mysql_grant.grant"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "local.yaml_rg (expand)" is waiting for "var.filename"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/hashicorp/azurerm\"]" is waiting for "var.subscription_id"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.var.resource_group_name (expand)" is waiting for "var.resource_group_name"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.azurerm_key_vault_secret.database_password" is waiting for "module.database_mysql8_vault.random_password.dbpassword"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses (close)" is waiting for "module.keyvaultstorageclasses.kubectl_manifest.vault-db-spc"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/alekc/kubectl\"] (close)" is waiting for "module.keyvaultstorageclasses.kubectl_manifest.vault-db-spc"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.azurerm_mysql_flexible_database.databases" is waiting for "module.database_mysql8_vault.var.database (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.var.cluster_vault_id (expand)" is waiting for "module.database_mysql8_vault (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.var.aks_secret_identity_id (expand)" is waiting for "var.aks_secret_identity_id"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.var.project (expand)" is waiting for "var.project"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.random_password.dbpassword" is waiting for "module.database_mysql8_vault (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.kubectl_manifest.vault-db-spc" is waiting for "provider[\"registry.opentofu.org/alekc/kubectl\"]"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "root" is waiting for "provider[\"registry.opentofu.org/hashicorp/random\"] (close)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.mysql_user.users" is waiting for "module.database_mysql8_vault.azurerm_mysql_flexible_database.databases"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault (expand)" is waiting for "local.databases (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/hashicorp/random\"] (close)" is waiting for "module.database_mysql8_vault.random_password.dbpassword"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/petoju/mysql\"].mysql8 (close)" is waiting for "module.database_mysql8_vault.mysql_grant.grant"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "root" is waiting for "local.namespace_score"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "root" is waiting for "local.namespace_underscore"
2024-11-06T16:59:56.908+0100 [TRACE] NodeRootVariable: evaluating var.subscription_id
2024-11-06T16:59:56.908+0100 [TRACE] prepareFinalInputVariableValue: preparing var.subscription_id
2024-11-06T16:59:56.908+0100 [TRACE] prepareFinalInputVariableValue: var.subscription_id has a default value
2024-11-06T16:59:56.908+0100 [TRACE] prepareFinalInputVariableValue: preparing var.aks_cluster_ca_certificate
2024-11-06T16:59:56.908+0100 [TRACE] vertex "module.keyvaultstorageclasses.var.namespace (expand)": expanding dynamic subgraph
2024-11-06T16:59:56.908+0100 [TRACE] vertex "module.keyvaultstorageclasses.var.namespace (expand)": entering dynamic subgraph
2024-11-06T16:59:56.908+0100 [TRACE] evalVariableValidations: no validation rules declared for var.database_server_name, so skipping
2024-11-06T16:59:56.908+0100 [TRACE] vertex "var.database_server_name": visit complete
2024-11-06T16:59:56.908+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.aks_client_certificate
2024-11-06T16:59:56.908+0100 [TRACE] NodeRootVariable: evaluating var.aks_secret_identity_id
2024-11-06T16:59:56.908+0100 [TRACE] prepareFinalInputVariableValue: preparing var.aks_secret_identity_id
2024-11-06T16:59:56.908+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.project
2024-11-06T16:59:56.908+0100 [TRACE] evalVariableValidations: no validation rules declared for var.aks_client_certificate, so skipping
2024-11-06T16:59:56.908+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.aks_host
2024-11-06T16:59:56.908+0100 [TRACE] evalVariableValidations: no validation rules declared for var.aks_host, so skipping
2024-11-06T16:59:56.908+0100 [TRACE] vertex "var.aks_host": visit complete
2024-11-06T16:59:56.908+0100 [TRACE] evalVariableValidations: no validation rules declared for var.project, so skipping
2024-11-06T16:59:56.908+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.aks_username
2024-11-06T16:59:56.908+0100 [TRACE] evalVariableValidations: no validation rules declared for var.aks_username, so skipping
2024-11-06T16:59:56.908+0100 [TRACE] vertex "var.aks_username": visit complete
2024-11-06T16:59:56.908+0100 [TRACE] vertex "module.keyvaultstorageclasses.var.namespace": starting visit (*tofu.nodeModuleVariable)
2024-11-06T16:59:56.908+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.aks_password
2024-11-06T16:59:56.908+0100 [TRACE] vertex "var.project": visit complete
2024-11-06T16:59:56.908+0100 [TRACE] evalVariableValidations: no validation rules declared for var.aks_password, so skipping
2024-11-06T16:59:56.908+0100 [TRACE] vertex "var.aks_password": visit complete
2024-11-06T16:59:56.908+0100 [TRACE] vertex "var.aks_client_certificate": visit complete
2024-11-06T16:59:56.908+0100 [TRACE] vertex "module.keyvaultstorageclasses.var.project (expand)": starting visit (*tofu.nodeExpandModuleVariable)
2024-11-06T17:00:43.144+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.filename
2024-11-06T16:59:56.909+0100 [DEBUG] created provider logger: level=trace
2024-11-06T17:00:43.145+0100 [INFO]  provider: configuring client automatic mTLS
2024-11-06T17:00:43.144+0100 [TRACE] vertex "module.keyvaultstorageclasses.var.project (expand)": expanding dynamic subgraph
2024-11-06T17:00:43.145+0100 [TRACE] nodeModuleVariable: evaluating module.keyvaultstorageclasses.var.namespace
2024-11-06T17:00:43.145+0100 [TRACE] vertex "module.keyvaultstorageclasses.var.project (expand)": entering dynamic subgraph
2024-11-06T17:00:43.145+0100 [TRACE] dag/walk: vertex "root" is waiting for "local.namespace_score"
2024-11-06T17:00:43.145+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/hashicorp/azurerm\"] (close)" is waiting for "module.keyvaultstorageclasses.data.azurerm_client_config.current"
2024-11-06T17:00:43.145+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.var.database (expand)" is waiting for "module.database_mysql8_vault (expand)"
2024-11-06T17:00:43.145+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.var.databases (expand)" is waiting for "local.databases (expand)"
2024-11-06T17:00:43.145+0100 [TRACE] dag/walk: vertex "root" is waiting for "module.keyvaultstorageclasses.var.namespace"
2024-11-06T17:00:43.145+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.mysql_grant.grant" is waiting for "module.database_mysql8_vault.mysql_user.users"
2024-11-06T17:00:43.145+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.data.azurerm_client_config.current" is waiting for "provider[\"registry.opentofu.org/hashicorp/azurerm\"]"
 ESCOD
2024-11-06T16:59:56.908+0100 [TRACE] vertex "local.namespace_score": starting visit (*tofu.NodeLocal)
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/hashicorp/azurerm\"] (close)" is waiting for "module.keyvaultstorageclasses.data.azurerm_client_config.current"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.var.databases (expand)" is waiting for "local.databases (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.var.server_name (expand)" is waiting for "var.database_server_name"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.var.database (expand)" is waiting for "module.database_mysql8_vault (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.mysql_grant.grant" is waiting for "module.database_mysql8_vault.mysql_user.users"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "local.databases (expand)" is waiting for "local.yaml_rg (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/alekc/kubectl\"]" is waiting for "var.aks_client_certificate"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.data.azurerm_client_config.current" is waiting for "provider[\"registry.opentofu.org/hashicorp/azurerm\"]"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault (close)" is waiting for "module.database_mysql8_vault.mysql_grant.grant"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "local.yaml_rg (expand)" is waiting for "var.filename"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/hashicorp/azurerm\"]" is waiting for "var.subscription_id"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.var.resource_group_name (expand)" is waiting for "var.resource_group_name"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.azurerm_key_vault_secret.database_password" is waiting for "module.database_mysql8_vault.random_password.dbpassword"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses (close)" is waiting for "module.keyvaultstorageclasses.kubectl_manifest.vault-db-spc"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/alekc/kubectl\"] (close)" is waiting for "module.keyvaultstorageclasses.kubectl_manifest.vault-db-spc"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.azurerm_mysql_flexible_database.databases" is waiting for "module.database_mysql8_vault.var.database (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.var.cluster_vault_id (expand)" is waiting for "module.database_mysql8_vault (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.var.aks_secret_identity_id (expand)" is waiting for "var.aks_secret_identity_id"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.var.project (expand)" is waiting for "var.project"
    module.keyvaultstorageclasses.var.namespace (expand) - *tofu.nodeExpandModuleVariable
    module.keyvaultstorageclasses.var.project (expand) - *tofu.nodeExpandModuleVariable
    provider["registry.opentofu.org/alekc/kubectl"] - *tofu.NodeApplyableProvider
  module.keyvaultstorageclasses.var.aks_secret_identity_id (expand) - *tofu.nodeExpandModuleVariable
    module.keyvaultstorageclasses (expand) - *tofu.nodeValidateModule
    var.aks_secret_identity_id - *tofu.NodeRootVariable
  module.keyvaultstorageclasses.var.databases (expand) - *tofu.nodeExpandModuleVariable
    local.databases (expand) - *tofu.nodeExpandLocal
    module.keyvaultstorageclasses (expand) - *tofu.nodeValidateModule
  module.keyvaultstorageclasses.var.namespace (expand) - *tofu.nodeExpandModuleVariable
    module.keyvaultstorageclasses (expand) - *tofu.nodeValidateModule
    var.namespace - *tofu.NodeRootVariable
  module.keyvaultstorageclasses.var.project (expand) - *tofu.nodeExpandModuleVariable
    module.keyvaultstorageclasses (expand) - *tofu.nodeValidateModule
    var.project - *tofu.NodeRootVariable
  provider["registry.opentofu.org/alekc/kubectl"] - *tofu.NodeApplyableProvider
    var.aks_client_certificate - *tofu.NodeRootVariable
    var.aks_client_key - *tofu.NodeRootVariable
    var.aks_cluster_ca_certificate - *tofu.NodeRootVariable
    var.aks_host - *tofu.NodeRootVariable
    var.aks_password - *tofu.NodeRootVariable
    var.aks_username - *tofu.NodeRootVariable
  provider["registry.opentofu.org/alekc/kubectl"] (close) - *tofu.graphNodeCloseProvider
    module.keyvaultstorageclasses.kubectl_manifest.vault-db-spc - *tofu.NodeValidatableResource
  provider["registry.opentofu.org/hashicorp/azurerm"] - *tofu.NodeApplyableProvider
    var.subscription_id - *tofu.NodeRootVariable
  provider["registry.opentofu.org/hashicorp/azurerm"] (close) - *tofu.graphNodeCloseProvider
    module.database_mysql8_vault.azurerm_key_vault_secret.database_password - *tofu.NodeValidatableResource
    module.database_mysql8_vault.azurerm_mysql_flexible_database.databases - *tofu.NodeValidatableResource
    module.keyvaultstorageclasses.data.azurerm_client_config.current - *tofu.NodeValidatableResource
  provider["registry.opentofu.org/hashicorp/random"] - *tofu.NodeApplyableProvider
  provider["registry.opentofu.org/hashicorp/random"] (close) - *tofu.graphNodeCloseProvider
    module.database_mysql8_vault.random_password.dbpassword - *tofu.NodeValidatableResource
  provider["registry.opentofu.org/petoju/mysql"].mysql8 - *tofu.NodeApplyableProvider
    var.administrator_password - *tofu.NodeRootVariable
    var.administrator_username - *tofu.NodeRootVariable
    var.database_server_fqdn - *tofu.NodeRootVariable
  provider["registry.opentofu.org/petoju/mysql"].mysql8 (close) - *tofu.graphNodeCloseProvider
    module.database_mysql8_vault.mysql_grant.grant - *tofu.NodeValidatableResource
  root - *tofu.nodeCloseModule
    module.database_mysql8_vault (close) - *tofu.nodeCloseModule
    module.keyvaultstorageclasses (close) - *tofu.nodeCloseModule
    provider["registry.opentofu.org/alekc/kubectl"] (close) - *tofu.graphNodeCloseProvider
    provider["registry.opentofu.org/hashicorp/azurerm"] (close) - *tofu.graphNodeCloseProvider
    provider["registry.opentofu.org/hashicorp/random"] (close) - *tofu.graphNodeCloseProvider
    provider["registry.opentofu.org/petoju/mysql"].mysql8 (close) - *tofu.graphNodeCloseProvider
    var.repo_url - *tofu.NodeRootVariable
  var.administrator_password - *tofu.NodeRootVariable
  var.administrator_username - *tofu.NodeRootVariable
  var.aks_client_certificate - *tofu.NodeRootVariable
  var.aks_client_key - *tofu.NodeRootVariable
  var.aks_cluster_ca_certificate - *tofu.NodeRootVariable
  var.aks_host - *tofu.NodeRootVariable
  var.aks_password - *tofu.NodeRootVariable
  var.aks_secret_identity_id - *tofu.NodeRootVariable
  var.aks_username - *tofu.NodeRootVariable
  var.cluster_vault_id - *tofu.NodeRootVariable
  var.database_server_fqdn - *tofu.NodeRootVariable
  var.database_server_name - *tofu.NodeRootVariable
  var.filename - *tofu.NodeRootVariable
  var.namespace - *tofu.NodeRootVariable
  var.project - *tofu.NodeRootVariable
  var.repo_url - *tofu.NodeRootVariable
  var.resource_group_name - *tofu.NodeRootVariable
  var.subscription_id - *tofu.NodeRootVariable

I guess they are there :|

@alekc
Copy link
Owner

alekc commented Nov 27, 2024

There should be an error message somewhere. I am not familiar with Opentofu, so not sure if there are other requirements for this provider to work.

You can also try to either replace variables with hardcoded values for test, or to configure official kubernetes provider, it follows the same config structure and if thats failing as well, it would mean you have config issue on your end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants