Skip to content

Conversation

@thaJeztah
Copy link
Member

@thaJeztah thaJeztah commented Mar 19, 2018

Full diff: vishvananda/netlink@b2de5d1...v1.0.0

Changes included:

ping @aboch @fcrisciani PTAL

Looks like with this changes, only the system/meminfo code is needing CGO https://github.com/docker/libnetwork/blob/873af3416744d02ea044cf02a46d6dc3857b9062/vendor/github.com/docker/docker/pkg/system/meminfo_solaris.go#L1, which could probably be updated

@thaJeztah
Copy link
Member Author

thaJeztah commented Mar 19, 2018

Looks like I need to update golang/x/sys/ accordingly;

# github.com/docker/libnetwork/vendor/github.com/vishvananda/netlink
vendor/github.com/vishvananda/netlink/bridge_linux.go:22:27: undefined: unix.IFLA_EXT_MASK
vendor/github.com/vishvananda/netlink/bridge_linux.go:38:9: undefined: unix.IFLA_AF_SPEC
vendor/github.com/vishvananda/netlink/bridge_linux.go:90:21: undefined: unix.IFLA_AF_SPEC
vendor/github.com/vishvananda/netlink/link_linux.go:380:23: undefined: unix.IFLA_VFINFO_LIST
vendor/github.com/vishvananda/netlink/link_linux.go:410:23: undefined: unix.IFLA_VFINFO_LIST
vendor/github.com/vishvananda/netlink/link_linux.go:440:23: undefined: unix.IFLA_VFINFO_LIST
vendor/github.com/vishvananda/netlink/link_linux.go:471:23: undefined: unix.IFLA_VFINFO_LIST
vendor/github.com/vishvananda/netlink/link_linux.go:505:23: undefined: unix.IFLA_VFINFO_LIST
vendor/github.com/vishvananda/netlink/link_linux.go:632:23: undefined: unix.IFLA_NET_NS_FD
vendor/github.com/vishvananda/netlink/link_linux.go:1004:28: undefined: unix.IFLA_NUM_TX_QUEUES
vendor/github.com/vishvananda/netlink/link_linux.go:1004:28: too many errors
# github.com/docker/libnetwork/ipvs
ipvs/ipvs.go:94:32: cannot use &tv (type *syscall.Timeval) as type *unix.Timeval in argument to sock.SetSendTimeout
ipvs/ipvs.go:98:35: cannot use &tv (type *syscall.Timeval) as type *unix.Timeval in argument to sock.SetReceiveTimeout
make: *** [build-local] Error 2
Makefile:27: recipe for target 'build-local' failed
make: *** [circle-ci-build] Error 2

Looks like this needs golang/sys@88d2dcc, so let me bump it to current master; also need to bump moby/moby, to pull in moby/moby@86f080c

@thaJeztah thaJeztah force-pushed the bump-netlink branch 6 times, most recently from 8f1e741 to d637c89 Compare March 19, 2018 18:16
@thaJeztah thaJeztah changed the title Bump vishvananda/netlink to 1.0.0 [wip] Bump vishvananda/netlink to 1.0.0 Mar 19, 2018
Changes included:

- Allow index specification at link creation time
- replace syscall with golang.org/x/sys/unix
  - related: Use IFF_MULTI_QUEUE from x/sys/unix to define TUNTAP_MULTI_QUEUE
  - related: Use IFLA_* constants from x/sys/unix
- Fix index out of range when no metadata for gretap
- added encapsulation attributes for Iptun and Sittun to support SIT tunnels
- Expose xfrm state's statistics
- Support invert in ip rules
- Support LWTUNNEL_ENCAP_SEG6
- Support setting and retrieving route MTU/AdvMSS
- Fix CalcRtable array parameter bug
- added support for Foo-over-UDP netlink calls
- Support num{tx,rx}queues and udp6zerocsum{tx,rx}
- tuntap: Add multiqueue support
- Retrieve VLAN ID when listing neighbour
- Fix LinkAdd for sit tunnel on 3.10 kernel
- Add support for managing source MACVLANs
- Two functions: one for adding bond slave, one for getting veth peer index
- Eliminate cgo from netlink
- Don't overwrite the XDP file descriptor with flags
- Fix reference to BPF instructions (on Kernel 4.13)
- Add Matchall filter
- Send IFA_CACHEINFO when setting up addresses
- Support IPv6 GRE Tun and Tap
- Add List option to RouteSubscribeWithOptions, AddrSubscribeWithOptions, and LinkSubscribeWithOptions
- Add Fq and Fq_Codel Qdisc support

Signed-off-by: Sebastiaan van Stijn <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
Also adds github.com/coreos/pkg as a dependency

Signed-off-by: Sebastiaan van Stijn <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
Also adds github.com/cyphar/filepath-securejoin

Signed-off-by: Sebastiaan van Stijn <[email protected]>

if err != nil {
if err == plugins.ErrNotFound {
if errors.Cause(err) == plugins.ErrNotFound {
Copy link
Member Author

Choose a reason for hiding this comment

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

This fixes:

--- FAIL: TestUnknownDriver (15.00s)
	libnetwork_test.go:213: Did not fail with expected error. Actual error: could not find plugin unknowndriver in v1 plugin registry: plugin not found

--- FAIL: TestNilRemoteDriver (15.00s)
	libnetwork_test.go:225: Did not fail with expected error. Actual error: could not find plugin framerelay in v1 plugin registry: plugin not found

Copy link
Member Author

Choose a reason for hiding this comment

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

Wonder if this is an actual issue currently; this was revealed due to docker/docker being bumped here, but likely is an issue in the current version in that repository


if err != nil {
if err == plugins.ErrNotFound {
if errors.Cause(err) == plugins.ErrNotFound {
Copy link
Member Author

Choose a reason for hiding this comment

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

Similar to the above, but not sure if there's a test case covering this;

--- FAIL: TestUnknownDriver (15.00s)
	libnetwork_test.go:213: Did not fail with expected error. Actual error: could not find plugin unknowndriver in v1 plugin registry: plugin not found

--- FAIL: TestNilRemoteDriver (15.00s)
	libnetwork_test.go:225: Did not fail with expected error. Actual error: could not find plugin framerelay in v1 plugin registry: plugin not found

@thaJeztah
Copy link
Member Author

Noticed this warning; will have to look into this one;

=== RUN   TestValidRemoteDriver
time="2018-03-19T18:21:21Z" level=warning msg="driver error deleting network dummy : NetworkDriver.DeleteNetwork: 404 page not found\n"

This looks like an actual failure:

=== RUN   TestRequestReleaseAddressDuplicate
--- FAIL: TestRequestReleaseAddressDuplicate (0.00s)
	allocator_test.go:1436: IP 198.168.0.226/23 was previously allocated

@fcrisciani
Copy link

cc @abhi looks like one of the IPAM tests failed here

@amoghe
Copy link
Contributor

amoghe commented Nov 6, 2018

No <3 for this?

@roffe
Copy link

roffe commented Apr 8, 2019

did this die in usersub?

@euanh
Copy link
Contributor

euanh commented Jun 24, 2019

Superseded by #2366

@euanh euanh closed this Jun 24, 2019
@thaJeztah thaJeztah deleted the bump-netlink branch June 24, 2019 12:55
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.

5 participants