2021-11-30 19:43:51 |
Steven Parker |
description |
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.graylog-beats
nagios terminated foundations-maas admin/lma.nagios-monitors
...
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.graylog-beats
nagios terminated foundations-maas admin/lma.nagios-monitors
...
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
admin 223 joined dashboards grafana-dashboard requirer
admin 224 joined dashboards grafana-dashboard requirer
graylog-beats admin 227 joined beats elastic-beats provider 10.145.253.37/32,10.145.253.38/32,10.145.253.39/32,10.145.253.36/32 |
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.graylog-beats
nagios terminated foundations-maas admin/lma.nagios-monitors
...
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.graylog-beats
nagios terminated foundations-maas admin/lma.nagios-monitors
...
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
admin 223 joined dashboards grafana-dashboard requirer
admin 224 joined dashboards grafana-dashboard requirer
graylog-beats admin 227 joined beats elastic-beats provider 10.145.253.37/32,10.145.253.38/32,10.145.253.39/32,10.145.253.36/32 |
|