打开环境突然发现openstack neutron相关命令都用不了了

[root@openstack21 xxxxxxx]# openstack network list
HttpException: 503: Server Error for url: http://xxxxxxx:9696/v2.0/networks, No server is available to handle this request.: 503 Service Unavailable

 查看neutron server日志,今天一条log都没有,还是前一天的

[root@openstack21 xxxxxxx]# cat /var/log/kolla/neutron/neutron-server.log|head -1
2021-10-08 03:35:20.160 7 DEBUG neutron_lib.callbacks.manager [req-b4575ee7-b4ce-4645-a412-7109e04b8636 - - - - -] Notify callbacks ['neutron.services.segments.db._update_segment_host_mapping_for_agent-8743175890391', 'neutron.plugins.ml2.plugin.Ml2Plugin._retry_binding_revived_agents-3271756'] for agent, after_update _notify_loop /var/lib/kolla/venv/lib/python2.7/site-packages/neutron_lib/callbacks/manager.py:193

查看neutron server的docker,一直在重启

[root@openstack21 xxxxxxx]# docker ps|grep server
032d6b49d161   xxxxxxx.net:8080/kolla/centos-source-neutron-server:latest-2021-08-08                   "dumb-init --single-…"   2 months ago   Restarting (1) 5 seconds ago             neutron_server    

查看docker日志

[root@openstack21 xxxxxxx]# docker logs -f -t --tail 10 032d6b49d161
2021-10-09T08:25:37.493428230Z oslo_config.cfg.ConfigFileParseError: Failed to parse /etc/neutron/plugins/ml2/ml2_conf_sriov.ini: at /etc/neutron/plugins/ml2/ml2_conf_sriov.ini:1, Section must be started before assignment: None

 ml2_conf_sriov.ini文件有问题,最近在调sriov,昨天确实修改了这个文件,但是没有写[DEFAULT],导致格式错误,neutron识别不了配置文件导致错误。

[DEFAULT]
supported_pci_vendor_devs = 8086:1515

此类问题大多是格式错误导致 ,例如

[root@openstack21 xxxxxxx]# docker logs -f -t --tail 10 6fcbaca37d75
2021-10-14T03:06:08.987307995Z ERROR:__main__:InvalidConfig: Invalid json file found at /var/lib/kolla/config_files/config.json
2021-10-14T03:06:10.865716988Z + sudo -E kolla_set_configs
2021-10-14T03:06:10.925423057Z INFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json

更多推荐