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

Error: Taking too long for CVO to create or not properly setup #151

Closed bryanheo closed 9 months ago

bryanheo commented 1 year ago

Hello

We have created many NetApp ONTAP CVOs via Terraform Enterprise (Cloud) in GCP and did not have many issues during the deployment but we have recently got many errors regarding "Taking too long for CVO to create or not properly setup" as below. It takes more than a hour and TFE returns error but the CVOs are success fully created in Cloud Manager (Please see the second image below). In order to deploy the CVOs, we have to delete the existing resources and create again several time until it is successfully created. We are using terraform-provider-netapp-cloudmanager version 22.2.1. Could you investigate it and let us know the solution?

image

image

Regards Moon

bryanheo commented 1 year ago

Hi @lonico I have tried several times to deploy the CVOs but none of them works. Could you have a look at the issue? OR could you let us know the way to pull the CVOs which already created in Cloud Manager and update into TF state file rather than delete/recreate them?

bryanheo commented 1 year ago

We still cannot create any additional CVOs due to the issue. Could you investigate the issue?

Error: Taking too long for CVO to create or not properly setup
│ 
│   with module.netapp_use4.module.systems["dr"].netapp-cloudmanager_cvo_gcp.this,
│   on .terraform/modules/netapp_use4/modules/system/cvo.tf line 1, in resource "netapp-cloudmanager_cvo_gcp" "this":
│    1: resource "netapp-cloudmanager_cvo_gcp" "this" {
│ 
╵
╷
│ Error: code: 504, message: <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
│ <html xmlns='http://www.w3.org/1999/xhtml'>
│ <head>
│   <meta content='text/html; charset=utf-8' http-equiv='content-type'/>
│   <style type='text/css'>body {font-family:Arial; margin-left:40px; }img  { border:0 none; }#content { margin-left: auto; margin-right: auto }#message h2 { font-size: 20px; font-weight: normal; color: #000000; margin: 34px 0px 0px 0px }#message p  { font-size: 13px; color: #000000; margin: 7px 0px 0px0px}#errorref { font-size: 11px; color: #737373; margin-top: 41px }</style>
│   <title>Service unavailable</title>
│ </head>
│ <body>
│   <div id='content'>
│     <div id='message'>
│       <h2>Our services aren't available right now</h2>
│       <p>We're working to restore all services as soon as possible. Please check back soon.</p>
│     </div>
│     <div id='errorref'><span>20230209T180800Z-mmu9v3kqkd12h71uy272v50agn00000001c000000000pe7v</span>
│     </div>
│   </div>
│ </body>
│ </html>
│ 
│   with module.netapp_use4.module.systems["primary"].netapp-cloudmanager_cvo_gcp.this,
│   on .terraform/modules/netapp_use4/modules/system/cvo.tf line 1, in resource "netapp-cloudmanager_cvo_gcp" "this":
│    1: resource "netapp-cloudmanager_cvo_gcp" "this" {
│ 
╵
chuyich commented 1 year ago

We added retries parameter on the CVO creation and it has been released in Nov 2022. Would you please use latest version 23.1.1 instead. The retries default value is 60. It means max retries 60 times (interval is 60 seconds)

chuyich commented 1 year ago

@bryanheo Please let us know if this helps.

bryanheo commented 1 year ago

@chuyich We have not applied the code change yet but I will let you know soon

chuyich commented 9 months ago

Close this issue since it's not updated for a long time. Please raise another one if need.