From a6934ac9d27e0357d0025018077441d989679409 Mon Sep 17 00:00:00 2001 From: Bin Qian Date: Thu, 21 Feb 2019 14:46:34 -0500 Subject: [PATCH] Boost sm process priority in VBox environment There is an instance that sm claimed its main thread ran sluggish as some critical timer run behind the scheuled timing. The issue could prevent the sm from scheduling services. As the result, the controller could fail to enable. The issue was found only on vbox labs on AIO-SX, the fix is to boost sm process priority to nice value -10 from current -2. Closes-Bug: 1816764 Depends-On: https://review.openstack.org/638664 Change-Id: Iafa17b1c47d65cc7394552ea1c8e7a78398e4869 Signed-off-by: Bin Qian --- puppet-manifests/src/modules/platform/manifests/sm.pp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/puppet-manifests/src/modules/platform/manifests/sm.pp b/puppet-manifests/src/modules/platform/manifests/sm.pp index f8b2cc6edb..665fd513d0 100644 --- a/puppet-manifests/src/modules/platform/manifests/sm.pp +++ b/puppet-manifests/src/modules/platform/manifests/sm.pp @@ -352,6 +352,12 @@ class platform::sm # lint:ignore:140chars + if str2bool($::is_virtual) { + exec { 'Configure sm process priority': + command => 'sm-configure system --sm_process_priority -10', + } + } + if $system_mode == 'simplex' { exec { 'Deprovision oam-ip service group member': command => 'sm-deprovision service-group-member oam-services oam-ip',