cleanup VIPs in network-get and relation-data after upgrade
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
High
|
Joseph Phillips |
Bug Description
Following up on bug #1897261, a customer that was running Juju 2.8.8 and had hit the issue with the following network-get and relation data:
VIP: x.16.211.10
keystone/0: x.16.211.55
keystone/1: x.16.211.66
Before upgrade:
keystone network-get internal (same as shared-db and mysql-router's db-router)
- Stdout: |
bind-addresses:
- macaddress: redacted
interface
addresses:
- hostname: ""
address: x.16.211.55
cidr: x.16.211.0/24
- hostname: ""
address: x.16.211.10
cidr: x.16.211.0/24
egress-subnets:
- x.16.211.10/32
ingress-
- x.16.211.10
- x.16.211.55
UnitId: keystone/0
+ juju run --unit mysql-innodb-
MRUP_database: keystone
MRUP_hostname: x.16.211.55
MRUP_username: keystone
egress-subnets: x.16.211.10/32
ingress-address: x.16.211.10
mysqlrouter_
mysqlrouter_
private-address: x.16.211.10
mysql-innodb-
/var/log/
We had restarted corosync on keystone/0 and observed the problem move to keystone/1, while the problem with network-get and relations related to keystone/0 auto-resolved.
We then upgraded to Juju 2.9.11, and we observed the following (on keystone/1):
After upgrade:
keystone network-get internal (same as shared-db and mysql-router's db-router)
- Stdout: |
bind-addresses:
- mac-address: redacted
interface
addresses:
- hostname: ""
address: x.16.211.66
cidr: x.16.211.0/24
- hostname: ""
address: x.16.211.10
cidr: x.16.211.0/24
macaddress: redacted
interface
egress-subnets:
- x.16.211.66/32
ingress-
- x.16.211.66
- x.16.211.10
UnitId: keystone/1
+ juju run --unit mysql-innodb-
MRUP_database: keystone
MRUP_hostname: x.16.211.66
MRUP_username: keystone
egress-subnets: x.16.211.10/32
ingress-address: x.16.211.10
mysqlrouter_
mysqlrouter_
private-address: x.16.211.10
/var/log/
In order to fix the issue we had to perform the following:
db.ip.addresses
db.ip.addresses
systemctl restart jujud-machine-
The network-get and relation-data changed to:
keystone network-get internal (same as shared-db and mysql-router's db-router)
- Stdout: |
bind-addresses:
- mac-address: redacted
interface
addresses:
- hostname: ""
address: x.16.211.66
cidr: x.16.211.0/24
macaddress: redacted
interface
egress-subnets:
- x.16.211.66/32
ingress-
- x.16.211.66
UnitId: keystone/1
+ juju run --unit mysql-innodb-
MRUP_database: keystone
MRUP_hostname: x.16.211.66
MRUP_username: keystone
egress-subnets: x.16.211.66/32
ingress-address: x.16.211.66
mysqlrouter_
mysqlrouter_
private-address: x.16.211.66
I have not confirmed the mysql-innodb-
The reason I'm opening this bug is that I feel this is an upgrade issue that should be tackled, the juju code should be able to identify VIPs are in the network-get data and relation, and fix itself. The upgraded juju does not include any VIP in those, so if it can detect the VIPs, and it should also detect the discrepancies and fix itself to prevent having to do mongodb surgery, which in this case of removing an IP should be something juju should be able to do.
Changed in juju: | |
status: | New → Triaged |
importance: | Undecided → Medium |
tags: | added: sts |
Changed in juju: | |
status: | Triaged → In Progress |
importance: | Medium → High |
Changed in juju: | |
status: | In Progress → Fix Committed |
milestone: | none → 2.9.26 |
Changed in juju: | |
status: | Fix Committed → Fix Released |
I got the mysql-innodb- cluster log data and confirmed that the Grant error messages are no longer displayed when an endpoint-changed of db-router relation hook runs.