network-get returns the vip as ingress address
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Joseph Phillips |
Bug Description
In a user deployment, we see that network-get returns the vip instead of the container's local address. In the environment, there's a ceilometer application with vip's set up and vip is no longer associated with the unit.
This is reported already in the nrpe charm: https:/
But I believe this is in juju as the charm simpl gets the address from juju.
After some config changes, the nrpe charm runs network-get to get the container unit's primary address:
$ juju run --unit nrpe-container/28 "network-get monitors --format yaml"
bind-addresses:
- macaddress: 00:46:50:0e:b0:e1
interfacename: eth0
addresses:
- hostname: ""
address: 10.224.211.64
cidr: 10.224.211.0/24
- hostname: ""
address: 10.224.211.241
cidr: 10.224.211.0/24
egress-subnets:
- 10.224.211.241/32
ingress-addresses:
- 10.224.211.241
- 10.224.211.64
Here 10.224.211.241 is the vip address. 10.224.211.64 is the primary ip address. The vip isn't with the unit anymore The nrpe charm takes the first address listed under 'ingress-addresses' and thus picks up the wrong ip. Is juju not removing the vip from its db even after it's gone?
P.S: 'unit-get' returns the correct address:
$ juju run --unit nrpe-container/28 "unit-get private-address"
10.224.211.64
Please let me know if you need more information.
tags: | added: sts |
Changed in juju: | |
status: | Triaged → In Progress |
importance: | Undecided → High |
milestone: | none → 2.9.7 |
Changed in juju: | |
milestone: | 2.9.7 → 2.9.8 |
Changed in juju: | |
milestone: | 2.9.8 → 2.9.9 |
Changed in juju: | |
milestone: | 2.9.9 → 2.9.10 |
Changed in juju: | |
status: | In Progress → Fix Committed |
description: | updated |
Changed in juju: | |
status: | Fix Committed → Fix Released |
Attached the nrpe unit's (lxc container) log.