journalctl -xe
openstack image list
openstack flavor list
openstack user list
openstack network list
cat /etc/nova/nova.conf | grep -v ^# |grep -v ^$
检查各个服务状态
systemctl status chronyd.service
systemctl status mariadb.service
systemctl status rabbitmq-server.service
systemctl status memcached.service
systemctl status etcd
systemctl status httpd.service
systemctl status openstack-glance-api.service
rabbitmqctl status
systemctl status openstack-nova-api.service openstack-nova-scheduler.service openstack-nova-conductor.service openstack-nova-novncproxy.service
placement-status upgrade check
绑定网络
ip addr add 203.0.113.218/24 dev eth1
ping 203.0.113.101
systemctl status chronyd.service
systemctl status openstack-nova-compute.service
Error: Package: python2-qpid-proton-0.26.0-2.el7.x86_64 (centos-openstack-train) Requires: qpid-proton-c(x86-64) = 0.26.0-2.el7 Available: qpid-proton-c-0.14.0-2.el7.x86_64 (extras) qpid-proton-c(x86-64) = 0.14.0-2.el7 Available: qpid-proton-c-0.26.0-2.el7.x86_64 (centos-openstack-train) qpid-proton-c(x86-64) = 0.26.0-2.el7 Installing: qpid-proton-c-0.37.0-1.el7.x86_64 (epel) qpid-proton-c(x86-64) = 0.37.0-1.el7
缺少组件:yum install python2-qpid-proton-0.26.0-2.el7.x86_64
file /usr/bin/websockify conflicts between attempted installs of python2-websockify-0.8.0-13.el7.noarch and python36-websockify-0.6.0-4.el7.noarch
yum remove epel-release
ERROR oslo_service.service AccessRefused: (0, 0): (403) ACCESS_REFUSED - Login was refused using authentication mechanism AMQPLAIN
在 openstack 计算节点中部署 nove 服务,发现服务无法正常启动。
查看 rabbitmq 用户,之前创建的 openstack 用户消失了:
rabbitmqctl list_users
重新加上
rabbitmqctl add_user openstack RABBIT_PASS
rabbitmqctl set_permissions openstack "." "." ".*"
rabbitmqctl status,出不来结果,用su -
Missing value auth-url required for auth plugin password
source admin-openrc
Failed to discover available identity versions when contacting http://controller:5000/v3.
Permission denied: AH00072: make_sock: could not bind to address 0.0.0.0:8778
vi /etc/sysconfig/selinux
SELINUX=disabled
验证nova
openstack compute service list
openstack catalog list
openstack image list
nova-status upgrade check 报错:Forbidden: Forbidden (HTTP 403)
vi /etc/httpd/conf.d/00-placement-api.conf
<Directory /usr/bin>
<IfVersion >= 2.4>
Require all granted
</IfVersion>
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
</Directory>
systemctl restart httpd
验证neutron
openstack network agent list
HttpException: 503: Server Error for url: http://controller:9696/v2.0/agents, Service Unavailable
ERROR neutron.plugins.ml2.drivers.linuxbridge.agent.linuxbridge_neutron_agent [-] Interface eth1 for physical network provider does not exist
keystonemiddleware.auth_token [-] Unable to validate token: Identity server rejected authorization necessary to fetch token data: ServiceError: Identity server rejected authorization necessary to fetch token data
(1)网卡名为:enp0s8,且down
(2)配置文件密码有问题,拿着上面的NEUTRON_DBPASS来配置的,但是配置文件里面用了NEUTRON_PASS
Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'keystoneauth1.exceptions.http.Unauthorized'> (HTTP 500) (Request-ID: req-25872c45-2cbb-4f83-8640-25937790d69b)
还是NEUTRON_PASS的问题,好多其他文件也都需要修改
Error while executing command: HttpException: 503, Unable to create the network. No tenant network is available for allocation.
POST failed.: NoNetworkAvailable: Unable to create the network. No tenant network is available for allocation.
ml2文件没有配置好,主要查看/etc/neutron/plugins/ml2/ml2_conf.ini文件的配置
Failed to discover available identity versions when contacting http://controller:5000/v3. Attempting to parse version from URL.
systemctl restart network
systemctl restart httpd
Failed creating vxlan interface for 2: MessagingTimeout: Timed out waiting for a reply to message ID 4429ecad8d61423b842855f009ca113e
Agent 85614d3e-fce2-494f-aca4-c79f9096b368 is down.
neutron.agent.linux.interface [-] Device qr-72c5fc64-b2 already exists
neutron.agent.linux.interface [-] Device qg-25460f0b-65 already exists
[root@controller ~]# ifconfig|grep 72c5fc64
tap72c5fc64-b2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1450
[root@controller ~]# ifconfig|grep 25460f0b
tap25460f0b-65: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
全都清理一遍,重新创建,貌似没解决,有意思了。
/etc/neutron/plugins/ml2/linuxbridge_agent.ini 的local_ip改成外部网络地址就可以了。
2023-04-09 18:11:56.061 2460 INFO neutron.api.v2.resource [req-3fb659e8-27fd-44f7-8442-6995cb555065 fc32e9a04d264dc998229a0b3b80f904 5009fa30ea6444eabc5e812693463284 - default default] show failed (client error): The resource could not be found.
Device qg-54f8ec74-cc already exists
Device qg-54f8ec74-cc already exists
openstack中dashboard页面RuntimeError: Unable to create a new session key. It is likely that the cache is unavailable.
把/etc/openstack-dashboard/local_settings 中 SESSION_ENGINE = 'django.contrib.sessions.backends.cache' 应改为
SESSION_ENGINE = 'django.contrib.sessions.backends.file'
网友评论