Comments (10)
Can you please update if still happening?
from terraform-provider-netapp-cloudmanager.
HI @edarzi,
the timeout error seems to be gone. Now I get the "error reading cifs" error on the first apply. I made sure to remove the old config object from the state before retrying the apply
from terraform-provider-netapp-cloudmanager.
@alexander-gebhardt Would you please provide the log with enabling the debug flag? TF_LOG="DEBUG" terraform apply
from terraform-provider-netapp-cloudmanager.
Hi @chuyich
The log contains a lot of sensitive values I cannot share in public here. Can you please let me know in which part of the log you are interested in? I will gladly fetch that from the log, redact any sensitive values and share it with you.
from terraform-provider-netapp-cloudmanager.
@chuyich
This is the redacted part where TF tried to create the CIFS server. Sensitive values like VSA ID, IPs and domain names have been redacted
2023-03-21T12:08:12.795+0100 [WARN] Provider "registry.terraform.io/netapp/netapp-cloudmanager" produced an invalid plan for netapp-cloudmanager_cifs_server.REDACTED, but we are tolerating it because it is using the legacy plugin SDK.
The following problems may be the cause of any confusing errors from downstream operations:
- .is_workgroup: planned value cty.False for a non-computed attribute
2023-03-21T12:08:12.796+0100 [INFO] Starting apply for netapp-cloudmanager_cifs_server.REDACTED
2023-03-21T12:08:12.797+0100 [DEBUG] netapp-cloudmanager_cifs_server.REDACTED: applying the planned Create change
2023-03-21T12:08:12.798+0100 [DEBUG] provider.terraform-provider-netapp-cloudmanager_v23.1.1: 2023/03/21 12:08:12 Creating cifs: &schema.ResourceData{schema:map[string]*schema.Schema{"client_id":(*schema.Schema)(0x14000127400), "dns_domain":(*schema.Schema)(0x14000126e00), "domain":(*schema.Schema)(0x14000126b00), "ip_addresses":(*schema.Schema)(0x14000127000), "is_workgroup":(*schema.Schema)(0x14000127900), "netbios":(*schema.Schema)(0x14000127100), "organizational_unit":(*schema.Schema)(0x14000127200), "password":(*schema.Schema)(0x14000126d00), "server_name":(*schema.Schema)(0x14000127700), "svm_name":(*schema.Schema)(0x14000127300), "username":(*schema.Schema)(0x14000126c00), "workgroup_name":(*schema.Schema)(0x14000127800), "working_environment_id":(*schema.Schema)(0x14000127500), "working_environment_name":(*schema.Schema)(0x14000127600)}, config:(*terraform.ResourceConfig)(nil), state:(*terraform.InstanceState)(0x140007e1ce0), diff:(*terraform.InstanceDiff)(0x14000810740), meta:map[string]interface {}(nil), timeouts:(*schema.ResourceTimeout)(0x1400081ca20), providerMeta:cty.Value{ty:cty.Type{typeImpl:cty.typeObject{typeImplSigil:cty.typeImplSigil{}, AttrTypes:map[string]cty.Type{}}}, v:interface {}(nil)}, multiReader:(*schema.MultiLevelFieldReader)(nil), setWriter:(*schema.MapFieldWriter)(nil), newState:(*terraform.InstanceState)(nil), partial:false, partialMap:map[string]struct {}(nil), once:sync.Once{done:0x0, m:sync.Mutex{state:0, sema:0x0}}, isNew:true, panicOnError:false}
2023-03-21T12:08:12.798+0100 [DEBUG] provider.terraform-provider-netapp-cloudmanager_v23.1.1: 2023/03/21 12:08:12 getAccessToken
2023-03-21T12:08:13.395+0100 [DEBUG] provider.terraform-provider-netapp-cloudmanager_v23.1.1: 2023/03/21 12:08:13 Call API /occm/api/ontaps/working-environments/VSA_ID
2023-03-21T12:08:14.642+0100 [DEBUG] provider.terraform-provider-netapp-cloudmanager_v23.1.1: 2023/03/21 12:08:14 Found working environment: {CLUSTER_NAME VSA_ID Amazon true VSA NETBIOS_NAME <nil>}
2023-03-21T12:08:14.642+0100 [DEBUG] provider.terraform-provider-netapp-cloudmanager_v23.1.1: 2023/03/21 12:08:14 Call API /occm/api/ontaps/working-environments/VSA_ID
2023-03-21T12:08:15.101+0100 [DEBUG] provider.terraform-provider-netapp-cloudmanager_v23.1.1: 2023/03/21 12:08:15 Working environment {CLUSTER_NAME VSA_ID Amazon Amazon true VSA map[mainSvm:NETBIOS_NAME svms:<nil>]}
2023-03-21T12:08:15.102+0100 [DEBUG] provider.terraform-provider-netapp-cloudmanager_v23.1.1: 2023/03/21 12:08:15 API root = /occm/api/aws/ha
2023-03-21T12:09:07.196+0100 [DEBUG] provider.terraform-provider-netapp-cloudmanager_v23.1.1: 2023/03/21 12:09:07 OnCloud-Request-Id 6b4a1b03-971d-4941-b1ef-6544bf707abc
2023-03-21T12:09:07.196+0100 [DEBUG] provider.terraform-provider-netapp-cloudmanager_v23.1.1: 2023/03/21 12:09:07 checkTaskStatus: 6b4a1b03-971d-4941-b1ef-6544bf707abc
2023-03-21T12:09:07.557+0100 [DEBUG] provider.terraform-provider-netapp-cloudmanager_v23.1.1: 2023/03/21 12:09:07 checkTaskStatus get request 6b4a1b03-971d-4941-b1ef-6544bf707abc response code 200 clientID REDACTED
2023-03-21T12:09:07.557+0100 [DEBUG] provider.terraform-provider-netapp-cloudmanager_v23.1.1: 2023/03/21 12:09:07 Fetching volume: &schema.ResourceData{schema:map[string]*schema.Schema{"client_id":(*schema.Schema)(0x14000127400), "dns_domain":(*schema.Schema)(0x14000126e00), "domain":(*schema.Schema)(0x14000126b00), "ip_addresses":(*schema.Schema)(0x14000127000), "is_workgroup":(*schema.Schema)(0x14000127900), "netbios":(*schema.Schema)(0x14000127100), "organizational_unit":(*schema.Schema)(0x14000127200), "password":(*schema.Schema)(0x14000126d00), "server_name":(*schema.Schema)(0x14000127700), "svm_name":(*schema.Schema)(0x14000127300), "username":(*schema.Schema)(0x14000126c00), "workgroup_name":(*schema.Schema)(0x14000127800), "working_environment_id":(*schema.Schema)(0x14000127500), "working_environment_name":(*schema.Schema)(0x14000127600)}, config:(*terraform.ResourceConfig)(nil), state:(*terraform.InstanceState)(0x140007e1ce0), diff:(*terraform.InstanceDiff)(0x14000810740), meta:map[string]interface {}(nil), timeouts:(*schema.ResourceTimeout)(0x1400081ca20), providerMeta:cty.Value{ty:cty.Type{typeImpl:cty.typeObject{typeImplSigil:cty.typeImplSigil{}, AttrTypes:map[string]cty.Type{}}}, v:interface {}(nil)}, multiReader:(*schema.MultiLevelFieldReader)(0x14000810d40), setWriter:(*schema.MapFieldWriter)(0x1400069d0e0), newState:(*terraform.InstanceState)(0x14000820310), partial:false, partialMap:map[string]struct {}(nil), once:sync.Once{done:0x1, m:sync.Mutex{state:0, sema:0x0}}, isNew:true, panicOnError:false}
2023-03-21T12:09:07.557+0100 [DEBUG] provider.terraform-provider-netapp-cloudmanager_v23.1.1: 2023/03/21 12:09:07 Call API /occm/api/ontaps/working-environments/VSA_ID
2023-03-21T12:09:07.929+0100 [DEBUG] provider.terraform-provider-netapp-cloudmanager_v23.1.1: 2023/03/21 12:09:07 Working environment {CLUSTER_NAME VSA_ID Amazon Amazon true VSA map[mainSvm:NETBIOS_NAME svms:<nil>]}
2023-03-21T12:09:07.929+0100 [DEBUG] provider.terraform-provider-netapp-cloudmanager_v23.1.1: 2023/03/21 12:09:07 API root = /occm/api/aws/ha
2023-03-21T12:09:08.376+0100 [DEBUG] provider.terraform-provider-netapp-cloudmanager_v23.1.1: 2023/03/21 12:09:08 cifs config: {domain.com domain.com [DNS_1_IP DNS_1_IP] NETBIOS_NAME OU_STRING}
2023-03-21T12:09:08.379+0100 [ERROR] vertex "netapp-cloudmanager_cifs_server.REDACTED" error: error reading cifs: cifs doesn't exist
from terraform-provider-netapp-cloudmanager.
@alexander-gebhardt Would you please check one thing? Can you check the value of dns_domain, domain, organizational_unit, and netbios in your state file and these values on the resource configuration file to see if they are matched? The cifs doesn't exist means the values in state file mismatch with the values in resource file. Or there are more than on cifs with one CVO in the state file. Then remove state file will help. Let us know if it works.
from terraform-provider-netapp-cloudmanager.
@chuyich The values in the state file match the configured values in the config file. The resource is marked as "tainted"
In the state file there is only one resource of type netapp-cloudmanager_cifs_server
I did remove the resource from the state after each test since the resource would otherwise block my apply
from terraform-provider-netapp-cloudmanager.
@alexander-gebhardt
In the log: Working environment {CLUSTER_NAME VSA_ID Amazon Amazon true VSA map[mainSvm:NETBIOS_NAME svms:]}
I found the svm name is NETBIOS_NAME Did you set the svm_name as NETBIOS_NAME in the cifs resource configuration?
If you didn't set svm_name in your cifs or CVO configuration resource file, the svm_name by default will be:
- Either svm_<cvo name> or
- The svm_name in the resource configuration if it's set.
from terraform-provider-netapp-cloudmanager.
Hi @chuyich,
I think I solved the problem. The netbios name has to be lowercase for the provider to understand the response correctly. I would suggest adding a check to see if the input is all lowercase or to just lowercase the input before sending it to the API.
from terraform-provider-netapp-cloudmanager.
Thanks for the update. We will close this issue.
from terraform-provider-netapp-cloudmanager.
Related Issues (20)
- GCP Key rotation recreates NetApp connector and CVO HOT 8
- TF Registry Documentation Links to Azure Policy/Role definitions are outdated HOT 2
- There is no publicly available list of CVO images for use with TerraForm HOT 1
- Unable to disable Tiering via Terraform in GCP HOT 1
- code 504 cloud_connector & cvo_svm terraform destroy bug HOT 8
- How to configure Linux/Unix UID and GID in volumes? HOT 2
- Terraform Destroy is Failing with Diff Error Messages Every time (Azure) HOT 5
- Support for Firewall tags in "netapp-cloudmanager_cvo_gcp" HOT 5
- GCP HA now supports fast write mode HOT 3
- Request must contain saasSubscriptionId to deploy CVO with capacity-based license HOT 5
- GCP Key rotation recreates NetApp connector and CVO HOT 18
- Feature request : ablity to clone volumes HOT 6
- Provider does not support id federation
- Incorrect argument 'vpc3_firewall_rule_tag_name' in 'netapp-cloudmanager_cvo_gcp' resource HOT 2
- netapp-cloudmanager_cvo_gcp resource default firewall rules not destroyed HOT 1
- Import fail netapp-cloudmanager_connector_aws HOT 3
- Tags on Fabric pool in GCP HOT 1
- Does the provider support assume-role type of authentication?
- GCP - CVO HA - code: 403, message: User is not allowed to do operation HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-netapp-cloudmanager.