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 <weifei.yu@intel.com>
This commit is contained in:
parent
df4d161b04
commit
0d5e7e5409
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user