排错经历:openstack搭建dashboard进入输入帐号密码登录后报错

本文涉及的产品
RDS MySQL Serverless 基础系列,0.5-2RCU 50GB
云数据库 RDS MySQL,集群系列 2核4GB
推荐场景:
搭建个人博客
云数据库 RDS MySQL,高可用系列 2核4GB
简介:

wKioL1gAb2bCRAaBAABIHvWLrBc283.png-wh_50

查看error日志:

cat /var/log/httpd/error.log

[Thu Oct 13 13:37:00 2016] [error] raise exceptions.ConnectionFailed(reason=_("Maximum attempts reached"))

[Thu Oct 13 13:37:00 2016] [error] ConnectionFailed: Connection to neutron failed: Maximum attempts reached


neutron日志显示neutron的用户密码:

cat /var/log/neutron/server.log

perationalError: (OperationalError) (1045, "Access denied for user 'neutron'@'controller' (using password: YES)") None None


进入mysql查看果然:

[root@controller images]# mysql -uroot -p123456

mysql> SELECT user,host,password FROM mysql.user;

+----------+------------+-------------------------------------------+

| user     | host       | password                                  |

+----------+------------+-------------------------------------------+

| root     | localhost  | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |

| root     | controller | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |

| root     | 127.0.0.1  | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |

| keystone | localhost  | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |

| keystone | %          | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |

| glance   | localhost  | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |

| glance   | %          | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |

| nova     | localhost  | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |

| nova     | %          | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |

| neutron  | localhost  |                               |

| neutron  | %          |                               |

| cinder   | localhost  | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |

| cinder   | %          | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |

| heat     | localhost  | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |

| heat     | %          | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |

| sahara   | localhost  | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |

| sahara   | %          | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |

+----------+------------+-------------------------------------------+

17 rows in set (0.06 sec)



解决:(重新建立用户,并授权)

mysql> drop database neutron;

mysql> create database neutron;

mysql> GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'localhost' IDENTIFIED BY '123456';

mysql> GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'%' IDENTIFIED BY '123456';

 

mysql> SELECT user,host,password FROM mysql.user;

+----------+------------+-------------------------------------------+

| user     | host       | password                                  |

+----------+------------+-------------------------------------------+

| root     | localhost  | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |

| root     | controller | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |

| root     | 127.0.0.1  | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |

| keystone | localhost  | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |

| keystone | %          | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |

| glance   | localhost  | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |

| glance   | %          | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |

| nova     | localhost  | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |

| nova     | %          | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |

| neutron  | localhost  | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |

| neutron  | %          | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |

| cinder   | localhost  | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |

| cinder   | %          | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |

| heat     | localhost  | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |

| heat     | %          | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |

| sahara   | localhost  | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |

| sahara   | %          | *6BB4837EB74329105EE4568DDA7DC67ED2CA2AD9 |

+----------+------------+-------------------------------------------+


重启mysqld memcached httpdneutron-server 服务


成功解决,登录正常进入dashboard界面。





      本文转自谢育政 51CTO博客,原文链接:http://blog.51cto.com/kurolz/1861869,如需转载请自行联系原作者




相关实践学习
如何在云端创建MySQL数据库
开始实验后,系统会自动创建一台自建MySQL的 源数据库 ECS 实例和一台 目标数据库 RDS。
全面了解阿里云能为你做什么
阿里云在全球各地部署高效节能的绿色数据中心,利用清洁计算为万物互联的新世界提供源源不断的能源动力,目前开服的区域包括中国(华北、华东、华南、香港)、新加坡、美国(美东、美西)、欧洲、中东、澳大利亚、日本。目前阿里云的产品涵盖弹性计算、数据库、存储与CDN、分析与搜索、云通信、网络、管理与监控、应用服务、互联网中间件、移动服务、视频服务等。通过本课程,来了解阿里云能够为你的业务带来哪些帮助     相关的阿里云产品:云服务器ECS 云服务器 ECS(Elastic Compute Service)是一种弹性可伸缩的计算服务,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。产品详情: https://www.aliyun.com/product/ecs
相关文章
|
6月前
|
运维 数据可视化 Linux
云计算|OpenStack|社区版OpenStack安装部署文档(七--- 仪表盘服务dashboard的安装部署---Rocky版)
云计算|OpenStack|社区版OpenStack安装部署文档(七--- 仪表盘服务dashboard的安装部署---Rocky版)
152 0
openstack登陆dashboard提示认证发生错误
openstack登陆dashboard提示认证发生错误
1120 0
openstack登陆dashboard提示认证发生错误
|
Linux 数据库
【Openstack】排错:Glance服务安装后HTTP 500解决
在搭建Openstack平台时,装完各个组件后发现了glance无法正常使用
2629 0
【Openstack】排错:Glance服务安装后HTTP 500解决
|
6月前
|
云计算
云计算|OpenStack|社区版OpenStack安装部署文档(十--- 调整配额限制和解决建虚拟机报错---No valid host was found---Rocky版)
云计算|OpenStack|社区版OpenStack安装部署文档(十--- 调整配额限制和解决建虚拟机报错---No valid host was found---Rocky版)
224 0
|
安全 Apache Swift
(六)Open Stack(M)----Horizon(Dashboard)安装和配置
(六)Open Stack(M)----Horizon(Dashboard)安装和配置
360 0
|
消息中间件 网络架构
OpenStack报错:MessagingTimeout: Timed out waiting for a reply to message ID
OpenStack报错:MessagingTimeout: Timed out waiting for a reply to message ID
1368 0
|
块存储
【Openstack】排错:Cinder创建云硬盘状态错误解决
Cinder创建云硬盘状态错误,配置服务器时钟同步
4259 0
【Openstack】排错:Cinder创建云硬盘状态错误解决
|
Windows
Openstack架构构建及详解(6)--Dashboard组件
Openstack架构构建及详解(6)--Dashboard组件
186 0
openstack报错——MainPID=0 Id=neutron-server.service ActiveState=failed
openstack报错——MainPID=0 Id=neutron-server.service ActiveState=failed
370 0
openstack报错——MainPID=0 Id=neutron-server.service ActiveState=failed
|
安全 Apache 开发者
(七)OpenStack---M版---双节点搭建---Dashboard安装和配置
(七)OpenStack---M版---双节点搭建---Dashboard安装和配置
319 0
(七)OpenStack---M版---双节点搭建---Dashboard安装和配置