Repository navigation
Fixed named external_ip reservation/re-use code in gce driver. - #31183
Merged
cachedout merged 1 commit intoFeb 17, 2016
Merged
Conversation
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.
Contributor
|
@techhat Any thoughts here? |
cachedout
pushed a commit
that referenced
this pull request
Feb 17, 2016
…ation Fixed named external_ip reservation/re-use code in gce driver.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
salt-cloud -m example.map
Check that it reserves a new static IP and assigns it to your new instance.