Graylog waiting on REST API
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Graylog Charm |
Invalid
|
Critical
|
Joe Guo |
Bug Description
The graylog unit is trying to use to local mongodb connection and reporting a Waiting for REST API status.
$ juju status graylog | grep waiting
graylog 3.0.1 waiting 3 graylog jujucharms 44 ubuntu
graylog/1* waiting idle 19 10.70.227.37 9000/tcp Waiting for: REST API
2020-10-07 15:57:52 INFO juju-log mongodb:274: Retrying REST API check...
2020-10-07 15:57:52 INFO juju-log mongodb:274: Error calling graylog api: HTTPConnectionP
2020-10-07 15:57:53 INFO juju-log mongodb:274: Error calling graylog api: HTTPConnectionP
The mongodb relation configuration is missing from graylog snap's server.conf:
$ juju ssh graylog/1 'sudo grep "^mongodb_uri" /var/snap/
mongodb_uri = mongodb:
This is a 3 unit deployment where the other units are properly settled and active, and including the correct mongodb configuration:
$ juju ssh graylog/0 'sudo grep "^mongodb_uri" /var/snap/
mongodb_uri = mongodb:
Related branches
- Xav Paice (community): Approve
- 🤖 prod-jenkaas-bootstack (community): Approve (continuous-integration)
- Celia Wang: Approve
-
Diff: 172 lines (+109/-2)3 files modifiedsrc/config.yaml (+2/-1)
src/reactive/graylog.py (+64/-0)
src/tests/unit/test_graylog.py (+43/-1)
Changed in charm-graylog: | |
status: | New → In Progress |
assignee: | nobody → Xav Paice (xavpaice) |
milestone: | none → 21.07 |
importance: | Undecided → Medium |
Changed in charm-graylog: | |
assignee: | Xav Paice (xavpaice) → nobody |
status: | In Progress → New |
$ juju --version
2.7.8-bionic-amd64
The broken unit remove not resolved the issue, adding a new unit resulted in a blocked charm status due to missing mongodb-relation:
$ juju status graylog/4 | grep ^graylog
graylog 3.0.1 blocked 1 graylog jujucharms 44 ubuntu
graylog/4 blocked executing 30 10.70.227.2 9000/tcp Missing relation to: mongodb
However the relation is present based on juju status:
$ juju status --relations | grep graylog: | grep mongodb mongodb: database graylog:mongodb mongodb regular
graylog-