After installing the keystone, its not able to sync with mysql DB
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
keystone (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
I am trying to configure NOVA on my UBUNTU 12.04 machine.
I installed Mysql and created keystone and other users required for openstack on work.
Please find below mysql users created :
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> select User,Host from mysql.user;
+------
| User | Host |
+------
| glance | % |
| keystone | % |
| nova | % |
| root | 127.0.0.1 |
| root | ::1 |
|
| root | localhost |
| debian-sys-maint | localhost |
| glance | localhost |
| keystone | localhost |
| nova | localhost |
| root | localhost |
+------
It has Keystone user and I can very well login from my shell as keystone user.So there is no problem with my permissions issues.
System is running with below keystone versions
esookus@
python-prettytable:
Installed: 0.5-1ubuntu2
Candidate: 0.5-1ubuntu2
Version table:
*** 0.5-1ubuntu2 0
500 http://
100 /var/lib/
esookus@
esookus@
keystone:
Installed: 2012.1-0ubuntu1
Candidate: 2012.1-0ubuntu1
Version table:
*** 2012.1-0ubuntu1 0
500 http://
100 /var/lib/
=======
But when ever I try to to keystone-manage db_sync , it results in failure with below mentioned errors
=======
Traceback (most recent call last):
File "/usr/bin/
cli.
File "/usr/lib/
return run(cmd, (args[:1] + args[2:]))
File "/usr/lib/
return CMDS[cmd]
File "/usr/lib/
return self.main()
File "/usr/lib/
driver.
File "/usr/lib/
migration.
File "/usr/lib/
current_version = db_version()
File "/usr/lib/
CONF.
File "<string>", line 2, in db_version
File "/usr/lib/
engine = construct_
File "/usr/lib/
return create_
File "/usr/lib/
return strategy.
File "/usr/lib/
dbapi = dialect_
File "/usr/lib/
return __import_
=======
Here is my keystone.conf file which it uses
=======
[DEFAULT]
#bind_host = 0.0.0.0
public_port = 5000
admin_port = 35357
admin_token = f00bar
compute_port = 8774
verbose = True
debug = True
log_config = /etc/keystone/
# ================= Syslog Options =======
# Send logs to syslog (/dev/log) instead of to file specified
# by `log-file`
use_syslog = False
# Facility to use. If unset defaults to LOG_USER.
# syslog_log_facility = LOG_LOCAL0
[sql]
connection = mysql:/
idle_timeout = 200
[ldap]
#url = ldap://localhost
#tree_dn = dc=example,dc=com
#user_tree_dn = ou=Users,
#role_tree_dn = ou=Roles,
#tenant_tree_dn = ou=Groups,
#user = dc=Manager,
#password = freeipa4all
#suffix = cn=example,cn=com
[identity]
driver = keystone.
[catalog]
driver = keystone.
template_file = /etc/keystone/
driver = keystone.
template_file = /etc/keystone/
driver = keystone.
template_file = /etc/keystone/
[token]
driver = keystone.
# Amount of time a token should remain valid (in seconds)
expiration = 86400
[policy]
driver = keystone.
[ec2]
driver = keystone.
[filter:debug]
paste.filter_
[filter:token_auth]
paste.filter_
[filter:
paste.filter_
[filter:xml_body]
paste.filter_
[filter:json_body]
paste.filter_
[filter:
paste.filter_
[filter:
paste.filter_
[app:public_
paste.app_factory = keystone.
[app:admin_service]
paste.app_factory = keystone.
[pipeline:
pipeline = token_auth admin_token_auth xml_body json_body debug ec2_extension public_service
[pipeline:
pipeline = token_auth admin_token_auth xml_body json_body debug ec2_extension crud_extension admin_service
[app:public_
paste.app_factory = keystone.
[app:admin_
paste.app_factory = keystone.
[pipeline:
pipeline = xml_body public_
[pipeline:
pipeline = xml_body admin_version_
[composite:main]
use = egg:Paste#urlmap
/v2.0 = public_api
/ = public_version_api
[composite:admin]
use = egg:Paste#urlmap
/v2.0 = admin_api
/ = admin_version_api
=======
I am not able to see why db_sync is failing.
Thanks in Advance and quick reply will be appreciated.
Best Regards
-Kush Sood
Hi Kush
I would suspect that your keystone user credentials are the problem when accessing mysql; but from the information above I can't actually confirm that; it would be helpful to have the commands that you ran to create the users.
Did you follow a particular install guide?