Upgrading ovn-central fails trying to run nb or sb commands on juju leader unit that is not the ovnnb_db or ovnsb_db leader
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
charm-ovn-central |
Fix Committed
|
Undecided
|
Martin Kalcok | ||
22.03 |
Fix Released
|
Undecided
|
Martin Kalcok | ||
22.09 |
Fix Released
|
Undecided
|
Martin Kalcok | ||
23.03 |
Fix Released
|
Undecided
|
Martin Kalcok |
Bug Description
In an environment upgrading ovn-central from charmstore revision 16 to charmhub channel 22.03/stable (rev 57) fails
The ovn-central unit is trying to run a sbctl command on itself, but it's not holding the nb or sb database leadership
ovn-central/0 active idle 3/lxd/18 10.11.2.147 6641/tcp,6642/tcp Unit is ready (leader: ovnnb_db, ovnsb_db)
ovn-central/1* error idle 4/lxd/18 10.11.2.173 6641/tcp,6642/tcp hook failed: "config-changed"
ovn-central/2 active idle 5/lxd/19 10.11.2.79 6641/tcp,6642/tcp Unit is ready
unit-ovn-central-1: 11:50:37 WARNING unit.ovn-
unit-ovn-central-1: 11:50:37 WARNING unit.ovn-
unit-ovn-central-1: 11:50:38 WARNING unit.ovn-
unit-ovn-central-1: 11:50:38 WARNING unit.ovn-
unit-ovn-central-1: 11:50:38 WARNING unit.ovn-
unit-ovn-central-1: 11:50:38 WARNING unit.ovn-
unit-ovn-central-1: 11:50:38 ERROR unit.ovn-
Traceback (most recent call last):
File "/var/lib/
bus.
File "/var/lib/
_invoke(
File "/var/lib/
handler.
File "/var/lib/
self.
File "/var/lib/
ovn_
File "/var/lib/
self.
File "/var/lib/
for connection in connections.find(
File "/var/lib/
output = utils._run(*cmd)
File "/var/lib/
return subprocess.
File "/usr/lib/
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/
raise CalledProcessEr
subprocess.
Changed in charm-ovn-central: | |
status: | New → Incomplete |
Changed in charm-ovn-central: | |
status: | Incomplete → New |
Changed in charm-ovn-central: | |
assignee: | nobody → Martin Kalcok (martin-kalcok) |
status: | New → In Progress |
Changed in charm-ovn-central: | |
status: | In Progress → Fix Committed |
This was resolved by pausing one unit, restarting the nb and sb service on the other 2 until the raft placed the nb and sb leaders on the juju leader.