Improve hook error reporting
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
High
|
Frank Mueller |
Bug Description
Extend status with error information to provide a better hook error reporting.
1) add a `Data map[string]
2) add that field to all the API bits (including the allwatcher status stream)
3) add relevant data in case of relation hook errors (so: relation tag, hook kind, remote unit)
4) make sure that data comes out in the AllWatcher stream
5) make sure it's also put into status output
Gary adds this one:
6) make sure that we can correlate relation error identifiers with AllWatcher relation info. I think we are using the tag as the AllWatcher relation identifier, in which case we don't need to add anything, but I'd like to verify that.
Also add dict to machineStatus and keep similar signatures in sync.
Related branches
- Juju Engineering: Pending requested
-
Diff: 63 lines (+6/-2)4 files modifiedstate/api/params/params.go (+1/-0)
state/api/params/params_test.go (+3/-2)
state/megawatcher.go (+1/-0)
state/megawatcher_internal_test.go (+1/-0)
- Juju Engineering: Pending requested
-
Diff: 1136 lines (+340/-102)33 files modifiedcmd/juju/resolved_test.go (+1/-1)
cmd/juju/status_test.go (+2/-2)
cmd/jujud/machine_test.go (+1/-1)
state/api/machiner/machine.go (+2/-2)
state/api/machiner/machiner_test.go (+2/-2)
state/api/params/internal.go (+1/-0)
state/api/params/params.go (+5/-0)
state/api/params/params_test.go (+2/-2)
state/api/uniter/unit.go (+2/-2)
state/api/uniter/unit_test.go (+2/-2)
state/apiserver/client/api_test.go (+2/-2)
state/apiserver/client/client_test.go (+1/-1)
state/apiserver/common/setstatus.go (+3/-3)
state/apiserver/common/setstatus_test.go (+10/-8)
state/apiserver/machine/machiner_test.go (+2/-2)
state/apiserver/provisioner/provisioner_test.go (+10/-10)
state/apiserver/uniter/uniter_test.go (+2/-2)
state/export_test.go (+21/-0)
state/interface.go (+1/-1)
state/machine.go (+2/-1)
state/machine_test.go (+63/-13)
state/megawatcher.go (+2/-0)
state/megawatcher_internal_test.go (+53/-17)
state/state_test.go (+1/-1)
state/status.go (+4/-0)
state/unit.go (+4/-2)
state/unit_test.go (+112/-11)
worker/deployer/deployer_test.go (+2/-2)
worker/machiner/machiner.go (+2/-2)
worker/provisioner/provisioner_task.go (+1/-1)
worker/uniter/filter_test.go (+3/-3)
worker/uniter/modes.go (+7/-6)
worker/uniter/uniter.go (+12/-0)
- Juju Engineering: Pending requested
-
Diff: 898 lines (+260/-103)18 files modifiedcmd/builddb/main.go (+2/-2)
cmd/juju/status.go (+3/-2)
cmd/jujud/unit_test.go (+2/-2)
state/api/machiner/machiner_test.go (+4/-2)
state/api/uniter/unit_test.go (+4/-2)
state/apiserver/machine/machiner_test.go (+2/-2)
state/apiserver/provisioner/provisioner.go (+1/-1)
state/apiserver/provisioner/provisioner_test.go (+1/-1)
state/apiserver/uniter/uniter_test.go (+2/-2)
state/export_test.go (+0/-21)
state/machine.go (+3/-2)
state/machine_test.go (+71/-25)
state/unit.go (+5/-4)
state/unit_test.go (+20/-25)
worker/machiner/machiner_test.go (+2/-2)
worker/provisioner/provisioner_test.go (+1/-1)
worker/uniter/modes.go (+9/-1)
worker/uniter/uniter_test.go (+128/-6)
description: | updated |
Changed in juju-core: | |
milestone: | none → 1.15.1 |
status: | In Progress → Fix Committed |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
Frank, please document this in the release notes /docs.google. com/a/canonical .com/document/ d/1o8YsLrQuadB1 gbd5veJ3cpN_ r2uozKwwTmIh1Rm OVHM/edit#
https:/
On Wed, Sep 18, 2013 at 4:27 AM, Frank Mueller /bugs.launchpad .net/bugs/ 1224568 interface{ }` to statusDoc /bugs.launchpad .net/juju- core/+bug/ 1224568/ +subscriptions
<email address hidden> wrote:
> ** Branch linked: lp:~themue/juju-core/046-added-status-data
>
> --
> You received this bug notification because you are subscribed to juju-
> core.
> Matching subscriptions: MOAR JUJU SPAM!
> https:/
>
> Title:
> Improve hook error reporting
>
> Status in juju-core:
> In Progress
>
> Bug description:
> Extend status with error information to provide a better hook error
> reporting.
>
> 1) add a `Data map[string]
> 2) add that field to all the API bits (including the allwatcher status stream)
> 3) add relevant data in case of relation hook errors (so: relation tag, hook kind, remote unit)
> 4) make sure that data comes out in the AllWatcher stream
> 5) make sure it's also put into status output
>
> Gary adds this one:
> 6) make sure that we can correlate relation error identifiers with AllWatcher relation info. I think we are using the tag as the AllWatcher relation identifier, in which case we don't need to add anything, but I'd like to verify that.
>
> Also add dict to machineStatus and keep similar signatures in sync.
>
> To manage notifications about this bug go to:
> https:/