config/sysinv/sysinv/sysinv
Jim Gauld acefd544f0 Mitigate memory leak of sessions by disabling sudo for sriov agent
The sriov agent was polling devices via 'sudo ip link show',
and this resulted in a severe memory leak. The usage of 'sudo'
uses the host 'dbus-daemon', and somewhere the host does not
clean up login sessions.

Symptoms:
- gradual run out of memory until system unstable, host spontaneous
  reboot due to delay or OOM
- huge growth of kernel slab
- thousands of /sys/fs/cgroup/systemd/user.slice/user-0.slice
  session-x*.scope files with empty 'tasks', i.e., sessions
  that should have deleted
- huge latency seen with ssh and various systemd commands

The problem is mitigated by disabling 'sudo' for sriov agent, using
a helm override that configures [agent]/root_helper='' .

Testing:
- Verified that we could launch a VM with SR-IOV interface;
  VFs were able to set MAC and VLAN attributes.

Closes-Bug: 1815106

Change-Id: I0c57629c01b7407c99cc7f38b409019ab87af859
Signed-off-by: Jim Gauld <james.gauld@windriver.com>
2019-02-14 15:42:07 -05:00
..
.eggs StarlingX open source release updates 2018-05-31 07:35:52 -07:00
contrib StarlingX open source release updates 2018-05-31 07:35:52 -07:00
doc/source Change openstack-dev to openstack-discuss 2018-12-04 23:37:31 -05:00
etc/sysinv Create DataNetworks modelling in System Configuration 2019-01-22 17:43:45 -05:00
scripts Remove container dependencies on sysinv-conductor shutdown 2018-12-03 16:23:57 -05:00
sysinv Mitigate memory leak of sessions by disabling sudo for sriov agent 2019-02-14 15:42:07 -05:00
tools Fix: "__builtin__" issue for Python 2/3 compatible code 2018-12-19 10:21:57 +08:00
.coveragerc StarlingX open source release updates 2018-05-31 07:35:52 -07:00
.gitignore Update sysinv to not invoke ceph during unit testing 2018-10-02 13:19:43 -05:00
.stestr.conf Update sysinv to not invoke ceph during unit testing 2018-10-02 13:19:43 -05:00
CONTRIBUTING.rst StarlingX open source release updates 2018-05-31 07:35:52 -07:00
LICENSE StarlingX open source release updates 2018-05-31 07:35:52 -07:00
MANIFEST.in StarlingX open source release updates 2018-05-31 07:35:52 -07:00
README.rst StarlingX open source release updates 2018-05-31 07:35:52 -07:00
babel.cfg StarlingX open source release updates 2018-05-31 07:35:52 -07:00
openstack-common.conf StarlingX open source release updates 2018-05-31 07:35:52 -07:00
pylint.rc Cleanup pylint errors in sysinv 2018-12-28 09:06:15 -06:00
requirements.txt Enable python3.5 sysinv unit test 2019-01-30 08:51:07 +08:00
setup.cfg Configurable Host HTTP/HTTPS Port Binding 2019-02-06 12:47:00 -06:00
setup.py Add a zuul job for sysinv tox unittest 2018-08-13 16:34:06 +08:00
test-requirements.txt Enable python3.5 sysinv unit test 2019-01-30 08:51:07 +08:00
tox.ini Enable python3.5 sysinv unit test 2019-01-30 08:51:07 +08:00

README.rst

Placeholder to allow setup.py to work. Removing this requires modifying the setup.py manifest.