Cluster downscaling fails with "FOREIGN KEY constraint failed"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
microovn |
Fix Released
|
Undecided
|
Martin Kalcok |
Bug Description
Executing `microovn cluster remove <MEMBER>` fails with:
Error: Delete "internal_
In addition to fixing this, there doesn't seem to be a code that would actually downscale the ovn-central service. When ovn-central member is being removed, it needs to be explicitly removed from the Northbound and Southbound database clusters, otherwise the remaining members will just consider it as "DOWN" and they'll expect it's return.
To properly remove ovn-central cluster member there are two options. Either the departing member executes
ovn-appctl cluster/leave OVN_Southbound
ovn-appctl cluster/leave OVN_Northbound
Or one of the remaining members must execute
ovn-appctl cluster/kick OVN_Southbound <member_id>
ovn-appctl cluster/kick OVN_Northbound <member_id>
The second option is more reliable as it works also for removing members that were already lost but it requires knowledge of the removed member ID in both Northbound and Southbound clustes.
Changed in microovn: | |
status: | New → In Progress |
assignee: | nobody → Martin Kalcok (martin-kalcok) |
Changed in microovn: | |
status: | Fix Committed → Fix Released |
PR merged: https:/ /github. com/canonical/ microovn/ pull/35