1、openstack创建实例失败,错误:no valid host was found
这个原因很多,需要结合日志一一排查,
- 创建云主机时选择小容量的云主机类型
- 配置文件错误,主要体现在Nova、neutron、glance的配置文件上
- 给出参考连接:
https://blog.csdn.net/wylfengyujiancheng/article/details/51868979
https://blog.csdn.net/yxwmzouzou/article/details/43892261
2、创建实例过程很慢,一直显示创建中,或者上传镜像一直显示上传中,在controller节点查询日志发现如下错误:
cat /var/log/nova/nova-conductor.log
ERROR:oslo.messaging._drivers.impl_rabbit [req-a5ff6d5d-a2dc-4c94-98f1-608e41be216d - - - - -] [c8563fdf-22c6-4410-9a4d-655e0216b1ab] AMQP server on 192.168.10.241:5672 is unreachable: [Errno 111] ECONNREFUSED. Trying again in 32 seconds. Client port: None
可能出现的错误是rabbit-mq服务关闭,查看rabbit服务状态:
systemctl status rabbitmq-server.service -l
如出现如下图,则说明服务关闭,需重启:
重启命令:
systemctl restart rabbitmq-server
重启之后再次查看rabbit服务的状态,已开启
然后回到dashboard界面,刷新发现问题解决。
3、控制节点和计算节点ping不通openstack中创建的虚拟机,显示错误:From 192.168.12.102 icmp_seq=1 Destination Host Unreachable
错误原因:
(1)虚拟机未开启
(2)虚拟机防火墙没关闭
查看防火墙状态
systemctl status firewalld
如果为active则关闭
systemctl stop firewalld && systemctl disable firewalld && systemctl stop NetworkManager && systemctl disable NetworkManager
(正常情况下,Centos不存在iptables,安装之后要关闭)
systemctl stop iptables && systemctl disable iptables
(3)如果前两种排查过后没有问题,重启网络
重启controller节点的网络
systemctl restart neutron-server
重启compute节点的网络
systemctl restart neutron-ovs-cleanup.service neutron-openvswitch-agent.service neutron-metering-agent.service neutron-metadata-agent.service neutron-lbaasv2-agent.service neutron-l3-agent.service neutron-dhcp-agent.service
4、控制节点、计算节点和虚拟机都能相互ping通,但虚拟机也能ping通百度的ip,但ping不通百度的主机名,也就是不能解析域名,错误如下:
[root@centos7-1 ~]# ping www.baidu.com
ping: www.baidu.com: Name or service not known
解决方法:
修改DNS服务器设置,只需要添加如下两行,修改即生效,不用重启
vim /etc/resolv.conf
nameserver 114.114.114.114
nameserver 1.2.4.8
参考博客:链接: https://blog.csdn.net/wangyh_0412/article/details/80074097.
5、删除云主机一直显示删除中,刷新也没用,如图:
解决方法:
在compute节点,即虚拟机所在节点,重启nova computer服务即可
systemctl restart openstack-nova-compute.service
参考链接:转载于:https://www.cnblogs.com/robertoji/p/4968280.html
6、基于packstack安装openstack时报错:
ERROR : Failed to run remote script, stdout: Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* centos-qemu-ev: mirrors.aliyun.com
* extras: mirrors.ustc.edu.cn
* updates: mirrors.aliyun.com
stderr: Warning: Permanently added '192.168.12.160' (ECDSA) to the list of known hosts.
+ trap t ERR
这块我是由于免密登录配置出现了问题,问题如下:
/usr/bin/ssh-copy-id: ERROR: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
ERROR: @ WARNING: POSSIBLE DNS SPOOFING DETECTED! @
ERROR: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
ERROR: The ECDSA host key for compute2 has changed,
ERROR: and the key for the corresponding IP address 192.168.12.171
ERROR: is unknown. This could either mean that
ERROR: DNS SPOOFING is happening or the IP address for the host
ERROR: and its host key have changed at the same time.
ERROR: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
ERROR: @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
ERROR: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
ERROR: IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
ERROR: Someone could be eavesdropping on you right now (man-in-the-middle attack)!
ERROR: It is also possible that a host key has just been changed.
ERROR: The fingerprint for the ECDSA key sent by the remote host is
ERROR: SHA256:X2Q3VPyci6FPsNRb9htFZCy+S1ZhtR8nu2WZaI5Cqrk.
ERROR: Please contact your system administrator.
ERROR: Add correct host key in /root/.ssh/known_hosts to get rid of this message.
ERROR: Offending ECDSA key in /root/.ssh/known_hosts:3
ERROR: ECDSA host key for compute2 has changed and you have requested strict checking.
ERROR: Host key verification failed.
解决方法:
ERROR: Add correct host key in /root/.ssh/known_hosts to get rid of this message.
ERROR: Offending ECDSA key in /root/.ssh/known_hosts:3
错误中已给出解决方法:
vim /root/.ssh/known_hosts
删除掉错误的ip信息,然后再做ssh-copy-id操作即可。
7、