#openstack故障处理汇总

##openstack故障处理汇总 排错

openstack pike 部署 目录汇总 http://www.cnblogs.com/elvi/p/7613861.html


#################################
#排错


#清空日志
rm -f /var/log/nova/*
rm -f /var/log/neutron/*
rm -f /var/log/glance/*
rm -f /var/log/keystone/*
rm -f /var/log/httpd/*


#重启所有openstack服务
openstack-service list
openstack-service restart
systemctl restart httpd.service memcached.service


#查询错误
grep 'ERROR' /var/log/nova/*
grep 'ERROR' /var/log/neutron/*
grep 'ERROR' /var/log/glance/*
grep 'ERROR' /var/log/keystone/*
grep 'ERROR' /var/log/httpd/error_log

#################################



################################# #
1、虚拟机网络正常,网页控制台报错 "错误:无法连接到Neutron" #查询原因如下: #Dashboard默认配置开启了路由,而Neutron配置没开启,造成冲突 #解决办法1 #Dashboard配置关闭路由,重启http #修改/etc/openstack-dashboard/local_settings配置'enable_router': True改为'enable_router': False sed -i "s#'enable_router': True#'enable_router': False#" /etc/openstack-dashboard/local_settings systemctl restart httpd.service #解决办法2 #Neutron配置开启route,重启Neutron服务 openstack-config --set /etc/neutron/neutron.conf DEFAULT service_plugins router systemctl restart neutron-server.service

#################################
##2


#计算节点报错
#Nova requires QEMU version 2.1.0 or greater
#qemu版本低于2.1 ,计算节点无法启动
echo '使用自定义openstack源'
wget -O /etc/yum.repos.d/Ali-pike.repo http://elven.vip/ks/openstack/Ali-pike.repo
yum install qemu-kvm-ev qemu-kvm-common-ev qemu-img-ev -y
# 重启计算服务

 

 

posted @ 2017-11-08 15:58 子隐 阅读(...) 评论(...) 编辑 收藏