NetApp / terraform-provider-netapp-cloudmanager

Terraform provider to create NetAPP OCCM instances, CVO resources, volumes, snapshots, ... in Azure, AWS, GCP.
Mozilla Public License 2.0
17 stars 27 forks source link

OCCM Agent taking to long when creating the Cloud Connector #78

Closed davetustin closed 2 years ago

davetustin commented 3 years ago

Hi all,

Only recently I have started having issues deploying a Cloud Connector using the latest version of the provider (21.9.4). After about 17mins the following error occurs in the console.

Error: Taking too long for OCCM agent to be active or not properly setup

  with netapp-cloudmanager_connector_azure.this,
  on cloud-connector.tf line 8, in resource "netapp-cloudmanager_connector_azure" "this":
   8: resource "netapp-cloudmanager_connector_azure" "this" {

I have had it deploy in the past with no issues.

Is anyone else having this problem or could it be my environment causing it?

Many thanks Dave

lonico commented 3 years ago

That generally means that the VM was successfully created, but the agent status stays in "pending" forever.

It could be a discrepancy in permissions between Azure and CloudManager. Make sure the credentials match.

@edarzi We'll need some help from CloudManager team to understand why the registration does not complete.

davetustin commented 3 years ago

Thanks for getting back to me, I did try rolling back the version to 21.9.2 (the last time it worked) and I got the same outcome. This is why I think it is something to do with my environment, I am still looking into it.

It is building the resources, but because it does timeout, the resource isn't in the state file, so have to delete it manually at the moment to try it again.

alikulov commented 3 years ago

@davetustin try to connect to the Connector VM in Azure and check connectivity to the internet from the host. I have a similar issue in AWS because of DNS reachability.

carchi8py commented 2 years ago

We increased the timeout time. Please let us know if this is still an issue.