dooferlad@homework2 ~/dev/go/src/github.com/juju/juju/provider/ec2 $ go test -race
----------------------------------------------------------------------
FAIL: local_test.go:839: localServerSuite.TestNetworkInterfaces
[LOG] 0:00.000 DEBUG juju.testing setting feature flags: address-allocation
[LOG] 0:00.002 DEBUG juju.environs.tools reading v1.* tools
[LOG] 0:00.002 INFO juju.environs.testing uploading FAKE tools 1.99.0-precise-amd64
[LOG] 0:00.012 INFO juju.environs.testing uploading FAKE tools 1.99.0-trusty-amd64
[LOG] 0:00.017 INFO juju.environs.testing uploading FAKE tools 1.99.0-precise-i386
[LOG] 0:00.024 INFO juju.environs.testing uploading FAKE tools 1.99.0-trusty-i386
[LOG] 0:00.029 INFO juju.environs.tools Writing tools/streams/v1/index2.json
[LOG] 0:00.030 INFO juju.environs.tools Writing tools/streams/v1/index.json
[LOG] 0:00.030 INFO juju.environs.tools Writing tools/streams/v1/com.ubuntu.juju-released-tools.json
[LOG] 0:00.036 INFO juju.provider.ec2 opening environment "sample"
[LOG] 0:00.043 INFO juju.network setting prefer-ipv6 to false
[LOG] 0:00.043 DEBUG juju.environs using image datasource "default cloud images"
[LOG] 0:00.044 DEBUG juju.environs.simplestreams read metadata index at "test:/streams/v1/index.json"
[LOG] 0:00.048 DEBUG juju.environs.simplestreams metadata: &{map[com.ubuntu.cloud:server:13.04:i386:{raring 13.04 i386 map[20121218:0xc82001e5a0]} com.ubuntu.cloud:server:14.04:amd64:{trusty 14.04 amd64 map[20121218:0xc82001e0c0]} com.ubuntu.cloud:server:14.04:i386:{trusty 14.04 i386 map[20121218:0xc82001e1e0]} com.ubuntu.cloud:server:12.10:amd64:{quantal 12.10 amd64 map[20121218:0xc82001e300]} com.ubuntu.cloud:server:12.10:i386:{quantal 12.10 i386 map[20121218:0xc82001e420]}] map[] products:1.0 com.ubuntu.cloud:released:aws }
[LOG] 0:00.049 DEBUG juju.environs.bootstrap environment "sample" supports service/machine networks: true
[LOG] 0:00.049 DEBUG juju.environs.bootstrap network management by juju enabled: true
[LOG] 0:00.049 INFO juju.environs.bootstrap looking for bootstrap tools: version=1.99.0
[LOG] 0:00.049 INFO juju.environs.tools findng tools in stream "released"
[LOG] 0:00.049 INFO juju.environs.tools reading tools with major.minor version 1.99
[LOG] 0:00.049 INFO juju.environs.tools filtering tools by version: 1.99.0
[LOG] 0:00.050 DEBUG juju.environs.simplestreams read metadata index at "file:///tmp/check-6129484611666145821/43/tools/streams/v1/index2.json"
[LOG] 0:00.059 DEBUG juju.environs.simplestreams metadata: &{map[com.ubuntu.juju:12.04:amd64:{ 1.99.0 amd64 map[20150820:0xc8201e40c0]} com.ubuntu.juju:12.04:i386:{ 1.99.0 i386 map[20150820:0xc8201e4240]} com.ubuntu.juju:14.04:amd64:{ 1.99.0 amd64 map[20150820:0xc8201e4360]} com.ubuntu.juju:14.04:i386:{ 1.99.0 i386 map[20150820:0xc8201e44e0]}] map[] Thu, 20 Aug 2015 09:41:30 +0100 products:1.0 com.ubuntu.juju:released:tools }
[LOG] 0:00.070 DEBUG juju.provider.ec2 availability zones: &{RequestId:req2 Zones:[{AvailabilityZone:{Name:test-unavailable Region:test} State:unavailable MessageSet:[]} {AvailabilityZone:{Name:test-available Region:test} State:available MessageSet:[]} {AvailabilityZone:{Name:test-impaired Region:test} State:impaired MessageSet:[]}]}
[LOG] 0:00.071 DEBUG juju.environs using image datasource "default cloud images"
[LOG] 0:00.071 DEBUG juju.environs.simplestreams read metadata index at "test:/streams/v1/index.json"
[LOG] 0:00.075 DEBUG juju.environs.simplestreams metadata: &{map[com.ubuntu.cloud:server:14.04:amd64:{trusty 14.04 amd64 map[20121218:0xc820308d20]} com.ubuntu.cloud:server:14.04:i386:{trusty 14.04 i386 map[20121218:0xc820308f00]} com.ubuntu.cloud:server:12.10:amd64:{quantal 12.10 amd64 map[20121218:0xc820309020]} com.ubuntu.cloud:server:12.10:i386:{quantal 12.10 i386 map[20121218:0xc820309140]} com.ubuntu.cloud:server:13.04:i386:{raring 13.04 i386 map[20121218:0xc820309260]}] map[] products:1.0 com.ubuntu.cloud:released:aws }
[LOG] 0:00.075 INFO juju.environs.instances find instance - using image with id: ami-00000033
[LOG] 0:00.075 DEBUG juju.cloudconfig.instancecfg Setting numa ctl preference to false
[LOG] 0:00.293 DEBUG juju.service discovered init system "upstart" from series "trusty"
[LOG] 0:00.297 DEBUG juju.provider.ec2 ec2 user data; 514 bytes
[LOG] 0:00.313 INFO juju.provider.ec2 started instance "i-3" in "test-available"
[LOG] 0:00.330 DEBUG juju.provider.common putting "provider-state" to bootstrap storage *ec2.ec2storage
[LOG] 0:00.333 INFO juju.environs.bootstrap newest version: 1.99.0
[LOG] 0:00.333 INFO juju.environs.bootstrap picked bootstrap tools version: 1.99.0
[LOG] 0:00.334 DEBUG juju.cloudconfig.instancecfg Setting numa ctl preference to false
[LOG] 0:00.531 WARNING juju.environs.testing provider/common.FinishBootstrap is disabled
local_test.go:856:
c.Assert(interfaces, jc.DeepEquals, expectedInterfaces)
... obtained []network.InterfaceInfo = []network.InterfaceInfo{network.InterfaceInfo{DeviceIndex:0, MACAddress:"20:01:60:cb:27:37", CIDR:"10.10.2.0/24", NetworkName:"", ProviderId:"eni-0", ProviderSubnetId:"subnet-2", VLANTag:0, InterfaceName:"unsupported0", Disabled:false, NoAutoStart:false, ConfigType:"dhcp", Address:local-cloud:10.10.2.5, DNSServers:[]network.Address(nil), DNSSearch:"", GatewayAddress:, ExtraConfig:map[string]string(nil)}}
... expected []network.InterfaceInfo = []network.InterfaceInfo{network.InterfaceInfo{DeviceIndex:0, MACAddress:"20:01:60:cb:27:37", CIDR:"10.10.0.0/24", NetworkName:"", ProviderId:"eni-0", ProviderSubnetId:"subnet-0", VLANTag:0, InterfaceName:"unsupported0", Disabled:false, NoAutoStart:false, ConfigType:"dhcp", Address:local-cloud:10.10.0.5, DNSServers:[]network.Address(nil), DNSSearch:"", GatewayAddress:, ExtraConfig:map[string]string(nil)}}
... mismatch at [0].CIDR: unequal; obtained "10.10.2.0/24"; expected "10.10.0.0/24"
==================
WARNING: DATA RACE
Read by goroutine 266:
gopkg.in/amz.v3/ec2/ec2test.(*Server).serveHTTP()
/home/dooferlad/dev/go/src/gopkg.in/amz.v3/ec2/ec2test/server_internals.go:94 +0x87
gopkg.in/amz.v3/ec2/ec2test.NewServer.func1()
/home/dooferlad/dev/go/src/gopkg.in/amz.v3/ec2/ec2test/server.go:79 +0x4b
net/http.HandlerFunc.ServeHTTP()
/tmp/workdir/go/src/net/http/server.go:1422 +0x47
net/http.serverHandler.ServeHTTP()
/tmp/workdir/go/src/net/http/server.go:1862 +0x206
net/http.(*conn).serve()
/tmp/workdir/go/src/net/http/server.go:1361 +0x117c
Previous write by goroutine 173:
gopkg.in/amz.v3/ec2/ec2test.(*Server).serveHTTP()
/home/dooferlad/dev/go/src/gopkg.in/amz.v3/ec2/ec2test/server_internals.go:94 +0xb3
gopkg.in/amz.v3/ec2/ec2test.NewServer.func1()
/home/dooferlad/dev/go/src/gopkg.in/amz.v3/ec2/ec2test/server.go:79 +0x4b
net/http.HandlerFunc.ServeHTTP()
/tmp/workdir/go/src/net/http/server.go:1422 +0x47
net/http.serverHandler.ServeHTTP()
/tmp/workdir/go/src/net/http/server.go:1862 +0x206
net/http.(*conn).serve()
/tmp/workdir/go/src/net/http/server.go:1361 +0x117c
Goroutine 266 (running) created at:
net/http.(*Server).Serve()
/tmp/workdir/go/src/net/http/server.go:1910 +0x464
net/http.Serve()
/tmp/workdir/go/src/net/http/server.go:1765 +0xc5
Goroutine 173 (running) created at:
net/http.(*Server).Serve()
/tmp/workdir/go/src/net/http/server.go:1910 +0x464
net/http.Serve()
/tmp/workdir/go/src/net/http/server.go:1765 +0xc5
==================
OOPS: 99 passed, 2 skipped, 1 FAILED
--- FAIL: TestEC2 (25.33s)
FAIL
exit status 1
FAIL github.com/juju/juju/provider/ec2 25.497s
1 ✗ dooferlad@homework2 ~/dev/go/src/github.com/juju/juju/provider/ec2 $ go test -race -check.f localServerSuite.TestNetworkInterfaces
OK: 1 passed
PASS
ok github.com/juju/juju/provider/ec2 1.666s
0 ✓ dooferlad@homework2 ~/dev/go/src/github.com/juju/juju/provider/ec2 $