state: multiple test failures

Bug #1298703 reported by Dave Cheney
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Dave Cheney

Bug Description

State tests fail under gccgo. This looks like map ordering issues and an expectation that network addresses will be returned in a specific order.

Tags: gccgo ppc64el

Related branches

Revision history for this message
Dave Cheney (dave-cheney) wrote :

----------------------------------------------------------------------
FAIL: machine_test.go:1215: net_juju_core_state_test.TestSetAddresses.pN47_launchpad.net_juju_core_state_test.MachineSuite

[LOG] 0:00.004 INFO juju.state opening state; mongo addresses: ["localhost:45223"]; entity ""
[LOG] 0:00.006 INFO juju.state connection established
[LOG] 0:00.014 INFO juju.state adding state server info to legacy environment
[LOG] 0:00.014 INFO juju.state found existing state servers []
[LOG] 0:00.026 INFO juju.state initializing environment
machine_test.go:1228:
    c.Assert(machine.Addresses(), gc.DeepEquals, addresses)
... obtained []instance.Address = []instance.Address{instance.Address{Value:"8.8.8.8", Type:"ipv4", NetworkName:"", NetworkScope:""}, instance.Address{Value:"127.0.0.1", Type:"ipv4", NetworkName:"", NetworkScope:""}}
... expected []instance.Address = []instance.Address{instance.Address{Value:"127.0.0.1", Type:"ipv4", NetworkName:"", NetworkScope:""}, instance.Address{Value:"8.8.8.8", Type:"ipv4", NetworkName:"", NetworkScope:""}}

[LOG] 0:00.125 INFO juju Reset successfully reset admin password

----------------------------------------------------------------------
FAIL: unit_test.go:211: net_juju_core_state_test.TestGetPrivateAddressFromMachine.pN44_launchpad.net_juju_core_state_test.UnitSuite

[LOG] 0:00.002 INFO juju.state opening state; mongo addresses: ["localhost:36758"]; entity ""
[LOG] 0:00.006 INFO juju.state connection established
[LOG] 0:00.023 INFO juju.state adding state server info to legacy environment
[LOG] 0:00.024 INFO juju.state found existing state servers []
[LOG] 0:00.039 INFO juju.state initializing environment
unit_test.go:229:
    c.Check(address, gc.Equals, "127.0.0.1")
... obtained string = "8.8.8.8"
... expected string = "127.0.0.1"

[LOG] 0:00.131 INFO juju Reset successfully reset admin password

----------------------------------------------------------------------
FAIL: unit_test.go:172: net_juju_core_state_test.TestGetPublicAddressFromMachine.pN44_launchpad.net_juju_core_state_test.UnitSuite

[LOG] 0:00.004 INFO juju.state opening state; mongo addresses: ["localhost:36758"]; entity ""
[LOG] 0:00.007 INFO juju.state connection established
[LOG] 0:00.022 INFO juju.state adding state server info to legacy environment
[LOG] 0:00.022 INFO juju.state found existing state servers []
[LOG] 0:00.042 INFO juju.state initializing environment
unit_test.go:190:
    c.Check(address, gc.Equals, "8.8.8.8")
... obtained string = "127.0.0.1"
... expected string = "8.8.8.8"

[LOG] 0:00.177 INFO juju Reset successfully reset admin password
OOPS: 417 passed, 3 FAILED
--- FAIL: TestPackage (84.12 seconds)
FAIL
FAIL launchpad.net/juju-core/state 84.463s

Changed in juju-core:
assignee: nobody → Dave Cheney (dave-cheney)
milestone: 1.18.0 → changelog.txt
status: Triaged → In Progress
milestone: changelog.txt → 1.18.0
Changed in juju-core:
status: In Progress → Fix Committed
Curtis Hovey (sinzui)
Changed in juju-core:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.