Inability to add cross model relation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Ian Booth |
Bug Description
We have two models.
lma -- offers graylog as cross model relation
snap proxy - holds filebeat and consumes lma's graylog offer
Adding the relation from snap-store to lma for graylog <->filebeats does not result in the services configuring correctly via the charms.
--
SNAP PROXY MODEL ADDING RELATION TO GRAYLOG OFFER FROM LMA MODEL
juju status --relations
Model Controller Cloud/Region Version SLA Timestamp
snap-store-proxy foundations-maas maas_cloud 2.9.18 unsupported 02:00:03Z
SAAS Status Store URL
graylog active foundations-maas admin/lma.
nagios terminated foundations-maas admin/lma.
...
App Version Status Scale Charm Store Channel Rev OS Message
filebeat 5.6.16 waiting 4 filebeat charmstore stable 24 ubuntu Waiting for: elasticsearch, logstash or kafka.
...
filebeat/0* waiting idle 10.145.253.36 Waiting for: elasticsearch, logstash or kafka.
---
juju add-relation filebeat graylog <<--- adding relation here
---
sleep 120 Actually same status after 10 minutes
----
juju status --relations
Model Controller Cloud/Region Version SLA Timestamp
snap-store-proxy foundations-maas maas_cloud 2.9.18 unsupported 02:02:47Z
SAAS Status Store URL
graylog active foundations-maas admin/lma.
nagios terminated foundations-maas admin/lma.
...
filebeat 5.6.16 waiting 4 filebeat charmstore stable 24 ubuntu Waiting for: elasticsearch, logstash or kafka.
...
graylog:beats filebeat:logstash elastic-beats regular
---
relation shows up but filebeat does not link up with graylog correctly.
Still in state:
filebeat/1 waiting idle 10.145.253.37 Waiting for: elasticsearch, logstash or kafka.
---
LMA MODEL PROVIDING GRAYLOG OFFER
juju status -m lma --relations
Model Controller Cloud/Region Version SLA Timestamp
lma foundations-maas maas_cloud 2.9.18 unsupported 02:12:53Z
...
elasticsearch 5.6.16 active 3 elasticsearch charmstore stable 51 ubuntu Unit is ready
...
Offer Application Charm Rev Connected Endpoint Interface Role
grafana grafana grafana 51 3/3 dashboards grafana-dashboard requirer
graylog-beats graylog graylog 50 1/1 beats elastic-beats provider <<<<--- 1/1 relations ?
-----
Think we should see more relations here as snapstore model has 4 filebeat units
juju offers -m lma
Offer User Relation id Status Endpoint Interface Role Ingress subnets
grafana admin 219 joined dashboards grafana-dashboard requirer
graylog-beats admin 227 joined beats elastic-beats provider 10.145.
description: | updated |
Changed in juju: | |
status: | Incomplete → New |
Changed in juju: | |
milestone: | none → 2.9.22 |
assignee: | nobody → Ian Booth (wallyworld) |
importance: | Undecided → High |
status: | New → In Progress |
Changed in juju: | |
status: | In Progress → Fix Committed |
Changed in juju: | |
status: | Fix Committed → Fix Released |
This bug occurred on the same juju controller as bug https:/ /bugs.launchpad .net/juju/ +bug/1952796
Relevant artifacts for this bug...
Juju controller SOS reports: /private- fileshare. canonical. com/~sbparke/ sosreport- juju-1- Juju-CMR- Controller- 0-2021- 11-30-npxesvi. tar.xz /private- fileshare. canonical. com/~sbparke/ sosreport- juju-3- Juju-CMR- Controller- 1-2021- 11-30-olgynuc. tar.xz /private- fileshare. canonical. com/~sbparke/ sosreport- juju-2- Juju-CMR- Controller- 2-2021- 11-30-lahomhg. tar.xz
https:/
https:/
https:/
Crash Dumps for snap-store and LMA models: /private- fileshare. canonical. com/~sbparke/ juju-crashdump- 59a7cfdd- f754-4641- aebd-26c072ca29 eb-lmaModel. tar.xz /private- fileshare. canonical. com/~sbparke/ juju-crashdump- 29162c9a- 5244-45b6- ab1e-07927bd614 b8-snap- storeModel. tar.xz
https:/
https:/
Controller database: /private- fileshare. canonical. com/~sbparke/ sanitizedMongoD B.tgz
https:/