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 userhtml
Fix:
Adjust the admin token to be the same as your script and your /etc/keystone/keystone.confpython
Also make sure keystone.conf has the following.mysql
driver = keystone.catalog.backends.templated.TemplatedCatalog
template_file = /etc/keystone/default_catalog.templatessql
Someone say pain in the ass?數據庫
Keystone: ValueError: you need to pass either an existing engine or a database uri
Problem:~# keystone-manage db_syncapache
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 uriswift
Resolution:api
Check Keystone.confbash
Make sure it looks like this: connection = mysql://keystone:openstack@localhost:3306/keystonedom
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 #中止