Comments (13)
Thank you. Resolved in 22.2.0.
from terraform-provider-netapp-cloudmanager.
hi
did you tried to create some resources (volumes) on CVO just after creation?
Did you used the correct connector id for each CVO?
from terraform-provider-netapp-cloudmanager.
The CVOs are in place and both have volumes, used -target option of Terraform as a workaround.
One more thing, but I haven't got the chance to test it: I think this is happening when you actually have two or more connectors (like one for each environment).
from terraform-provider-netapp-cloudmanager.
you need to specify the correct client id of each connector in the client_id parameter
from terraform-provider-netapp-cloudmanager.
Do you agree with @edarzi answer? Or is there anything we need to do?
from terraform-provider-netapp-cloudmanager.
Hello,
The client_id of each connector was specified for each (correct) CVO environment. Didn't have time to recreate the scenario, now using the same the same connector for both environments.
The scenario to be reproduced is having two or more CVO environments managed by two or more connectors (eg. one connector-per-cvo)
from terraform-provider-netapp-cloudmanager.
Hello. Have same issue. When creating two CVO environment with two connectors in GCP (client_id = netapp-cloudmanager_connector_gcp.connector1.client_id for the first CVO and client_id = netapp-cloudmanager_connector_gcp.connector2.client_id for the second CVO) and fails woth "Cannot find working environment).
Meanwhile when we are going to cloud manager we can see that both CVOs are connecting to 1 random connector.
When we crate 2 CVO environments in multiple terraform runs we got correct setup 1 CVO per 1 connector. But if we will trigger terraform destroy we are getting same error: "Cannot find working environment in the list"
from terraform-provider-netapp-cloudmanager.
do you specify the client id for the CVO creation? in order to indicate on which connector to create the CVO
from terraform-provider-netapp-cloudmanager.
yes. for sure:
client_id = netapp-cloudmanager_connector_gcp.connector1.client_id for the first CVO
and
client_id = netapp-cloudmanager_connector_gcp.connector2.client_id for the second CVO
And in terraform state i can see that each CVO registered to their connector ID. But in Cloud Manager i see that both CVOs are connecting to one connector.
from terraform-provider-netapp-cloudmanager.
Can you please share your main file please?
from terraform-provider-netapp-cloudmanager.
//Connector1
resource "netapp-cloudmanager_connector_gcp" "connector1" {
provider = netapp-cloudmanager
name = var.connector_name
project_id = var.project_id
zone = var.zone
subnet_id = var.subnet_id
network_project_id = var.network_project_id
company = "NetApp"
service_account_email = var.service_account_email
service_account_path = "/tmp/secret/netapp-cloudmgr-sa.json"
account_id = var.account_id
associate_public_ip = false
}
//Connector2
resource "netapp-cloudmanager_connector_gcp" "connector2" {
provider = netapp-cloudmanager
name = var.connector_name
project_id = var.project_id
zone = var.zone
subnet_id = var.subnet_id
network_project_id = var.network_project_id
company = "NetApp"
service_account_email = var.service_account_email
service_account_path = "/tmp/secret/netapp-cloudmgr-sa.json"
account_id = var.account_id
associate_public_ip = false
}
//CVO HA pair 1 pointed to connector1 client_id
resource "netapp-cloudmanager_cvo_gcp" "cvoha1" {
count = var.cvoha_count
provider = netapp-cloudmanager
name = var.cvoha_name
project_id = var.project_id
zone = var.zone
subnet_id = var.subnet_id
gcp_service_account = var.ha_service_account_email
svm_password = data.vault_generic_secret.secretpath.data[var.svm_password]
client_id = netapp-cloudmanager_connector_gcp.connector1.client_id
workspace_id = var.workspace_id
gcp_volume_size = var.gcp_volume_size
gcp_volume_size_unit = var.gcp_volume_size_unit
gcp_volume_type = var.gcp_volume_type //['pd-balanced', 'pd-standard', 'pd-ssd']
instance_type = var.instance_type
license_type = var.license_type_ha
is_ha = true
node1_zone = var.node1_zone
node2_zone = var.node2_zone
mediator_zone = var.mediator_zone
vpc0_node_and_data_connectivity = var.vpc0
subnet0_node_and_data_connectivity = var.subnet0
vpc0_firewall_rule_name = var.fw_rule0
vpc1_cluster_connectivity = var.vpc1
subnet1_cluster_connectivity = var.subnet1
vpc2_ha_connectivity = var.vpc2
subnet2_ha_connectivity = var.subnet2
vpc3_data_replication = var.vpc3
subnet3_data_replication = var.subnet3
}
//CVO HA pair 2 pointed to connector2 client_id
resource "netapp-cloudmanager_cvo_gcp" "cvoha2" {
count = var.cvoha_count
provider = netapp-cloudmanager
name = var.cvoha_name
project_id = var.project_id
zone = var.zone
subnet_id = var.subnet_id
gcp_service_account = var.ha_service_account_email
svm_password = data.vault_generic_secret.secretpath.data[var.svm_password]
client_id = netapp-cloudmanager_connector_gcp.connector2.client_id
workspace_id = var.workspace_id
gcp_volume_size = var.gcp_volume_size
gcp_volume_size_unit = var.gcp_volume_size_unit
gcp_volume_type = var.gcp_volume_type //['pd-balanced', 'pd-standard', 'pd-ssd']
instance_type = var.instance_type
license_type = var.license_type_ha
is_ha = true
node1_zone = var.node1_zone
node2_zone = var.node2_zone
mediator_zone = var.mediator_zone
vpc0_node_and_data_connectivity = var.vpc0
subnet0_node_and_data_connectivity = var.subnet0
vpc0_firewall_rule_name = var.fw_rule0
vpc1_cluster_connectivity = var.vpc1
subnet1_cluster_connectivity = var.subnet1
vpc2_ha_connectivity = var.vpc2
subnet2_ha_connectivity = var.subnet2
vpc3_data_replication = var.vpc3
subnet3_data_replication = var.subnet3
}
This is a slightly simplified main.tf file
from terraform-provider-netapp-cloudmanager.
from the backend logs i can see that each CVO is created on different connector as expected, see personal mail with more details
from terraform-provider-netapp-cloudmanager.
fixed by 755575c
from terraform-provider-netapp-cloudmanager.
Related Issues (20)
- GCP Key rotation recreates NetApp connector and CVO HOT 8
- Timeout for create operation on netapp-cloudmanager_cifs_server is too short HOT 10
- 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.