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

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,如需转载请自行联系原作者




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值