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

[v1.13.1] Cherry-Pick [#1875]: Fix issue in service update of published ports in host mode #1910

Merged

Conversation

yongtang
Copy link
Member

This pull request is for cherry-pick of #1875 to v1.13.1:
[#1875]: Fix issue in service update of published ports in host mode

In additional to the above cherry-picked PR, this PR also includes a fix up with allocatedPorts definition. The allocatedPorts was added in #1835 which is not part of the v1.13.1.

Signed-off-by: Yong Tang yong.tang.github@outlook.com

This fix tries to fix the issue in docker/docker/30199
where service update will not work when published ports is
host publish mode.

The reason for the issue is that `isPortsAllocated()`
does not capture host publish mode.

This fix address the issue by updating allocated ports if
there is any change in ports of host (non ingress) mode as well.

Unit tests have been added.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit adds the `allocatedPorts` for cherry-pick.
The `allocatedPorts` was added in PR moby#1835, which is
not part of the v1.13.1 cherry pick.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
@yongtang
Copy link
Member Author

/cc @aaronlehmann @thaJeztah this PR is for v1.13.1 of moby/moby#30199

@aaronlehmann
Copy link
Collaborator

LGTM

@yongtang
Copy link
Member Author

/cc @dongluochen @aboch

@aboch
Copy link

aboch commented Jan 30, 2017

looks good to me

@dongluochen
Copy link
Contributor

LGTM

@yongtang
Copy link
Member Author

Merging. Thanks all!

@yongtang yongtang merged commit 0af4050 into moby:bump_v1.13.1 Jan 30, 2017
yongtang added a commit to yongtang/docker that referenced this pull request Jan 30, 2017
…dd3eff5526e

This fix cherry-pick SwarmKit update to 0af40501a9cc98cd3e9425d2e4246dd3eff5526e
for branch 1.13.x. The following has been added:
- [moby/swarmkit#1909]: raft: Disable address change detection
- [moby/swarmkit#1910]: Fix issue in service update of published ports in host mode

This fix fixes moby#30199 in docker.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
@yongtang yongtang deleted the 30199-update-publish-mode-host-v1.13.1 branch January 30, 2017 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants