From db3f5525d81f5abddba9181fce655348202a818f Mon Sep 17 00:00:00 2001 From: Luan Nunes Utimura Date: Mon, 3 Apr 2023 11:27:07 -0300 Subject: [PATCH] NFVI: Default guest_plugin_disabled to True Following the work previously done in [1] and [2] to deactivate guest-related services in VIM, this commit changes the default value of config variable `guest_plugin_disabled` to `True` so that it reflects the change proposed in [3] (same modification but on Puppet's side). As reported in [3], loading this plugin while having some of its services deactivated (or functionalities removed) has proven to be a problem when stx-openstack is applied, as both nova-compute service and hypervisor are caught in an enable/disable loop indefinitely after the first host lock/unlock with the application applied. [1] https://review.opendev.org/c/starlingx/nfv/+/869817 [2] https://review.opendev.org/c/starlingx/nfv/+/870538 [3] https://review.opendev.org/c/starlingx/stx-puppet/+/879359 Test Plan (on AIO-SX): PASS - Remove 'guest_plugin_disabled' from /etc/nfv/vim/config.ini, reload VIM services and verify that the guest plugin wasn't loaded by default: $ tail -f /var/log/nfv*.log Related-Bug: 2015088 Depends-On: https://review.opendev.org/c/starlingx/stx-puppet/+/879359 Signed-off-by: Luan Nunes Utimura Change-Id: I7e254fe2db2a6bcc6b98a26cc712c5d03ef7ffad --- nfv/nfv-vim/nfv_vim/nfvi/_nfvi_module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nfv/nfv-vim/nfv_vim/nfvi/_nfvi_module.py b/nfv/nfv-vim/nfv_vim/nfvi/_nfvi_module.py index 98a439a3..ff9c74b0 100755 --- a/nfv/nfv-vim/nfv_vim/nfvi/_nfvi_module.py +++ b/nfv/nfv-vim/nfv_vim/nfvi/_nfvi_module.py @@ -49,7 +49,7 @@ def nfvi_initialize(config): network_plugin_disabled = (config.get('network_plugin_disabled', 'False') in DISABLED_LIST) guest_plugin_disabled = (config.get('guest_plugin_disabled', - 'False') in DISABLED_LIST) + 'True') in DISABLED_LIST) # 'fault_management_pod_disabled' is used to disable get alarms # from containerized fm and will be removed in future. fault_mgmt_plugin_disabled = (config.get('fault_mgmt_plugin_disabled',