KeyStone NoHandlers
Error
root@openstack-dev-r910:/home/brent/openstack# ./keystone_data.sh
No handlers could be found for logger “keystoneclient.client”
Unable to authorize user
No handlers could be found for logger “keystoneclient.client”
Unable to authorize user
No handlers could be found for logger “keystoneclient.client”
Unable to authorize user
Fix:
Adjust the admin token to be the same as your script and your /etc/keystone/keystone.conf
Also make sure keystone.conf has the following.
driver = keystone.catalog.backends.templated.TemplatedCatalog
template_file = /etc/keystone/default_catalog.templates
Someone say pain in the ass?
Keystone: ValueError: you need to pass either an existing engine or a database uri
Problem:~# keystone-manage db_sync
File “/usr/lib/python2.7/dist-packages/migrate/versioning/util/__init__.py”, line 116, in construct_engine
raise ValueError(“you need to pass either an existing engine or a database uri”)
ValueError: you need to pass either an existing engine or a database uri
Resolution:
Check Keystone.conf
Make sure it looks like this: connection = mysql://keystone:openstack@localhost:3306/keystone
Not that is for glance.registry :/ mysql_connection = mysql://keystone:openstack@localhost:3306/keystone
No handlers could be found for logger “keystoneclient.client”
Problem: No handlers could be found for logger “keystoneclient.client”
Authorization Failed: Unable to communicate with identity service: ‘\xe2\x80\x9dhttp’. (HTTP 400)
Resolution: Make sure you have the following variables:
root@openstack1:~# export SERVICE_TOKEN=openstack
root@openstack1:~# export OS_TENANT_NAME=admin
root@openstack1:~# export OS_USERNAME=admin
root@openstack1:~# export OS_PASSWORD=openstack
root@openstack1:~# export OS_AUTH_URL=”http://localhost:5000/v2.0/”
root@openstack1:~# export SERVICE_ENDPOINT=http://localhost:35357/v2.0
root@openstack1:~# keystone user-list
+———————————-+———+——————–+———+
| id | enabled | email | name |
+———————————-+———+——————–+———+
| 149136826c504aaf896645ee169aec7b | True | glance@domain.com | glance |
| 6ba91505d57a44b3abff9c957d10b463 | True | nova@domain.com | nova |
| bba82931db1a4236a6af9e377ab1aebb | True | admin@domain.com | admin |
| bd36f79a3708445593200b50a32b4127 | True | quantum@domain.com | quantum |
| d49d9dda0b95496594f0d142c5f25d22 | True | demo@domain.com | demo |
| f0c159e20b244477b02ae448b8029051 | True | swift@domain.com | swift |
+———————————-+———+——————–+———+
Access denied for user ‘keystone’@'openstack1′ (using password: YES)”)
Problem:# keystone-manage db_sync
File “/usr/lib/python2.7/dist-packages/MySQLdb/connections.py”, line 187, in __init__
super(Connection, self).__init__(*args, **kwargs2)
sqlalchemy.exc.OperationalError: (OperationalError) (1045, “Access denied for user ‘keystone’@'openstack1′ (using password: YES)”) None None
Make sure you keystone.conf looks like this.
[sql]
connection = mysql://keystone:openstack@localhost:3306/keystone
http://blog.csdn.net/spch2008/article/details/8114369
在裝openstack時,出錯的可能只是一個服務模塊,比如mysql,keystone,glance,nova等等,我們就需要把相應的模塊卸載掉,不用重裝整個系統了,這可以節省我們很多的時間,但很多人有不知道完全卸載這些模塊的命令,往往保留了以前裝的錯誤的配置文件,這就需要我們把所有的配置文件都卸載干凈。
現在我給大家提供一些完全卸載的命令,我們可以寫成腳本語言,可以很方便的執行:
#!/usr/bin/env bash
#刪除glance
apt-get remove -y glance glance-api glance-client glance-common glance-registry python-glance
#刪除nova
apt-get remove -y nova-api nova-cert nova-common nova-compute nova-compute-kvm nova-doc nova-network nova-objectstore nova-scheduler nova-volume python-nova python-novaclient nova-consoleauth python-novnc novnc
刪除dashboard
apt-get remove -y libapache2-mod-wsgi openstack-dashboard
#刪除mysql數據庫
apt-get remove -y mysql-server python-mysqldb
#刪除keystone
apt-get remove -y keystone python-keystone python-keystoneclient
dpkg -l |grep keystone|awk '{print $2}'|xargs dpkg -P
dpkg -l |grep glance|awk '{print $2}'|xargs dpkg -P
dpkg -l |grep nova|awk '{print $2}'|xargs dpkg -P
dpkg -l |grep mysql|awk '{print $2}'|xargs dpkg -P
dpkg -l |grep libapache2-mod-wsgi|awk '{print $2}'|xargs dpkg -P
## 刪除掉mysql里相應的數據庫
MYSQL_PASSWD=${MYSQL_PASSWD:-"cloud1234"}
mysql -uroot -p$MYSQL_PASSWD -e "DROP DATABASE IF EXISTS nova;"
mysql -uroot -p$MYSQL_PASSWD -e "DROP DATABASE IF EXISTS glance;"
mysql -uroot -p$MYSQL_PASSWD -e "DROP DATABASE IF EXISTS keystone;"
http://blog.sina.com.cn/s/blog_5edae1a101017e6j.html
Error: No handlers could be found for logger "keystoneclient.client"
Hi Connect to mysql and do the following: drop database keystone; create database keystone; This will re create the keystone DB to have a fresh start. Finally, execute keystone-manage db_sync and re-execute the scripts.
在這上面找錯https://bugs.launchpad.net/keystone/+bugs
http://blog.csdn.net/anhuidelinger/article/details/9941979
ou may also use the restart|star|sto(8)p utility, e.g.類錯誤
提示類似於如下:
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service squid start
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. start squid
以下方式進行:
sudo restart squid #重啟
sudo start squid #啟動
sudo stop squid #停止