新手配置了一天,发现配置步骤没有错,代码好像也没有什么问题,结果XXX
[root@11zucontroller ~]# openstack network agent list
+--------------------------------------+--------------------+----------------+-------------------+-------+-------+---------------------------+
| ID | Agent Type | Host | Availability Zone | Alive | State | Binary |
+--------------------------------------+--------------------+----------------+-------------------+-------+-------+---------------------------+
| 4b3fbd76-a9b9-46e8-9c19-eafc1b2f8c52 | Open vSwitch agent | 11zucontroller | None | :-) | UP | neutron-openvswitch-agent |
| 62e79a0f-81da-42e1-a3d2-4faeec8e00d8 | L3 agent | 11zucontroller | nova | :-) | UP | neutron-l3-agent |
| 9c039343-449a-494b-afec-44218479972f | Open vSwitch agent | 11zuconpute | None | XXX | UP | neutron-openvswitch-agent |
| ec8420bf-78f9-4032-8332-849186cf6b4e | Metadata agent | 11zucontroller | None | :-) | UP | neutron-metadata-agent |
| f476c8b4-b2aa-4198-8b9b-00d304e039e8 | DHCP agent | 11zucontroller | nova | :-) | UP | neutron-dhcp-agent |
+--------------------------------------+--------------------+----------------+-------------------+-------+-------+---------------------------+
在compute运行下systemctl status neutron-openvswitch-agent 发现好像也没什么问题
[root@11zuconpute ~]# systemctl status neutron-openvswitch-agent
● neutron-openvswitch-agent.service - OpenStack Neutron Open vSwitch Agent
Loaded: loaded (/usr/lib/systemd/system/neutron-openvswitch-agent.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2023-11-17 11:54:39 CST; 4min 22s ago
Process: 24097 ExecStartPre=/usr/bin/neutron-enable-bridge-firewall.sh (code=exited, status=0/SUCCESS)
Main PID: 24103 (/usr/bin/python)
Tasks: 1
CGroup: /system.slice/neutron-openvswitch-agent.service
└─24103 /usr/bin/python2 /usr/bin/neutron-openvswitch-agent --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutr...
Nov 17 11:54:39 11zuconpute systemd[1]: Starting OpenStack Neutron Open vSwitch Agent...
Nov 17 11:54:39 11zuconpute neutron-enable-bridge-firewall.sh[24097]: net.bridge.bridge-nf-call-iptables = 1
Nov 17 11:54:39 11zuconpute neutron-enable-bridge-firewall.sh[24097]: net.bridge.bridge-nf-call-ip6tables = 1
Nov 17 11:54:39 11zuconpute systemd[1]: Started OpenStack Neutron Open vSwitch Agent.
Nov 17 11:54:41 11zuconpute sudo[24117]: neutron : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/neutron-rootwrap /etc/neutron/rootwrap.conf pri...
Nov 17 11:54:43 11zuconpute sudo[24146]: neutron : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/neutron-rootwrap-daemon /etc/neutron/rootwrap.conf
Hint: Some lines were ellipsized, use -l to show in full.
在controller运行下systemctl status neutron-openvswitch-agent
[root@11zucontroller ~]# systemctl status neutron-openvswitch-agent
● neutron-openvswitch-agent.service - OpenStack Neutron Open vSwitch Agent
Loaded: loaded (/usr/lib/systemd/system/neutron-openvswitch-agent.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2023-11-17 22:40:04 CST; 5h 18min ago
Main PID: 9471 (/usr/bin/python)
CGroup: /system.slice/neutron-openvswitch-agent.service
└─9471 /usr/bin/python2 /usr/bin/neutron-openvswitch-agent --config-file /usr/share/neutron/neutro...
Nov 17 22:40:03 11zucontroller systemd[1]: Starting OpenStack Neutron Open vSwitch Agent...
Nov 17 22:40:03 11zucontroller neutron-enable-bridge-firewall.sh[9383]: net.bridge.bridge-nf-call-iptables = 1
Nov 17 22:40:04 11zucontroller neutron-enable-bridge-firewall.sh[9383]: net.bridge.bridge-nf-call-ip6tables = 1
Nov 17 22:40:04 11zucontroller systemd[1]: Started OpenStack Neutron Open vSwitch Agent.
Nov 17 22:40:29 11zucontroller neutron-openvswitch-agent[9471]: net_mlx5: cannot load glue library: libibve...ry
Nov 17 22:40:29 11zucontroller neutron-openvswitch-agent[9471]: net_mlx5: cannot initialize PMD due to miss...5)
Nov 17 22:40:29 11zucontroller neutron-openvswitch-agent[9471]: PMD: net_mlx4: cannot load glue library: li...ry
Nov 17 22:40:29 11zucontroller neutron-openvswitch-agent[9471]: PMD: net_mlx4: cannot initialize PMD due to...4)
Nov 17 22:40:32 11zucontroller sudo[11628]: neutron : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/neutron...
Nov 17 22:41:39 11zucontroller sudo[20003]: neutron : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/neu...conf
Hint: Some lines were ellipsized, use -l to show in full.
结果网上找了半天,找到了有网友说启动下时间同步,结果解决了!
[root@11zucontroller neutron]# chronyc sources
210 Number of sources = 1
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^? 127.127.1.0 15 10 0 345m -4965ns[-8894ns] +/- 152us
[root@11zucontroller neutron]# systemctl restart chronyd
[root@11zucontroller neutron]# chronyc sources
210 Number of sources = 1
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^* 127.127.1.0 11 6 17 5 -847us[-2508us] +/- 10ms
[root@11zucontroller neutron]# systemctl enable chronyd
[root@11zucontroller neutron]# neutron agent-list
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+--------------------------------------+--------------------+----------------+-------------------+-------+------------ ----+---------------------------+
| id | agent_type | host | availability_zone | alive | admin_state _up | binary |
+--------------------------------------+--------------------+----------------+-------------------+-------+------------ ----+---------------------------+
| 3f65590b-43ad-4547-be13-acc08cf9d80c | Metadata agent | 11zuconpute | | :-) | True | neutron-metadata-agent |
| 4b3fbd76-a9b9-46e8-9c19-eafc1b2f8c52 | Open vSwitch agent | 11zucontroller | | :-) | True | neutron-openvswitch-agent |
| 62e79a0f-81da-42e1-a3d2-4faeec8e00d8 | L3 agent | 11zucontroller | nova | :-) | True | neutron-l3-agent |
| 9c039343-449a-494b-afec-44218479972f | Open vSwitch agent | 11zuconpute | | :-) | True | neutron-openvswitch-agent |
| ec8420bf-78f9-4032-8332-849186cf6b4e | Metadata agent | 11zucontroller | | :-) | True | neutron-metadata-agent |
| f476c8b4-b2aa-4198-8b9b-00d304e039e8 | DHCP agent | 11zucontroller | nova | :-) | True | neutron-dhcp-agent |
+--------------------------------------+--------------------+----------------+-------------------+-------+------------ ----+---------------------------+