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

Setting IPv6 subnet without IPv4 in docker_network triggers recreate #953

Open
mattlqx opened this issue Dec 13, 2017 · 0 comments
Open

Comments

@mattlqx
Copy link
Contributor

mattlqx commented Dec 13, 2017

Cookbook version

2.17.0

Chef-client version

13.6.0

Platform Details

Ubuntu 16.04

Scenario:

I noticed while running the tests for #952 that a recreate is triggered for the IPv6 network test. This is because the resource only specifies an IPv6 subnet. (https://github.com/chef-cookbooks/docker/blob/v2.17.0/test/cookbooks/docker_test/recipes/network.rb#L233-L237) Docker will auto-assign an IPv4 subnet to the network if one isn't specified and on subsequent Chef runs, the network state is loaded and is seen to have the extra IPv4 subnet triggering a recreate.

  * docker_network[network_ipv6] action create
    - deleting network_ipv6
    - update network_ipv6
    -   set subnet      to "fd00:dead:beef::/48" (was ["172.24.0.0/16", "fd00:dead:beef::/48"])

Steps to Reproduce:

Run kitchen converge network twice and observe the recreation of the network.

Expected Result:

An up-to-date resource on subsequent runs.

Actual Result:

The network is destroyed and recreated.

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

No branches or pull requests

4 participants