Solution: openstack cannot be restarted or shut down after centos7 upgrade
The condition for determining the restart EMD Shutdown Process in the newly released yum source upgrade package of centos 7 has changed, which may cause the server to become stuck when it is restarted after centos 7 is upgraded. The judgment of the newly released systemd process is more strict. If some processes do not respond to the SIGTERM signal, the restart may fail. This problem is related to how the business process processes the SIGTERM signal.
Run the yum update systemd (or yum update) command to update the systemd software package to version 219-19.el7. After the reboot package is released, the following page appears, causing the system to be suspended and the system cannot be restarted:
Symptom:
Query version packages:
Solution:
New/etc/systemd/system/rc-local.service and write:
[Unit]Description=/etc/rc.d/rc.local CompatibilityConditionFileIsExecutable=/etc/rc.d/rc.localAfter=network.target[Service]Type=forkingExecStart=/etc/rc.d/rc.local startTimeoutSec=5RemainAfterExit=yes
Back up/etc/systemd/system. conf
cp -a /etc/systemd/system.conf /etc/systemd/system.conf_bak
Modify file
# sed -i 's/#DefaultTimeoutStopSec=90s/DefaultTimeoutStopSec=30s/g' /etc/systemd/system.conf
Reload
# systemctl daemon-reload