apiserver/facades/controller/caasunitprovisioner: sporadic test failure in TestUpdateApplicationsUnits

Bug #1744579 reported by Roger Peppe on 2018-01-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju
Medium
Unassigned

Bug Description

The test CAASProvisionerSuite.TestUpdateApplicationsUnits in the package github.com/juju/juju/apiserver/facades/controller/caasunitprovisioner fails sporadically.

Tested with commit 2118c765b23491f4e68d000e79d4445929d3e8ff.

 FAIL: provisioner_test.go:194: CAASProvisionerSuite.TestUpdateApplicationsUnits

 [LOG] 0:00.000 DEBUG juju.apiserver.controller.caasunitprovisioner unit "gitlab/0" (uuid) has changed in the cloud
 [LOG] 0:00.000 DEBUG juju.apiserver.controller.caasunitprovisioner unit "gitlab/1" is unallocated
 [LOG] 0:00.000 DEBUG juju.apiserver.controller.caasunitprovisioner unit "gitlab/2" (uuid2) has been removed from the cloud
 provisioner_test.go:224:
     s.st.application.CheckCall(c, 0, "AddOperation", state.UnitUpdateProperties{
         ProviderId: "last-uuid",
         Address: "last-address", Ports: []string{"last-port"},
         Status: &status.StatusInfo{Status: status.Running, Message: "last message"},
     })
 /home/rog/src/go/src/github.com/juju/testing/stub.go:239:
     c.Check(call, jc.DeepEquals, expected)
 ... obtained testing.StubCall = testing.StubCall{FuncName:"AddOperation", Args:[]interface {}{state.UnitUpdateProperties{ProviderId:"another-uuid", Address:"another-address", Ports:[]string{"another-port"}, Status:(*status.StatusInfo)(0xc420420b40)}}}
 ... expected testing.StubCall = testing.StubCall{FuncName:"AddOperation", Args:[]interface {}{state.UnitUpdateProperties{ProviderId:"last-uuid", Address:"last-address", Ports:[]string{"last-port"}, Status:(*status.StatusInfo)(0xc420420c30)}}}
 ... mismatch at .Args[0].ProviderId: unequal; obtained "another-uuid"; expected "last-uuid"

 provisioner_test.go:236:
     s.st.application.units[1].(*mockUnit).CheckCall(c, 1, "UpdateOperation", state.UnitUpdateProperties{
         ProviderId: "another-uuid",
         Address: "another-address", Ports: []string{"another-port"},
         Status: &status.StatusInfo{Status: status.Running, Message: "another message"},
     })
 /home/rog/src/go/src/github.com/juju/testing/stub.go:239:
     c.Check(call, jc.DeepEquals, expected)
 ... obtained testing.StubCall = testing.StubCall{FuncName:"UpdateOperation", Args:[]interface {}{state.UnitUpdateProperties{ProviderId:"last-uuid", Address:"last-address", Ports:[]string{"last-port"}, Status:(*status.StatusInfo)(0xc420420b10)}}}
 ... expected testing.StubCall = testing.StubCall{FuncName:"UpdateOperation", Args:[]interface {}{state.UnitUpdateProperties{ProviderId:"another-uuid", Address:"another-address", Ports:[]string{"another-port"}, Status:(*status.StatusInfo)(0xc4202a5e60)}}}
 ... mismatch at .Args[0].ProviderId: unequal; obtained "last-uuid"; expected "another-uuid"

 OOPS: 0 passed, 1 FAILED
 --- FAIL: TestAll (0.00s)

tags: added: intermittent-failure unit-tests
Changed in juju:
status: New → Triaged
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers