查看日志文件
cat /var/log/neutron/server.log | grep -i error
2023-01-06 12:17:46.385 22236 ERROR neutron.service [-] Unrecoverable error: please check log for details.: MissingRequiredOptions: Auth plugin requires parameters which were not given: auth_url
2023-01-06 12:17:46.385 22236 ERROR neutron.service Traceback (most recent call last):
2023-01-06 12:17:46.385 22236 ERROR neutron.service File "/usr/lib/python2.7/site-packages/neutron/service.py", line 88, in serve_wsgi
2023-01-06 12:17:46.385 22236 ERROR neutron.service service.start()
2023-01-06 12:17:46.385 22236 ERROR neutron.service File "/usr/lib/python2.7/site-packages/neutron/service.py", line 64, in start
2023-01-06 12:17:46.385 22236 ERROR neutron.service self.wsgi_app = _run_wsgi(self.app_name)
2023-01-06 12:17:46.385 22236 ERROR neutron.service File "/usr/lib/python2.7/site-packages/neutron/service.py", line 321, in _run_wsgi
2023-01-06 12:17:46.385 22236 ERROR neutron.service app = config.load_paste_app(app_name)
2023-01-06 12:17:46.385 22236 ERROR neutron.service File "/usr/lib/python2.7/site-packages/neutron/common/config.py", line 125, in load_paste_app
2023-01-06 12:17:46.385 22236 ERROR neutron.service app = loader.load_app(app_name)
2023-01-06 12:17:46.385 22236 ERROR neutron.service File "/usr/lib/python2.7/site-packages/oslo_service/wsgi.py", line 353, in load_app
2023-01-06 12:17:46.385 22236 ERROR neutron.service return deploy.loadapp("config:%s" % self.config_path, name=name)
2023-01-06 12:17:46.385 22236 ERROR neutron.service File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 247, in loadapp
2023-01-06 12:17:46.385 22236 ERROR neutron.service return loadobj(APP, uri, name=name, **kw)
2023-01-06 12:17:46.385 22236 ERROR neutron.service File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 272, in loadobj
2023-01-06 12:17:46.385 22236 ERROR neutron.service return context.create()
2023-01-06 12:17:46.385 22236 ERROR neutron.service File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
2023-01-06 12:17:46.385 22236 ERROR neutron.service return self.object_type.invoke(self)
2023-01-06 12:17:46.385 22236 ERROR neutron.service File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 144, in invoke
2023-01-06 12:17:46.385 22236 ERROR neutron.service **context.local_conf)
2023-01-06 12:17:46.385 22236 ERROR neutron.service File "/usr/lib/python2.7/site-packages/paste/deploy/util.py", line 55, in fix_call
2023-01-06 12:17:46.385 22236 ERROR neutron.service val = callable(*args, **kw)
2023-01-06 12:17:46.385 22236 ERROR neutron.service File "/usr/lib/python2.7/site-packages/paste/urlmap.py", line 25, in urlmap_factory
2023-01-06 12:17:46.385 22236 ERROR neutron.service app = loader.get_app(app_name, global_conf=global_conf)
2023-01-06 12:17:46.385 22236 ERROR neutron.service File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 350, in get_app
2023-01-06 12:17:46.385 22236 ERROR neutron.service name=name, global_conf=global_conf).create()
2023-01-06 12:17:46.385 22236 ERROR neutron.service File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
2023-01-06 12:17:46.385 22236 ERROR neutron.service return self.object_type.invoke(self)
2023-01-06 12:17:46.385 22236 ERROR neutron.service File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 144, in invoke
2023-01-06 12:17:46.385 22236 ERROR neutron.service **context.local_conf)
2023-01-06 12:17:46.385 22236 ERROR neutron.service File "/usr/lib/python2.7/site-packages/paste/deploy/util.py", line 55, in fix_call
2023-01-06 12:17:46.385 22236 ERROR neutron.service val = callable(*args, **kw)
2023-01-06 12:17:46.385 22236 ERROR neutron.service File "/usr/lib/python2.7/site-packages/neutron/auth.py", line 47, in pipeline_factory
2023-01-06 12:17:46.385 22236 ERROR neutron.service app = loader.get_app(pipeline[-1])
2023-01-06 12:17:46.385 22236 ERROR neutron.service File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 350, in get_app
2023-01-06 12:17:46.385 22236 ERROR neutron.service name=name, global_conf=global_conf).create()
2023-01-06 12:17:46.385 22236 ERROR neutron.service File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 710, in create
2023-01-06 12:17:46.385 22236 ERROR neutron.service return self.object_type.invoke(self)
2023-01-06 12:17:46.385 22236 ERROR neutron.service File "/usr/lib/python2.7/site-packages/paste/deploy/loadwsgi.py", line 146, in invoke
2023-01-06 12:17:46.385 22236 ERROR neutron.service return fix_call(context.object, context.global_conf, **context.local_conf)
第一行 please check log for details.: MissingRequiredOptions: Auth plugin requires parameters which were not given: auth_url出现问题
进行排错,配置文件出错
vi /etc/neutron/neutron.conf
[nova]
auth_url = http://controller:5000
auth_type = password
project_domain_name = Default
user_domain_name = Default
region_name = RegionOne
project_name = service
username = nova
password = nova