Comment 2 for bug 1930649

Revision history for this message
Leon (sed-i) wrote :

I see some entries were automatically added to the peer data bag:

self.model.get_relation("replicas").data.keys() =
KeysView({
  <ops.model.Unit alertmanager-k8s/0>: {
    'egress-subnets': '10.152.183.222/32',
    'ingress-address': '10.152.183.222',
    'private-address': '10.152.183.222',
    'private_address': '10.1.157.125'}, # added by me
  <ops.model.Application alertmanager-k8s>: {}
})

Note the difference between:
1. 'private-address': '10.152.183.222' - auto populated - application address
2. 'private_address': '10.1.157.125' - populated manually by me - unit address

**Shouldn't the auto-populated `private-address` be the unit address instead of the app address?**

Model Controller Cloud/Region Version SLA Timestamp
dev-model my-ctrlr microk8s/localhost 2.9.5 unsupported 11:09:18-04:00

App Version Status Scale Charm Store Channel Rev OS Address Message
alertmanager-k8s active 1 alertmanager-k8s local 0 kubernetes 10.152.183.222

Unit Workload Agent Address Ports Message
alertmanager-k8s/0* active idle 10.1.157.125

Relation provider Requirer Interface Type Message
alertmanager-k8s:replicas alertmanager-k8s:replicas alertmanager-replica peer