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

AddressPool name conversion should always handle defaultPoolName correctly #527

Merged
merged 2 commits into from Mar 14, 2017

Conversation

byxorna
Copy link
Contributor

@byxorna byxorna commented Mar 10, 2017

Fixes #416

This makes sure that we always map the pool name of an AddressPool to the DefaultPoolName if necessary, to avoid referring to implicit pools as "" some places, and by DefaultPoolName in others. The specific way this manifested was IP allocation requests for the default pool name (i.e. by using c.ipaddress_allocate!(:mytag, 'DEFAULT') would fail if ipAddress.defaultPoolName=DEFAULT, despite there being a pool with that name.

I ran into this deploying a collins instance into a topology that had only a single L2 network. I attempted to use the default pool, but found I was unable to allocate IPs from it until I renamed it.

NOTE: i have some unit tests to confirm this behavior, but I am unable to figure out how to override play configuration with WithApplication(FakeApplication(Map(additionalConfigHere))) in specs. Ill keep poking at it, but the change here has been manually verified and confirmed to fix #416.

@qx-xp @roymarantz @defect @michaeljs1990

@byxorna byxorna added the bug label Mar 10, 2017
@byxorna byxorna merged commit 364df19 into tumblr:master Mar 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IP Allocation in default pool fails
2 participants