From 0d5e7e54091ecc13a109d0071f696379438c39fc Mon Sep 17 00:00:00 2001 From: marvin Date: Tue, 3 Sep 2019 05:02:34 +0000 Subject: [PATCH] Removing unused flag disable_worker_services The disable_worker_services file was originally created to prevent the (bare metal) nova-compute services from running on a newly upgraded controller in an AIO-DX configuration. This situation no longer exists because the bare metal nova-compute services do not exist after transiting to containers. this flag is no longer needed. Removing all references to the disable_worker_services file. Change-Id: Ic9555a36890f613f440e97f9090b22ff5ec8fd82 Partial-Bug: #1838432 Signed-off-by: marvin --- service-mgmt/sm/scripts/sm.notification | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/service-mgmt/sm/scripts/sm.notification b/service-mgmt/sm/scripts/sm.notification index 11fdc983..d5fe5792 100644 --- a/service-mgmt/sm/scripts/sm.notification +++ b/service-mgmt/sm/scripts/sm.notification @@ -73,28 +73,6 @@ def main(): six.print_(" state: %s" % sg_state, file=f) six.print_(" notification: %s" % sg_notification, file=f) - # Script to start/stop worker services. Called here for CPE upgrade - # support. Scripts will be run in a separate process so it does not - # block sm. - if 'worker' in tsconfig.subfunctions: - worker_services_script = "/etc/init.d/worker_services" - if sg_name == 'vim-services': - if sg_desired_state == "active" and sg_state == "active": - if want_log_file: - with open(sm_log_file, 'a') as f: - six.print_("Called script: %s start" % - worker_services_script, file=f) - subprocess.Popen([worker_services_script, "start"]) - elif sg_aggregate_state == "go-standby" \ - and sg_desired_state == "standby" \ - and sg_state == "standby": - if want_log_file: - with open(sm_log_file, 'a') as f: - six.print_("Called script: %s stop" % - worker_services_script, file=f) - subprocess.Popen([worker_services_script, "stop"]) - - if __name__ == '__main__': try: main()