Unit Test Failure: remoteRelationsSuite.TestRemoteDyingRelationsChangedError

Bug #1802277 reported by Joseph Phillips
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
Low
Joseph Phillips
2.5
Fix Released
Low
Joseph Phillips

Bug Description

I've seen this twice in two days:

As per: http://ci.jujucharms.com/job/make-check-juju/1220/testReport/junit/github/com_juju_juju_worker_remoterelations/TestPackage/

[LOG] 0:00.201 DEBUG juju.worker.remoterelations local relation units changed -> publishing: params.RemoteRelationChangeEvent{RelationToken:"token-db2:db django:db", ApplicationToken:"token-django", Life:"", ForceCleanup:(*bool)(nil), Suspended:(*bool)(nil), SuspendedReason:"", ChangedUnits:[]params.RemoteRelationUnitChange(nil), DepartedUnits:[]int{1}, Macaroons:macaroon.Slice{(*macaroon.Macaroon)(0xc0001c0460)}}
[LOG] 0:00.201 ERROR juju.worker.remoterelations error in remote application worker for db2: publishing relation change {RelationToken:token-db2:db django:db ApplicationToken:token-django Life: ForceCleanup:<nil> Suspended:<nil> SuspendedReason: ChangedUnits:[] DepartedUnits:[1] Macaroons:[0xc0001c0460]} to remote model remote-model-uuid: failed
[LOG] 0:00.302 DEBUG juju.worker.remoterelations remote controller api addresses: [1.2.3.4:1234]
[LOG] 0:00.352 DEBUG juju.worker.remoterelations relations changed: []string{"db2:db django:db"}, true
[LOG] 0:00.352 DEBUG juju.worker.remoterelations relation "db2:db django:db" changed: {Error:<nil> Result:0xc000115550}
[LOG] 0:00.352 DEBUG juju.worker.remoterelations register remote relation db2:db django:db
[LOG] 0:00.352 DEBUG juju.worker.remoterelations import remote application token token-offer-db2-uuid for db2
remoterelations_test.go:498:
    s.assertRemoteRelationsChangedError(c, true)
remoterelations_test.go:73:
    c.Fatalf("failed to see expected calls. saw: %v", calls)
... Error: failed to see expected calls. saw: [{Relations [[db2:db django:db]]} {ExportEntities [[application-django relation-db2.db#django.db]]} {RegisterRemoteRelations [[{token-django model-local-model-uuid token-db2:db django:db {db2 requires db2 0} { map[] []} offer-db2-uuid data [0xc0001a7e30]}]]} {SaveMacaroon [relation-db2.db#django.db 0xc0001c04d0]} {ImportRemoteEntity [application-db2 token-offer-db2-uuid]} {WatchRelationSuspendedStatus [token-db2:db django:db [0xc0001c04d0]]} {WatchLocalRelationUnits [db2:db django:db]} {WatchRelationUnits [token-db2:db django:db [0xc0001c04d0]]}]

Changed in juju-core:
status: Triaged → Incomplete
importance: Undecided → Low
assignee: nobody → Joseph Phillips (manadart)
Revision history for this message
Joseph Phillips (manadart) wrote :

It is the last PublishRelationChange that is missing.

expected: [{Relations [[db2:db django:db]]} {ExportEntities [[application-django relation-db2.db#django.db]]} {RegisterRemoteRelations [[{token-django model-local-model-uuid token-db2:db django:db {db2 requires db2 0} { map[] []} offer-db2-uuid data [0xc0001ad260]}]]} {SaveMacaroon [relation-db2.db#django.db 0xc0001b6000]} {ImportRemoteEntity [application-db2 token-offer-db2-uuid]} {WatchRelationSuspendedStatus [token-db2:db django:db [0xc0001b6000]]} {WatchLocalRelationUnits [db2:db django:db]} {WatchRelationUnits [token-db2:db django:db [0xc0001b6000]]} {PublishRelationChange [{token-db2:db django:db token-django dying 0xc0001b1de0 <nil> [] [] [0xc0001b6000]}]}]

observed: [{Relations [[db2:db django:db]]} {ExportEntities [[application-django relation-db2.db#django.db]]} {RegisterRemoteRelations [[{token-django model-local-model-uuid token-db2:db django:db {db2 requires db2 0} { map[] []} offer-db2-uuid data [0xc0001ad180]}]]} {SaveMacaroon [relation-db2.db#django.db 0xc000493650]} {ImportRemoteEntity [application-db2 token-offer-db2-uuid]} {WatchRelationSuspendedStatus [token-db2:db django:db [0xc000493650]]} {WatchLocalRelationUnits [db2:db django:db]} {WatchRelationUnits [token-db2:db django:db [0xc000493650]]}]

Revision history for this message
Joseph Phillips (manadart) wrote :
affects: juju-core → juju
Changed in juju:
milestone: none → 2.4.6
status: Incomplete → Fix Committed
Revision history for this message
Joseph Phillips (manadart) wrote :
Changed in juju:
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.