[SRU] Add support for disabling mlockall() calls in ovs-vswitchd
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Neutron Gateway Charm |
New
|
Undecided
|
Unassigned | ||
OpenStack Neutron Open vSwitch Charm |
Fix Released
|
Critical
|
Frode Nordahl | ||
Ubuntu Cloud Archive |
Fix Released
|
Undecided
|
Unassigned | ||
Queens |
Fix Released
|
Critical
|
Corey Bryant | ||
Stein |
Fix Released
|
Critical
|
Corey Bryant | ||
Train |
Fix Released
|
Critical
|
Corey Bryant | ||
Ussuri |
Fix Released
|
Critical
|
Corey Bryant | ||
charm-ovn-chassis |
Fix Released
|
Critical
|
Corey Bryant | ||
charm-ovn-dedicated-chassis |
Fix Released
|
Critical
|
Unassigned | ||
openvswitch (Ubuntu) |
Fix Released
|
Critical
|
Corey Bryant | ||
Bionic |
Fix Released
|
Critical
|
Corey Bryant | ||
Focal |
Fix Released
|
Critical
|
Corey Bryant | ||
Groovy |
Fix Released
|
Critical
|
Corey Bryant | ||
Hirsute |
Fix Released
|
Critical
|
Corey Bryant |
Bug Description
[Impact]
Recent changes to systemd rlimit are resulting in memory exhaustion with ovs-vswitchd's use of mlockall(). mlockall() can be disabled via /etc/defaults/
More details on the above summary can be found in the following comments:
https:/
https:/
==== Original bug details ===
Original bug title:
Charm stuck waiting for ovsdb 'no key "ovn-remote" in Open_vSwitch record'
Original bug details:
As seen during this Focal Ussuri test run: https:/
Crashdump here: https:/
Full history of occurrences can be found here: https:/
Octavia's ovn-chassis units are stuck waiting:
octavia/0 blocked idle 1/lxd/8 10.244.8.170 9876/tcp Awaiting leader to create required resources
hacluster-
logrotated/63 active idle 10.244.8.170 Unit is ready.
octavia-
public-
When the db is reporting healthy:
ovn-central/0* active idle 1/lxd/9 10.246.64.225 6641/tcp,6642/tcp Unit is ready (leader: ovnnb_db, ovnsb_db)
logrotated/19 active idle 10.246.64.225 Unit is ready.
ovn-central/1 active idle 3/lxd/9 10.246.64.250 6641/tcp,6642/tcp Unit is ready (northd: active)
logrotated/27 active idle 10.246.64.250 Unit is ready.
ovn-central/2 active idle 5/lxd/9 10.246.65.21 6641/tcp,6642/tcp Unit is ready
logrotated/52 active idle 10.246.65.21 Unit is ready.
Warning in the juju unit logs indicates that the charm is blocking on a missing key in the ovsdb:
2020-11-27 23:36:57 INFO juju-log ovsdb:195: Invoking reactive handler: hooks/relations
2020-11-27 23:36:57 DEBUG jujuc server.go:211 running hook tool "relation-get"
2020-11-27 23:36:57 WARNING ovsdb-relation-
2020-11-27 23:36:57 DEBUG jujuc server.go:211 running hook tool "juju-log"
2020-11-27 23:36:57 INFO juju-log ovsdb:195: Invoking reactive handler: hooks/relations
=======
[Test Case]
Note: Bionic requires additional testing due to pairing with other SRUS.
The easiest way to test this is to deploy openstack with the neutron-openvswitch charm, using the new charm updates. Once deployed, edit /usr/share/
[1]
juju config neutron-openvswitch disable-
juju config neutron-openvswitch disable-
[Regression Potential]
There's potential that this will break users who have come to depend on the incorrect EnvironmentFile setting and environment variable in the systemd unit file for ovs-vswitchd. If that is the case they must be running with modified systemd unit files anyway so it is probably a moot point.
[Discussion]
== Groovy ==
Update (16-12-2020): I chatted briefly with Christian and it sounds like the ltmain-
I have a query out to James and Christian about an undocumented commit that is getting picked up in the groovy upload. It is committed to the ubuntu/groovy branch of the package Vcs. See debian/
== Bionic ==
The bionic upload is paired with the following SRUs which will also require verification:
https:/
https:/
== Package details ==
New package versions are in progress and can be found at:
hirsute: https:/
groovy: https:/
focal: https:/
train: https:/
stein: https:/
bionic: https:/
== Charm update ==
https:/
CVE References
description: | updated |
Changed in charm-ovn-chassis: | |
assignee: | Billy Olsen (billy-olsen) → Dmitrii Shcherbakov (dmitriis) |
Changed in charm-ovn-chassis: | |
milestone: | none → 21.01 |
Changed in charm-neutron-openvswitch: | |
milestone: | none → 21.01 |
Changed in charm-neutron-openvswitch: | |
assignee: | Dmitrii Shcherbakov (dmitriis) → Corey Bryant (corey.bryant) |
Changed in charm-ovn-chassis: | |
assignee: | Dmitrii Shcherbakov (dmitriis) → Corey Bryant (corey.bryant) |
no longer affects: | Ubuntu Hirsute |
no longer affects: | ubuntu |
Changed in openvswitch (Ubuntu Hirsute): | |
importance: | Undecided → Critical |
status: | New → Triaged |
Changed in openvswitch (Ubuntu Focal): | |
importance: | Undecided → Critical |
status: | New → Triaged |
Changed in openvswitch (Ubuntu Bionic): | |
importance: | Undecided → Critical |
status: | New → Triaged |
Changed in openvswitch (Ubuntu Xenial): | |
importance: | Undecided → Critical |
status: | New → Triaged |
Changed in cloud-archive: | |
importance: | Undecided → Critical |
status: | New → Triaged |
status: | Triaged → Invalid |
importance: | Critical → Undecided |
Changed in openvswitch (Ubuntu Xenial): | |
assignee: | nobody → Corey Bryant (corey.bryant) |
Changed in openvswitch (Ubuntu Bionic): | |
assignee: | nobody → Corey Bryant (corey.bryant) |
Changed in openvswitch (Ubuntu Focal): | |
assignee: | nobody → Corey Bryant (corey.bryant) |
Changed in openvswitch (Ubuntu Hirsute): | |
assignee: | nobody → Corey Bryant (corey.bryant) |
Changed in openvswitch (Ubuntu Groovy): | |
assignee: | nobody → Corey Bryant (corey.bryant) |
importance: | Undecided → Critical |
status: | New → Triaged |
no longer affects: | cloud-archive/mitaka |
no longer affects: | openvswitch (Ubuntu Xenial) |
summary: |
- Charm stuck waiting for ovsdb 'no key "ovn-remote" in Open_vSwitch - record' + [SRU] Add support for disabling memlockall() calls in ovs-vswitchd |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
summary: |
- [SRU] Add support for disabling memlockall() calls in ovs-vswitchd + [SRU] Add support for disabling mlockall() calls in ovs-vswitchd |
description: | updated |
description: | updated |
description: | updated |
Changed in charm-neutron-openvswitch: | |
status: | In Progress → Fix Committed |
Changed in charm-ovn-chassis: | |
status: | In Progress → Fix Committed |
tags: | added: cdo-release-blocker |
Changed in charm-ovn-chassis: | |
status: | Fix Committed → Fix Released |
Changed in charm-neutron-openvswitch: | |
status: | Fix Committed → Fix Released |
Changed in charm-ovn-dedicated-chassis: | |
importance: | Undecided → Critical |
status: | New → In Progress |
Changed in cloud-archive: | |
status: | Invalid → Fix Committed |
Changed in cloud-archive: | |
status: | Fix Committed → Fix Released |
Subscribing field-high as we are seeing this during our Focal Ussuri HOV release runs.