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 provider doesn't update subnet allocation_pools #10942

Closed
c10l opened this issue Dec 28, 2016 · 4 comments · Fixed by #14782
Closed

Openstack provider doesn't update subnet allocation_pools #10942

c10l opened this issue Dec 28, 2016 · 4 comments · Fixed by #14782

Comments

@c10l
Copy link

c10l commented Dec 28, 2016

Hi there,

Terraform fails to update the start and end properties of allocation_pools on openstack_networking_network_v2 resources.

Terraform Version

0.8.2

Affected Resource(s)

  • openstack_networking_subnet_v2.bugreport

Terraform Configuration Files

resource "openstack_networking_network_v2" "bugreport" {
  name           = "bugreport"
  region         = "sal01"
  shared         = "false"
  admin_state_up = "true"
}

resource "openstack_networking_subnet_v2" "bugreport" {
  name        = "bugreport"
  region      = "sal01"
  network_id  = "${openstack_networking_network_v2.bugreport.id}"
  ip_version  = 4
  cidr        = "10.0.1.0/24"
  gateway_ip  = "10.0.1.1"
  enable_dhcp = "true"

  allocation_pools = {
    start = "10.0.1.150"
    end   = "10.0.1.200"
  }
}

Debug Output

https://gist.github.com/cassianoleal/c0c55ca6b1479c971832650dc64927f4

Expected Behavior

Apply should have changed the allocation_pools for the openstack_networking_subnet_v2 resource.

Actual Behavior

Nothing, apparently. allocation_pools were left intact and subsequent plans show the intended changes again.

Steps to Reproduce

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

  1. terraform apply
  2. Change allocation_pools start and/or end values
  3. terraform apply
  4. terraform plan
  5. neutron subnet-show bugreport

Obs: After a manual update using neutron subnet-update the plan comes empty as expected.

@jtopjian
Copy link
Contributor

jtopjian commented Jan 6, 2017

@cassianoleal Thank you for reporting this and sorry for the delay.

I've just confirmed that the provider (and the underlying OpenStack library) does not support updating the allocation pools yet. I'll work on getting this added.

@afritzler
Copy link

Just faced the same issue. The workaround for me was to change the pool size via Horizon.

@jtopjian
Copy link
Contributor

Quick update: I've submitted a patch to Gophercloud to support this. Once it's merged, I'll get this into Terraform right away.

@ghost
Copy link

ghost commented Apr 12, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants