Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CSS] The cluster cannot be created when backup_strategy.0.bucket is null #2469

Open
Lance52259 opened this issue Oct 29, 2022 · 0 comments
Open
Projects

Comments

@Lance52259
Copy link
Collaborator

Hi team,

I found a problem as follows:

│ Error: error creating CSS cluster, err={"status_code":500,"request_id":"d6d90283f2458cc2273168e21c6596ef","error_code":"","error_message":"<html>\r\n   <head>\r\n       <meta http-equiv='Content-Type' content='text/html; charset=utf-8' />\r\n   </head>\r\n   <body bgcolor='white'>\r\n       <div style='text-align: center;'>\r\n           <h1>HTTP STATUS:  500 </h1>\r\n           <hr>\r\n           <p>CloudMiddleWareTomcat</p>\r\n       </div>\r\n   </body>\r\n</html>\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n<!-- a padding to disable MSIE and Chrome friendly error page -->\r\n"}
│ 
│ 
│   with huaweicloud_css_cluster.test,
│   on main.tf line 78, in resource "huaweicloud_css_cluster" "test":
│   78: resource "huaweicloud_css_cluster" "test" {

There is my terraform script:

resource "huaweicloud_css_cluster" "test" {
  name            = var.cluster_name
  engine_version  = "7.9.3"
  expect_node_num = 3

  enterprise_project_id = data.huaweicloud_enterprise_project.default.id

  node_config {
    flavor            = "ess.spec-4u16g"
    availability_zone = data.huaweicloud_availability_zones.default.names[0]

    network_info {
      security_group_id = "6b026e04-f4e2-431d-8c3b-4f570658b414" // huaweicloud_networking_secgroup.default.id
      subnet_id         = huaweicloud_vpc_subnet.default.id
      vpc_id            = huaweicloud_vpc.default.id
    }

    volume {
      volume_type = "HIGH"
      size        = 40
    }
  }

  backup_strategy {
    keep_days  = 7
    start_time = "00:00 GMT+08:00"
    prefix     = "snapshot"
  }

  tags = {
    owner = "terraform"
  }

  lifecycle {
    ignore_changes = [
      enterprise_project_id,
    ]
  }
}
@github-actions github-actions bot added this to To do in kanban Oct 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
kanban
To do
Development

No branches or pull requests

1 participant