Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error message for "cluster-relation-change" hook failure is unclear for user #21

Open
a-velasco opened this issue Mar 4, 2024 · 0 comments

Comments

@a-velasco
Copy link
Contributor

a-velasco commented Mar 4, 2024

Issue

Mongos' message hook failed: "cluster-relation-changed" and error status are not very informative for an end user.

Example

On a sharded cluster, I deployed data-integrator without any config specifications:

juju deploy data-integrator
juju deploy mongos --channel 6/edge

which leaves it in a blocked state.

While still blocked, I tried to integrate it with mongos:

juju integrate mongos data-integrator

This gave the following juju status output for mongos:

App              Version  Status   Scale  Charm            Channel  Rev  Exposed  Message
config-server             active       1  mongodb          6/beta   149  no       Primary
data-integrator           blocked      1  data-integrator  stable    19  no       Please specify either topic, index, or database name
mongos                    error        1  mongos           6/edge     5  no       hook failed: "cluster-relation-changed"
shard0                    active       1  mongodb          6/beta   149  no       Primary
shard1                    active       1  mongodb          6/beta   149  no       Primary

Solution

As suggested by @MiaAltieri, the status for this event could instead go into blocked with a more explanatory error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant