Merge "Change compute node to worker node personality"
This commit is contained in:
commit
9893164a9a
@ -28,16 +28,16 @@ start()
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
. $PLATFORM_CONF_FILE
|
. $PLATFORM_CONF_FILE
|
||||||
if [[ "$nodetype" == "compute" || "$subfunction" == *"compute"* ]] ; then
|
if [[ "$nodetype" == "worker" || "$subfunction" == *"worker"* ]] ; then
|
||||||
if [ ! -f $VOLATILE_COMPUTE_CONFIG_COMPLETE ]; then
|
if [ ! -f $VOLATILE_WORKER_CONFIG_COMPLETE ]; then
|
||||||
# Do not start polling until compute manifests have been applied
|
# Do not start polling until compute manifests have been applied
|
||||||
echo "Waiting for $VOLATILE_COMPUTE_CONFIG_COMPLETE"
|
echo "Waiting for $VOLATILE_WORKER_CONFIG_COMPLETE"
|
||||||
exit 0
|
exit 0
|
||||||
elif [ -f $VOLATILE_DISABLE_COMPUTE_SERVICES ]; then
|
elif [ -f $VOLATILE_DISABLE_WORKER_SERVICES ]; then
|
||||||
# Do not start polling if compute services are disabled. This can
|
# Do not start polling if compute services are disabled. This can
|
||||||
# happen during an upgrade when controller-1 is running a newer
|
# happen during an upgrade when controller-1 is running a newer
|
||||||
# load than controller-0.
|
# load than controller-0.
|
||||||
echo "Waiting for $VOLATILE_DISABLE_COMPUTE_SERVICES"
|
echo "Waiting for $VOLATILE_DISABLE_WORKER_SERVICES"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
@ -16,11 +16,11 @@ mode = passive ; Monitoring mode: passive (default) or active
|
|||||||
; passive: process death monitoring (default: always)
|
; passive: process death monitoring (default: always)
|
||||||
; active : heartbeat monitoring, i.e. request / response messaging
|
; active : heartbeat monitoring, i.e. request / response messaging
|
||||||
; ignore : do not monitor or stop monitoring
|
; ignore : do not monitor or stop monitoring
|
||||||
subfunction = compute ; Optional label.
|
subfunction = worker ; Optional label.
|
||||||
; Manage this process in the context of a combo host subfunction
|
; Manage this process in the context of a combo host subfunction
|
||||||
; Choices: compute or storage.
|
; Choices: worker or storage.
|
||||||
; when specified pmond will wait for
|
; when specified pmond will wait for
|
||||||
; /var/run/.compute_config_complete or
|
; /var/run/.worker_config_complete or
|
||||||
; /var/run/.storage_config_complete
|
; /var/run/.storage_config_complete
|
||||||
; ... before managing this process with the specified subfunction
|
; ... before managing this process with the specified subfunction
|
||||||
; Excluding this label will cause this process to be managed by default on startup
|
; Excluding this label will cause this process to be managed by default on startup
|
||||||
|
@ -14,11 +14,11 @@ mode = passive ; Monitoring mode: passive (default) or active
|
|||||||
; passive: process death monitoring (default: always)
|
; passive: process death monitoring (default: always)
|
||||||
; active : heartbeat monitoring, i.e. request / response messaging
|
; active : heartbeat monitoring, i.e. request / response messaging
|
||||||
; ignore : do not monitor or stop monitoring
|
; ignore : do not monitor or stop monitoring
|
||||||
subfunction = compute ; Optional label.
|
subfunction = worker ; Optional label.
|
||||||
; Manage this process in the context of a combo host subfunction
|
; Manage this process in the context of a combo host subfunction
|
||||||
; Choices: compute or storage.
|
; Choices: worker or storage.
|
||||||
; when specified pmond will wait for
|
; when specified pmond will wait for
|
||||||
; /var/run/.compute_config_complete or
|
; /var/run/.worker_config_complete or
|
||||||
; /var/run/.storage_config_complete
|
; /var/run/.storage_config_complete
|
||||||
; ... before managing this process with the specified subfunction
|
; ... before managing this process with the specified subfunction
|
||||||
; Excluding this label will cause this process to be managed by default on startup
|
; Excluding this label will cause this process to be managed by default on startup
|
||||||
|
@ -14,11 +14,11 @@ mode = passive ; Monitoring mode: passive (default) or active
|
|||||||
; passive: process death monitoring (default: always)
|
; passive: process death monitoring (default: always)
|
||||||
; active : heartbeat monitoring, i.e. request / response messaging
|
; active : heartbeat monitoring, i.e. request / response messaging
|
||||||
; ignore : do not monitor or stop monitoring
|
; ignore : do not monitor or stop monitoring
|
||||||
subfunction = compute ; Optional label.
|
subfunction = worker ; Optional label.
|
||||||
; Manage this process in the context of a combo host subfunction
|
; Manage this process in the context of a combo host subfunction
|
||||||
; Choices: compute or storage.
|
; Choices: worker or storage.
|
||||||
; when specified pmond will wait for
|
; when specified pmond will wait for
|
||||||
; /var/run/.compute_config_complete or
|
; /var/run/.worker_config_complete or
|
||||||
; /var/run/.storage_config_complete
|
; /var/run/.storage_config_complete
|
||||||
; ... before managing this process with the specified subfunction
|
; ... before managing this process with the specified subfunction
|
||||||
; Excluding this label will cause this process to be managed by default on startup
|
; Excluding this label will cause this process to be managed by default on startup
|
||||||
|
@ -14,11 +14,11 @@ mode = passive ; Monitoring mode: passive (default) or active
|
|||||||
; passive: process death monitoring (default: always)
|
; passive: process death monitoring (default: always)
|
||||||
; active : heartbeat monitoring, i.e. request / response messaging
|
; active : heartbeat monitoring, i.e. request / response messaging
|
||||||
; ignore : do not monitor or stop monitoring
|
; ignore : do not monitor or stop monitoring
|
||||||
subfunction = compute ; Optional label.
|
subfunction = worker ; Optional label.
|
||||||
; Manage this process in the context of a combo host subfunction
|
; Manage this process in the context of a combo host subfunction
|
||||||
; Choices: compute or storage.
|
; Choices: worker or storage.
|
||||||
; when specified pmond will wait for
|
; when specified pmond will wait for
|
||||||
; /var/run/.compute_config_complete or
|
; /var/run/.worker_config_complete or
|
||||||
; /var/run/.storage_config_complete
|
; /var/run/.storage_config_complete
|
||||||
; ... before managing this process with the specified subfunction
|
; ... before managing this process with the specified subfunction
|
||||||
; Excluding this label will cause this process to be managed by default on startup
|
; Excluding this label will cause this process to be managed by default on startup
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=KVM Timer Advance Setup
|
Description=KVM Timer Advance Setup
|
||||||
After=openstack-nova-compute-setup.service
|
After=openstack-nova-compute-setup.service
|
||||||
Before=nova-compute.service goenabled-compute.service
|
Before=nova-compute.service goenabled-worker.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
|
@ -29,7 +29,7 @@ declare -i GLOBAL_RC=$PATCH_STATUS_OK
|
|||||||
#
|
#
|
||||||
# Processes that run with compute subfunction
|
# Processes that run with compute subfunction
|
||||||
#
|
#
|
||||||
if is_compute || is_cpe
|
if is_worker || is_cpe
|
||||||
then
|
then
|
||||||
processes_to_restart="nova-compute"
|
processes_to_restart="nova-compute"
|
||||||
/usr/local/sbin/patch-restart-processes nova-compute
|
/usr/local/sbin/patch-restart-processes nova-compute
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# Copyright (c) 2013-2017 Wind River Systems, Inc.
|
# Copyright (c) 2013-2018 Wind River Systems, Inc.
|
||||||
#
|
#
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
# This script is intended to set up the cpusets for use by nova-compute.
|
# This script is intended to set up the cpusets for use by nova-compute.
|
||||||
# It should only run on compute nodes, and it must be run after the
|
# It should only run on worker nodes, and it must be run after the
|
||||||
# /etc/nova/nova.conf file has been modified by packstack since it
|
# /etc/nova/nova.conf file has been modified by packstack since it
|
||||||
# extracts the "vcpu_pin_set" value from that file.
|
# extracts the "vcpu_pin_set" value from that file.
|
||||||
#
|
#
|
||||||
@ -62,9 +62,9 @@ start()
|
|||||||
|
|
||||||
# Do not continue if the host has not been configured. We can't do
|
# Do not continue if the host has not been configured. We can't do
|
||||||
# anything until the nova.conf file has been updated.
|
# anything until the nova.conf file has been updated.
|
||||||
if [ ! -f ${INITIAL_COMPUTE_CONFIG_COMPLETE} ]
|
if [ ! -f ${INITIAL_WORKER_CONFIG_COMPLETE} ]
|
||||||
then
|
then
|
||||||
log "Initial compute configuration is not complete, nothing to do"
|
log "Initial worker configuration is not complete, nothing to do"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=OpenStack Nova Compute Server Pre-Startup
|
Description=OpenStack Nova Compute Server Pre-Startup
|
||||||
After=syslog.target compute-config-gate.service
|
After=syslog.target worker-config-gate.service
|
||||||
Before=nova-compute.service goenabled-compute.service
|
Before=nova-compute.service goenabled-worker.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
Loading…
x
Reference in New Issue
Block a user