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 Configuration has no authorityEnable and adminPwd #889

Closed
DanielHabenicht opened this issue Mar 4, 2021 · 2 comments · Fixed by #902
Closed

CSS Configuration has no authorityEnable and adminPwd #889

DanielHabenicht opened this issue Mar 4, 2021 · 2 comments · Fixed by #902
Assignees
Milestone

Comments

@DanielHabenicht
Copy link
Contributor

Terraform Version

Terraform v0.14.7
+ provider registry.terraform.io/opentelekomcloud/opentelekomcloud v1.23.2

Affected Resource(s)

  • opentelekomcloud_css_cluster_v1.css_cluster

Terraform Configuration Files

# env.tfvars
css_vpc_cidr          = "172.16.0.0/24"
css_subnet_cidr       = "172.16.0.0/24"
css_subnet_gateway_ip = "172.16.0.1"
css_node_number       = 1
css_flavor            = "css.medium.8"
css_volume_type       = "COMMON"
css_volume_size       = 40
css_availability_zone = "eu-de-01"

# main.tf
resource "opentelekomcloud_vpc_v1" "css_vpc" {
  name = "indicarus-css-vpc"
  cidr = var.css_vpc_cidr

  tags = {
    terraform = "true"
  }
}

resource "opentelekomcloud_vpc_subnet_v1" "css_subnet" {
  name       = "indicarus-css-subnet"
  cidr       = var.css_subnet_cidr
  vpc_id     = opentelekomcloud_vpc_v1.css_vpc.id

  gateway_ip = var.css_subnet_gateway_ip

  tags = {
    terraform = "true"
  }
}

resource "opentelekomcloud_networking_secgroup_v2" "css_sg" {
  name        = "indicarus-css-sg"
  description = "Security group for a CSS cluster."
}

resource "opentelekomcloud_networking_secgroup_rule_v2" "css_sg_rule" {
  direction         = "ingress"
  ethertype         = "IPv4"
  protocol          = "tcp"
  port_range_min    = 9200
  port_range_max    = 9200
  remote_ip_prefix  = "0.0.0.0/0"
  security_group_id = opentelekomcloud_networking_secgroup_v2.css_sg.id
}

resource "opentelekomcloud_css_cluster_v1" "css_cluster" {
  name            = "indicarus-css-cluster"
  expect_node_num = var.css_node_number
  node_config {
    flavor = var.css_flavor
    network_info {
      security_group_id = opentelekomcloud_networking_secgroup_v2.css_sg.id
      network_id        = opentelekomcloud_vpc_subnet_v1.css_subnet.id
      vpc_id            = opentelekomcloud_vpc_v1.css_vpc.id
    }
    volume {
      volume_type = var.css_volume_type
      size        = var.css_volume_size
    }

    availability_zone = var.css_availability_zone
  }
}

Debug Output/Panic Output

Not applicable

Steps to Reproduce

terraform init
terraform plan -out=tfplan
terraform apply tfplan

Expected Behavior

There is no way to retrieve or set the Authorization options like adminPwd.
This means there is no way to automate further actions, without manually going to the Web Portal.

Actual Behavior

No options supplied.

Important Factoids

None

References

Out of discussion in #878

@outcatcher outcatcher added this to the v1.23.3 milestone Mar 4, 2021
@outcatcher outcatcher self-assigned this Mar 9, 2021
@outcatcher outcatcher modified the milestones: v1.23.3, v1.23.4 Mar 12, 2021
@otc-zuul otc-zuul bot closed this as completed in #902 Mar 15, 2021
otc-zuul bot pushed a commit that referenced this issue Mar 15, 2021
Add `enable_authority` and `admin_pass` support

Summary of the Pull Request
Add enable_authority and admin_pass support for CSS cluster v1
Update SDK to upstream
Move to SDK implementation of CSS cluster v1
Resolve #880, resolve #889
PR Checklist

 Refers to: #889, #880
 Tests added/passed.
 Documentation updated.
 Schema updated.

Acceptance Steps Performed
=== RUN   TestAccCssClusterV1_basic
--- PASS: TestAccCssClusterV1_basic (1803.25s)
PASS

Process finished with exit code 0

Reviewed-by: Rodion Gyrbu <[email protected]>
Reviewed-by: Anton Sidelnikov <None>
Reviewed-by: None <None>
@aengelhorn
Copy link

The documentation structure is misleading: one could read it in a way that the enable_https and admin_pass parameters belong to the volume block, but they are parameters of opentelekomcloud_css_cluster_v1 itself.

@outcatcher
Copy link
Contributor

@aengelhorn This is already fixed in #926, will be part of the v1.23.6 release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants