Devstack 安装失败,出现错误消息 "XXX: no process found"

Devstack installation failed with error message "XXX: no process found"

我正在尝试在 VMware 云上安装 Devstack。开始运行./stack.sh后,安装失败,出现如下错误信息。

+lib/cinder:create_volume_types:531        openstack --os-region-name=RegionOne volume type create --property volume_backend_name=lvmdriver-1 lvmdriver-1
Internal Server Error (HTTP 500)
+lib/cinder:create_volume_types:1          exit_trap
+./stack.sh:exit_trap:489                  local r=1
++./stack.sh:exit_trap:490                  jobs -p
+./stack.sh:exit_trap:490                  jobs=
+./stack.sh:exit_trap:493                  [[ -n '' ]]
+./stack.sh:exit_trap:499                  '[' -f /tmp/tmp.Y95KBJPvp8 ']'
+./stack.sh:exit_trap:500                  rm /tmp/tmp.Y95KBJPvp8
+./stack.sh:exit_trap:504                  kill_spinner
+./stack.sh:kill_spinner:399               '[' '!' -z '' ']'
+./stack.sh:exit_trap:506                  [[ 1 -ne 0 ]]
+./stack.sh:exit_trap:507                  echo 'Error on exit'
Error on exit
+./stack.sh:exit_trap:509                  type -p generate-subunit
+./stack.sh:exit_trap:510                  generate-subunit 1588897469 720 fail
+./stack.sh:exit_trap:512                  [[ -z /opt/stack/logs ]]
+./stack.sh:exit_trap:515                  /usr/bin/python3.6 /opt/devstack/tools/worlddump.py -d /opt/stack/logs
World dumping... see /opt/stack/logs/worlddump-2020-05-08-003630.txt for details
nova-compute: no process found
neutron-dhcp-agent: no process found
neutron-l3-agent: no process found
neutron-metadata-agent: no process found
neutron-openvswitch-agent: no process found
+./stack.sh:exit_trap:524                  exit 1

看来 HTTP 500 错误是主要问题。但是 ping HOST_IP 效果很好,所以我无法找出原因。

[[local|localrc]]

# Credentials
ADMIN_PASSWORD=devstack
MYSQL_PASSWORD=devstack
RABBIT_PASSWORD=devstack
SERVICE_PASSWORD=devstack
SERVICE_TOKEN=token

# Network Address
HOST_IP=(...)

这是 devstack 的日志文件。

nova-compute Guru Meditation Report
===================================

19171
killall -e -USR2 nova-compute
-----------------------------

*** Failed to run 'killall -e -USR2 nova-compute': Command 'killall -e -USR2 nova-compute' returned non-zero exit status 1.
guru meditation report in nova-compute log

neutron-dhcp-agent Guru Meditation Report
=========================================

7758
killall -e -USR2 neutron-dhcp-agent
-----------------------------------

*** Failed to run 'killall -e -USR2 neutron-dhcp-agent': Command 'killall -e -USR2 neutron-dhcp-agent' returned non-zero exit status 1.
guru meditation report in neutron-dhcp-agent log

neutron-l3-agent Guru Meditation Report
=======================================

8482
killall -e -USR2 neutron-l3-agent
---------------------------------

*** Failed to run 'killall -e -USR2 neutron-l3-agent': Command 'killall -e -USR2 neutron-l3-agent' returned non-zero exit status 1.
guru meditation report in neutron-l3-agent log

neutron-linuxbridge-agent Guru Meditation Report
================================================

Skipping as neutron-linuxbridge-agent does not appear to be running

neutron-metadata-agent Guru Meditation Report
=============================================

9103
9719
9720
killall -e -USR2 neutron-metadata-agent
---------------------------------------

*** Failed to run 'killall -e -USR2 neutron-metadata-agent': Command 'killall -e -USR2 neutron-metadata-agent' returned non-zero exit status 1.
guru meditation report in neutron-metadata-agent log

neutron-openvswitch-agent Guru Meditation Report
================================================

7127
killall -e -USR2 neutron-openvswitch-agent
------------------------------------------

*** Failed to run 'killall -e -USR2 neutron-openvswitch-agent': Command 'killall -e -USR2 neutron-openvswitch-agent' returned non-zero exit status 1.
guru meditation report in neutron-openvswitch-agent log

cinder-volume Guru Meditation Report
====================================

21971
killall -e -USR2 cinder-volume
------------------------------

guru meditation report in cinder-volume log

问题是什么?

我得到这个日志

'''
sudo systemctl enable devstack@sl-api.service
Created symlink /etc/systemd/system/multi-user.target.wants/devstack@sl-api.service → /etc/systemd/system/devstack@sl-api.service.
++functions-common:_run_under_systemd:1531  sudo systemctl start devstack@sl-api.service
Job for devstack@sl-api.service failed because the control process exited with error code.
See "systemctl status devstack@sl-api.service" and "journalctl -xe" for details.
+functions-common:_run_under_systemd:1     exit_trap
+./stack.sh:exit_trap:489                  local r=1
++./stack.sh:exit_trap:490                  jobs -p
+./stack.sh:exit_trap:490                  jobs=
+./stack.sh:exit_trap:493                  [[ -n '' ]]
+./stack.sh:exit_trap:499                  '[' -f /tmp/tmp.g8xjCU2yg2 ']'
+./stack.sh:exit_trap:500                  rm /tmp/tmp.g8xjCU2yg2
+./stack.sh:exit_trap:504                  kill_spinner
+./stack.sh:kill_spinner:399               '[' '!' -z '' ']'
+./stack.sh:exit_trap:506                  [[ 1 -ne 0 ]]
+./stack.sh:exit_trap:507                  echo 'Error on exit'
Error on exit
+./stack.sh:exit_trap:509                  type -p generate-subunit
+./stack.sh:exit_trap:510                  generate-subunit 1593717952 1120 fail
+./stack.sh:exit_trap:512                  [[ -z /opt/stack/logs ]]
+./stack.sh:exit_trap:515                  /usr/bin/python3.6 /opt/stack/devstack/tools/worlddump.py -d /opt/stack/logs
nova-compute: no process found
neutron-dhcp-agent: no process found
neutron-l3-agent: no process found
neutron-metadata-agent: no process found
neutron-openvswitch-agent: no process found
+./stack.sh:exit_trap:524                  exit 1

'''

我通过起诉解决了这个问题 cd /usr/bin ls | grep uwsgi 如果文件在这里然后使用如果你没有它那么你可以使用 apt-get install uwsgi 或 pip install uwsgi cd /usr/local/bin ln -s /usr/bin/uwsgi uwsgi[=11 重新安装=]

./unstack.sh ./stach.sh 开始吧.....

我让它工作了。只是做:

  • pip 安装 uwsgi

在堆栈用户中。

同样的错误代码会反映出来。但别担心,它有效。只是去 HTTP:IPaddress/dashboard

您将看到 openstack horizo​​n 仪表板。 :)