Error1
Openstack uses “openstack network agent list” in the controller node to display the status of the computing node as 😦
Check the log file and find the following error messages
[root@compute ~]# less /var/log/neutron/linuxbridge-agent.log
...
2021-09-01 08:14:10.593 37443 ERROR neutron File "/usr/lib/python2.7/site-packages/oslo_privsep/daemon.py", line 357, in __init__
2021-09-01 08:14:10.593 37443 ERROR neutron listen_sock.bind(sockpath)
2021-09-01 08:14:10.593 37443 ERROR neutron File "/usr/lib64/python2.7/socket.py", line 224, in meth
2021-09-01 08:14:10.593 37443 ERROR neutron return getattr(self._sock,name)(*args)
2021-09-01 08:14:10.593 37443 ERROR neutron error: [Errno 13] Permission denied
Solution
[root@compute ~]# yum install -y openstack-selinux
[root@compute ~]# vi /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
#SELINUX=enforcing
SELINUX=disabled
# SELINUXTYPE= can take one of three values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
[root@compute ~]# setenforce 0
The problem hasn’t been solved yet. The permission error is gone, but the compute node agent still hasn’t detected the trace
Check the log and find new errors
[root@controller ~]# less /var/log/neutron/server.log
...
ERROR neutron.db.agents_db [req-c6d0aa9a-5ed5-4ada-8db1-cb8f3c6df1f2 - - - - -] Message received from the host: compute during the registration of Linux bridge agent has a timestamp: 2021-09-01T13:40:30.344421. This differs from the current server timestamp: 2021-09-02T05:50:29.057028 by 58198.712607 seconds, which is more than the threshold agent down time: 75.
Comparing the system time of the two nodes, there is indeed a difference
Solution
"chronyc sources" Time synchronization is invalid
[root@controller ~]# date +"%Y-%m-%d %H:%M:%S"
2021-09-02 02:02:30
[root@compute ~]# date -s "2021-09-02 02:02:30"
Check the current time of the control node, and change the system time of the compute node (my VM has no other services, so I changed it directly)
Error2
“Gnocchi resource list” failed to obtain virtual machine information
[root@controller ~]# gnocchi resource show fdd2a43e-5c73-4a50-81b6-6115ddd46671
Resource fdd2a43e-5c73-4a50-81b6-6115ddd46671 does not exist (HTTP 404)
Solution
Step 1: Check the time of the controller and compute nodes, whether they are synchronized
Step 2: Restart the ceilometer & gnocchi services of the controller and compute nodes (in the order of deployment, compute nodes restart nova-related services in the meantime)
[root@controller ~]# gnocchi resource show fdd2a43e-5c73-4a50-81b6-6115ddd46671
+-----------------------+-------------------------------------------------------------------+
| Field | Value |
+-----------------------+-------------------------------------------------------------------+
| created_by_project_id | 68b45d547f5f409ebc38788f135f7cb7 |
| created_by_user_id | cfb54e52063f4c7f8cde55c548adb4dd |
| creator | cfb54e52063f4c7f8cde55c548adb4dd:68b45d547f5f409ebc38788f135f7cb7 |
| ended_at | None |
| id | fdd2a43e-5c73-4a50-81b6-6115ddd46671 |
| metrics | cpu: 909a4463-b560-42af-ab70-aeec1c95a434 |
| | memory.usage: 16802fc1-26ca-44a3-9bda-f44a925d1e77 |
| original_resource_id | fdd2a43e-5c73-4a50-81b6-6115ddd46671 |
| project_id | 67aa569467bd4333a1142d9ee4999631 |
| revision_end | None |
| revision_start | 2021-10-18T02:50:08.683936+00:00 |
| started_at | 2021-10-18T02:50:08.683921+00:00 |
| type | instance |
| user_id | a254c805f34c4418b685730db6088eff |
+-----------------------+-------------------------------------------------------------------+
Similar Posts:
- [Solved] Linux No access to the system error: Failed to load SELinux policy. Freezing
- Centos Service Cannot Start: Failed to start Login Service Failed to start Install ABRT coredump hook
- 20190603 – CentOS 7 prompt failed to load SELinux policy. Freezing causes stuck solution
- ZABBIX server startup error resolution
- How to Solve Failed to load SELinux policy. Freezing Error (System Restart)
- Solutions to start failed after dhcpd installation
- Solutions to start failed after dhcpd installation
- Openstack build virtual machine Error: No valid host was found. There are not enough hosts available
- [Solved] Openstack Create instance error: **aborted: Failed to allocate the network(s), not rescheduling
- Caffe Error-nvcc fatal:Unsupported gpu architecture ‘compute_20’