Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

network: delete IP addrs on bridge model to prevent ARP conflict#1676

Merged
amshinde merged 1 commit intokata-containers:masterfrom
zhabinecho:fix-veth-arp-bug
May 16, 2019
Merged

network: delete IP addrs on bridge model to prevent ARP conflict#1676
amshinde merged 1 commit intokata-containers:masterfrom
zhabinecho:fix-veth-arp-bug

Conversation

@zhabinecho
Copy link

Fixes: #1673

Signed-off-by: Zha Bin zhabin@linux.alibaba.com

@WeiZhang555
Copy link
Member

/test

@jodh-intel
Copy link

Restarted the containerd CI which failed with what looks like a transitory error:

  failed to pull image: rpc error: code = Unknown desc = failed to pull and unpack image "docker.io/library/busybox:1.28": failed to unpack image on snapshotter overlayfs: failed to extract layer sha256:432b65032b9466b4dadcc5c7b11701e71d21c18400aae946b101ad16be62333a: mount callback failed on /var/lib/containerd/tmpmounts/containerd-mount743870557: link /var/lib/containerd/tmpmounts/containerd-mount743870557/bin/[ /var/lib/containerd/tmpmounts/containerd-mount743870557/bin/runsv: no such file or directory: unknown
    Expected error:
        <*status.statusError | 0xc000528510>: {
            Code: 2,
            Message: "failed to pull and unpack image \"docker.io/library/busybox:1.28\": failed to unpack image on snapshotter overlayfs: failed to extract layer sha256:432b65032b9466b4dadcc5c7b11701e71d21c18400aae946b101ad16be62333a: mount callback failed on /var/lib/containerd/tmpmounts/containerd-mount743870557: link /var/lib/containerd/tmpmounts/containerd-mount743870557/bin/[ /var/lib/containerd/tmpmounts/containerd-mount743870557/bin/runsv: no such file or directory: unknown",
            Details: nil,
        }
        rpc error: code = Unknown desc = failed to pull and unpack image "docker.io/library/busybox:1.28": failed to unpack image on snapshotter overlayfs: failed to extract layer sha256:432b65032b9466b4dadcc5c7b11701e71d21c18400aae946b101ad16be62333a: mount callback failed on /var/lib/containerd/tmpmounts/containerd-mount743870557: link /var/lib/containerd/tmpmounts/containerd-mount743870557/bin/[ /var/lib/containerd/tmpmounts/containerd-mount743870557/bin/runsv: no such file or directory: unknown
    not to have occurred

Copy link

@jodh-intel jodh-intel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution @zhabinecho!

lgtm

/cc @amshinde, @mcastelino.

return nil
// Restore the IPs that were cleared
err = setIPs(link, netPair.VirtIface.Addrs)
return err

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: you could simplify this to:

return setIPs(link, netPair.VirtIface.Addrs)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed it :-)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @zhabinecho!

@grahamwhaley grahamwhaley requested a review from amshinde May 15, 2019 08:27
Fixes: kata-containers#1673

Signed-off-by: Zha Bin <zhabin@linux.alibaba.com>
@lifupan
Copy link
Member

lifupan commented May 16, 2019

/test

Copy link
Member

@bergwolf bergwolf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This matches what we do with tap pair. Thanks!

@amshinde
Copy link
Member

this is already handled for the macvtap mode, somehow we missed it in the bridge mode.
@zhabinecho this lgtm, but I would like to understand if you are using the bridge mode at all, we are planning to get rid of the bridge mode. There is a PR open for it, I plan to push that soon.
Before that, I would like to hear from you, if you are fine with this, the we recommend switcing to the tcfilter mode to avoid any issues.

@amshinde amshinde merged commit 90539ac into kata-containers:master May 16, 2019
This was referenced Jun 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

network: arp conflict when use veth and bridge internetworking model

7 participants