Skip to content

Flaky test: TestRunContainerWithBridgeNone #37246

@thaJeztah

Description

@thaJeztah

For example, https://jenkins.dockerproject.org/job/Docker-PRs-experimental/40976/console (#37172)

Looks like there's a race in this test, because it compares network interfaces on the host with network interfaces inside the container; if interfaces are removed between checking both (e.g. due to other containers being spun up), comparisson wil fail, and thust the test

04:05:55 FAIL: docker_cli_daemon_test.go:1490: DockerDaemonSuite.TestRunContainerWithBridgeNone
04:05:55 
04:05:55 [dea931f9f6e6a] waiting for daemon to start
04:05:55 [dea931f9f6e6a] daemon started
04:05:55 
04:05:55 docker_cli_daemon_test.go:1514:
04:05:55     c.Assert(out, check.Equals, fmt.Sprintf("%s", stdout),
04:05:55         check.Commentf("The network interfaces in container should be the same with host when --net=host when bridge network is disabled: %s", out))
04:05:55 ... obtained string = "" +
04:05:55 ...     "1: lo\n" +
04:05:55 ...     "7: docker_gwbridge\n" +
04:05:55 ...     "3904: br-9cec5b58de72\n" +
04:05:55 ...     "100: br-32891016ebfa\n" +
04:05:55 ...     "101: br-20cf078fc3bf\n" +
04:05:55 ...     "103: br-0c74ccf3066a\n" +
04:05:55 ...     "106: br-b41655ed3763\n" +
04:05:55 ...     "107: br-8e2071e5cfa1\n" +
04:05:55 ...     "109: br-fc16417d16c9\n" +
04:05:55 ...     "130: dm-a418cd2b76fb\n" +
04:05:55 ...     "133: dm-69b475baeb0d\n" +
04:05:55 ...     "136: dm-a740bf78a2dc\n" +
04:05:55 ...     "144: eth0@di-ca915dccc0d0\n" +
04:05:55 ...     "145: di-ca915dccc0d0\n" +
04:05:55 ...     "148: di-1a2bd995b101\n" +
04:05:55 ...     "151: di-d5caa148a467\n" +
04:05:55 ...     "154: di-5ab9f2f5e708\n" +
04:05:55 ...     "157: di-bbbd5834f313\n" +
04:05:55 ...     "162: di-85471b0e62aa\n" +
04:05:55 ...     "167: di-4713fc55f525\n" +
04:05:55 ...     "169: di-32d4cea211ec\n"
04:05:55 ... expected string = "" +
04:05:55 ...     "1: lo\n" +
04:05:55 ...     "7: docker_gwbridge\n" +
04:05:55 ...     "3904: br-9cec5b58de72\n" +
04:05:55 ...     "100: br-32891016ebfa\n" +
04:05:55 ...     "101: br-20cf078fc3bf\n" +
04:05:55 ...     "103: br-0c74ccf3066a\n" +
04:05:55 ...     "106: br-b41655ed3763\n" +
04:05:55 ...     "107: br-8e2071e5cfa1\n" +
04:05:55 ...     "109: br-fc16417d16c9\n" +
04:05:55 ...     "130: dm-a418cd2b76fb\n" +
04:05:55 ...     "133: dm-69b475baeb0d\n" +
04:05:55 ...     "136: dm-a740bf78a2dc\n" +
04:05:55 ...     "144: eth0@if145\n" +
04:05:55 ...     "145: di-ca915dccc0d0\n" +
04:05:55 ...     "148: di-1a2bd995b101\n" +
04:05:55 ...     "151: di-d5caa148a467\n" +
04:05:55 ...     "154: di-5ab9f2f5e708\n" +
04:05:55 ...     "157: di-bbbd5834f313\n" +
04:05:55 ...     "162: di-85471b0e62aa\n" +
04:05:55 ...     "167: di-4713fc55f525\n" +
04:05:55 ...     "169: di-32d4cea211ec\n"
04:05:55 ... The network interfaces in container should be the same with host when --net=host when bridge network is disabled: 1: lo
04:05:55 7: docker_gwbridge
04:05:55 3904: br-9cec5b58de72
04:05:55 100: br-32891016ebfa
04:05:55 101: br-20cf078fc3bf
04:05:55 103: br-0c74ccf3066a
04:05:55 106: br-b41655ed3763
04:05:55 107: br-8e2071e5cfa1
04:05:55 109: br-fc16417d16c9
04:05:55 130: dm-a418cd2b76fb
04:05:55 133: dm-69b475baeb0d
04:05:55 136: dm-a740bf78a2dc
04:05:55 144: eth0@di-ca915dccc0d0
04:05:55 145: di-ca915dccc0d0
04:05:55 148: di-1a2bd995b101
04:05:55 151: di-d5caa148a467
04:05:55 154: di-5ab9f2f5e708
04:05:55 157: di-bbbd5834f313
04:05:55 162: di-85471b0e62aa
04:05:55 167: di-4713fc55f525
04:05:55 169: di-32d4cea211ec
04:05:55 
04:05:55 
04:05:55 [dea931f9f6e6a] exiting daemon
04:05:58 

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/testingkind/bugBugs are bugs. The cause may or may not be known at triage time so debugging may be needed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions