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

Openstack creating secgroup timeout #9

Closed
hashibot opened this issue Jun 13, 2017 · 2 comments
Closed

Openstack creating secgroup timeout #9

hashibot opened this issue Jun 13, 2017 · 2 comments
Labels

Comments

@hashibot
Copy link

This issue was originally opened by @ChiefAlexander as hashicorp/terraform#8819. It was migrated here as part of the provider split. The original body of the issue is below.


When creating multiple security groups with the Openstack provider I ran into a issue where terraform would fail after 30 seconds.

Affected Resource(s)

Please list the resources as a list, for example:

  • openstack_networking_secgroup_v2

Terraform Configuration Files

I have 5 created security groups in a test file, just increased the number

resource "openstack_compute_secgroup_v2" "security_group" {
  name = "sec_group"
  description = "This is a security group"
  rule {
    from_port = 22
    to_port = 22
    ip_protocol = "tcp"
    cidr = "0.0.0.0/0"
  }
  rule {
    from_port = 1
    to_port = 65535
    ip_protocol = "udp"
    cidr = "${var.openstack_cidr}"
  }
  rule {
    from_port = 1
    to_port = 65535
    ip_protocol = "tcp"
    cidr = "${var.openstack_cidr}"
  }
  rule {
    from_port = 0
    to_port = 0
    ip_protocol = "icmp"
    cidr = "0.0.0.0/0"
  }
  rule {
    from_port = 8
    to_port = 0
    ip_protocol = "icmp"
    cidr = "0.0.0.0/0"
  }
}

resource "openstack_compute_secgroup_v2" "security_group2" {
  name = "sec_group2"
  description = "This is a security group"
  rule {
    from_port = 22
    to_port = 22
    ip_protocol = "tcp"
    cidr = "0.0.0.0/0"
  }
  rule {
    from_port = 1
    to_port = 65535
    ip_protocol = "udp"
    cidr = "${var.openstack_cidr}"
  }
  rule {
    from_port = 1
    to_port = 65535
    ip_protocol = "tcp"
    cidr = "${var.openstack_cidr}"
  }
  rule {
    from_port = 0
    to_port = 0
    ip_protocol = "icmp"
    cidr = "0.0.0.0/0"
  }
  rule {
    from_port = 8
    to_port = 0
    ip_protocol = "icmp"
    cidr = "0.0.0.0/0"
  }
}

Debug Output

https://gist.github.com/ChiefAlexander/87875d431c5eaeedee699c8340ba47cc

Expected Behavior

Terraform should not have exited its build

Actual Behavior

Terraform quits after 30s of trying to create the security groups

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply

Important Factoids

Our Openstack instance has a known issue of being slow to create security groups

@hashibot hashibot added the bug label Jun 13, 2017
@ChiefAlexander
Copy link
Contributor

As per the discussion on hashicorp/terraform#8819 this can be closed. The issue was with our openstack not with terraform

@fatmcgav
Copy link
Contributor

Closing as per @ChiefAlexander 's comment.

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

No branches or pull requests

3 participants