mongodb / terraform-provider-mongodbatlas

Terraform MongoDB Atlas Provider: Deploy, update, and manage MongoDB Atlas infrastructure as code through HashiCorp Terraform
https://registry.terraform.io/providers/mongodb/mongodbatlas
Mozilla Public License 2.0
241 stars 167 forks source link

Creating cluster eventually returns 503 #256

Closed mykewould closed 4 years ago

mykewould commented 4 years ago

When creating a cluster the provider will eventually return a 503 error. The cluster continues going on to be made, but Terraform doesn't think the cluster completed. This creates a problem where terraform always tries to recreate the already made cluster.

Error

[ERROR] [STDERR] * mongodbatlas_cluster.this: error creating MongoDB Cluster: GET 
https://cloud.mongodb.com/api/atlas/v1.0/groups/xxx/clusters/xxxr: 503 (request "<!DOCTYPE html>\n
<html>
   \n\n  
   <head>
      \n    
      <title>MongoDB Cloud Manager Unavailable</title>
      \n\n    
      <style type=\"text/css\">\n      body {\n        padding: 50px;\n        background: #f1f2f5;\n        color: #313030;\n        font-family: \"PT Sans\", \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n        text-align: center;\n      }\n\n      h1 {\n        //margin: 50px 0;\n        font-weight: normal;\n        font-size: 28px;\n      }\n\n      h2, h3 {\n        color: #615f5f;\n        font-size: 18px;\n        line-height: 28px;\n        font-weight: normal;\n        //margin-bottom: 50px;\n      }\n\n      h4 {\n        color: #615f5f;\n        font-size: 12px;\n        line-height: 28px;\n        font-weight: normal;\n        margin-bottom: 50px;\n      }\n\n      p {\n        color: #615f5f;\n        font-size: 16px;\n        margin: 10px 0;\n      }\n\n      a {\n        color: #006cbc;\n      }\n\n      .separator {\n        display: inline-block;\n        margin: 0 10px;\n        color: #a09f9e;\n      }\n    </style>
      \n  
   </head>
   \n\n  
   <body>
      \n    <img src=\"https://media.mongodb.org/logo-mongodb-onwhite-200.png\">\n\n    
      <h1>MongoDB Cloud Manager is currently unavailable</h1>
      \n\n    
      <p>\n      We'll restore service as soon as possible.<br/>\n      See our <a href=\"http://status.cloud.mongodb.com/\">status page</a> for more updates.\n    </p>
      \n\n    
      <h2>\n      If you need immediate assistance, please contact support:\n    </h2>
      \n\n    
      <p>\n      <strong>Americas</strong>: 1-646-201-9247\n      <span class=\"separator\">|</span> \n      <strong>Europe, Middle East & Africa</strong>: (0)20 300 49321\n      <span class=\"separator\">|</span> \n      <strong>Asia</strong>: +61 2 4022 8861\n    
      <p>\n      <strong>India</strong>: 000-800-100-7387 &nbsp;\n      <strong>Tokyo</strong>: +813457893597 <br/>\n      <strong>Beijing, China</strong>: +86-10-84053445 &nbsp;\n      <strong>Shenzen, China</strong>: +86-755-86243507 <br/>\n      <strong>Hong Kong</strong>: 800-906-177 &nbsp;\n      <strong>Taipei</strong>: +886-2-7745-0460\n    </p>
      \n    </h3>\n\n\n  
   </body>
   \n\n
</html>
\n")
themantissa commented 4 years ago

Hi @mykewould, Could you provide some more information to help us better understand how this potential issue is being reached:

Thanks! Melissa

themantissa commented 4 years ago

@mykewould we've released a preview version that should allow you to test if this fixes the issue (may be hard in this case so more fyi). If you can confirm we'd appreciate it. https://github.com/mongodb/terraform-provider-mongodbatlas/releases/tag/0.6.4