openstack neutron-server.service启动出错,求大神帮助,小白跪谢。

小白的落寞 发布于 2017/02/24 13:09
阅读 1K+
收藏 0

系统: RHEL7.1

ip:192.168.10.101

rpm安装openstack k版,mysql、rabbit、keystone、glance、nova均已正常,但neutron.server无法启动,数据库已同步。

neutron安装过程:

yum install -y openstack-neutron openstack-neutron-ml2 python-neutronclient

ln -s /etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugin.ini

su -s /bin/sh -c "neutron-db-manage --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade head" neutron

systemctl restart openstack-nova-api.service openstack-nova-scheduler.service openstack-nova-conductor.service
systemctl enable neutron-server.service
systemctl restart neutron-server.service        无法正常启动

日志信息如下

[root@ctl ~]# cat /var/log/neutron/server.log | grep -i error
2017-02-24 02:17:41.653 128587 DEBUG neutron.service [-] publish_errors                 = False log_opt_values /usr/lib/python2.7/site-packages/oslo_config/cfg.py:2191
2017-02-24 02:17:42.549 128587 DEBUG oslo_db.sqlalchemy.session [-] MySQL server mode set to STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION _check_effective_sql_mode /usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/session.py:513
2017-02-24 02:17:43.170 128587 ERROR neutron.common.config [-] Unable to load neutron from configuration file /usr/share/neutron/api-paste.ini.
2017-02-24 02:17:43.170 128587 TRACE neutron.common.config ImportError: No module named neutron_fwaas.services.firewall.fwaas_plugin
2017-02-24 02:17:43.185 128587 ERROR neutron.service [-] Unrecoverable error: please check log for details.
2017-02-24 02:17:43.185 128587 TRACE neutron.service     raise RuntimeError(msg)
2017-02-24 02:17:43.185 128587 TRACE neutron.service RuntimeError: Unable to load neutron from configuration file /usr/share/neutron/api-paste.ini.
[root@ctl ~]# cat /var/log/messages 

Feb 24 02:17:39 ctl systemd: Starting OpenStack Neutron Server...
Feb 24 02:17:43 ctl neutron-server: ERROR: Unable to load neutron from configuration file /usr/share/neutron/api-paste.ini.
Feb 24 02:17:43 ctl systemd: neutron-server.service: main process exited, code=exited, status=1/FAILURE
Feb 24 02:17:43 ctl systemd: Failed to start OpenStack Neutron Server.
Feb 24 02:17:43 ctl systemd: Unit neutron-server.service entered failed state.

 

 

配置信息如下

[root@ctl ~]# cat /etc/neutron/neutron.conf | grep -v ^'#' | sed '/^$/d'
[DEFAULT]
verbose = True
debug = True
core_plugin = ml2
service_plugins = router,firewall
allow_overlapping_ips = True
notify_nova_on_port_status_changes = True
notify_nova_on_port_data_changes = True
nova_url = http://192.168.10.101:8774/v2
rpc_backend = rabbit
[matchmaker_redis]
[matchmaker_ring]
[quotas]
[agent]
[keystone_authtoken]
auth_uri = http://192.168.10.101:5000
auth_url = http://192.168.10.101:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
project_name = service
username = neutron
password = neutron
[database]
connection = mysql://neutron:neutron@192.168.10.101/neutron
[nova]
auth_url = http://192.168.10.101:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
region_name = RegionOne
project_name = service
username = nova
password = nova
[oslo_concurrency]
lock_path = $state_path/lock
[oslo_policy]
[oslo_messaging_amqp]
[oslo_messaging_qpid]
[oslo_messaging_rabbit]
rabbit_host = 192.168.10.101
rabbit_userid = openstack
rabbit_password = openstack
[root@ctl ~]# 

 

[root@ctl ~]# cat /etc/neutron/plugin.ini | grep -v ^'#' | sed '/^$/d'
[ml2]
type_drivers = flat,vlan,gre,vxlan
tenant_network_types = gre
mechanism_drivers = openvswitch
[ml2_type_flat]
flat_networks = external
[ml2_type_vlan]
[ml2_type_gre]
tunnel_id_ranges = 1:1000
[ml2_type_vxlan]
[securitygroup]
enable_security_group = True
enable_ipset = True
firewall_driver = neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
[ovs]
local_ip = 192.168.10.101
bridge_mappings = external:br-ex
[agent]
tunnel_types = gre

加载中
0
mickelfeng
mickelfeng

2017-02-24 02:17:43.170 128587 TRACE neutron.common.config ImportError: No module named neutron_fwaas.services.firewall.fwaas_plugin

小白的落寞
小白的落寞
谢谢提示,搞定了 少装了两个包python-neutron-fwaas-2015.1.0-3.el7.noarch.rpm openstack-neutron-fwaas-2015.1.0-3.el7.noarch.rpm
小白的落寞
小白的落寞
怎么解呢,是少装了什么包呢,还是通过修改什么配置能起作用呢
0
mickelfeng
mickelfeng

http://www.xue163.com/3681/1/36811493.html

返回顶部
顶部