Skip to content

Fixed named external_ip reservation/re-use code in gce driver. - #31183

Merged
cachedout merged 1 commit into
saltstack:2015.5from
heyfife:fix-gce-named-static-ip-reservation
Feb 17, 2016
Merged

cachedout merged 1 commit into
saltstack:2015.5from
heyfife:fix-gce-named-static-ip-reservation

Conversation

@heyfife

@heyfife heyfife commented Feb 12, 2016

Copy link
Copy Markdown
Contributor

When using a named external_ip, an exception was thrown every time.

Updated the __create_orget_address call and return to use the correct variable. Exceptions are no longer thrown and IP creation and re-use happens as expected. To test setup a profile like this:

dns-primary-w1c:
external_ip: "dns-primary"
size: f1-micro
image: centos-6-v20160126
location: europe-west1-c
use_persistent_disk: True
ex_disk_type: 'pd-standard'
delete_boot_pd: False
ssh_interface: private_ips
make_master: False
deploy: True
provider: my-gce-provider

Then in a map, use it in an example.map:

dns-primary-w1c:

  • my-dns-server

salt-cloud -m example.map

Check that it reserves a new static IP and assigns it to your new instance.

When using a named external_ip, an exception was thrown every time.
Updated the __create_orget_address call and return variable to use
the correct variable.
@cachedout

Copy link
Copy Markdown
Contributor

@techhat Any thoughts here?

@cachedout cachedout added the pending-discussion The issue or pull request needs more discussion before it can be closed or merged label Feb 16, 2016
cachedout pushed a commit that referenced this pull request Feb 17, 2016
…ation

Fixed named external_ip reservation/re-use code in gce driver.
@cachedout
cachedout merged commit 875d992 into saltstack:2015.5 Feb 17, 2016
@heyfife
heyfife deleted the fix-gce-named-static-ip-reservation branch February 17, 2016 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending-discussion The issue or pull request needs more discussion before it can be closed or merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants