OpenStack登入界面(dashboard)打不开,一直显示连接超时,图形界面登入后云主机和网络也创建不了一直报错。

dashboard界面报错

可以试着重启dashboard服务

#systemctl restart memcached.service
#service httpd restart

创建网络云主机也一直报错

(报错的图一般都是右上角出现红色字体的文字)

试着重启Neutron服务

#service openstack-nova-api restart
#service openstack-nova-scheduler restart
#service openstack-nova-conductor restart
#service neutron-server restart

再重启Nova服务(这里只重启部分)

#service openstack-nova-consoleauth restart
#service openstack-nova-novncproxy restart

然后就可以成功创建了

以上重启命令以编辑成脚本

#!/bin/bash
set -e
COLOR="\033[32m"
COLOREND="\033[0m"
COLOR1="\033[31m"
COLOREND1="\033[0m"
`systemctl restart memcached.service`  &&  echo -e "$COLOR restart memcached successful$COLOREND" || echo -e "$COLOR1 restart failed$COLOREND1"
`service httpd restart`  &&  echo -e "$COLOR restart http successful$COLOREND"  || echo -e "$COLOR1restart failed$COLOREND1"
`service openstack-nova-api restart` && echo -e "$COLOR restart nova-api successful$COLOREND" || echo -e "$COLOR1 restart failed$COLOREND1"
`service openstack-nova-scheduler restart` && echo -e "$COLOR restate nova-scheduler successful$COLOREND" || echo -e "$COLOR1 restart failed$COLOREND1"
`service openstack-nova-conductor restart` && echo -e "$COLOR restart nova-conductor$COLOREND" ||  echo -e "$COLOR1 restart failed$COLOREND1"
`service neutron-server restart` && echo -e "$COLOR restart neutron-service$COLOREND" || echo -e "$COLOR1restart failed$COLOREND1"
`service openstack-nova-consoleauth restart` && echo -e "$COLOR restart nova-consoleauth$COLOREND" || echo -e "$COLOR1 restart failed$COLOREND1"
`service openstack-nova-novncproxy restart` && echo -e "$COLOR restart nova-novncproxy$COLOREND" || echo -e "$COLOR1 restart failed$COLOREND1"

脚本使用方法

vi restart.sh    //复制上面的脚本内容,到此文件
chomd +x restart.sh     //给此脚本一个执行权限
./restart.sh            //执行此脚本

你可能感兴趣的:(openstack)