[Keystone-manage] please give a nicer failure message
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Executing keystone-manage with normal user privileges fails.
My understanding is that this is due to security features.
At any rate - it should give a readable error message.
Trying to setup dashboard, according to:
http://
myuser@
admin 2015-02-05T00:00
WARNING:
version controlled; run `keystone-manage sync_database` or override
your migrate version manually (see docs)
ERROR: (OperationalError) unable to open database file None None
ERROR:keystone.
Traceback (most recent call last):
File "/usr/bin/
keystone.
File "/usr/lib/
line 483, in main
process(
File "/usr/lib/
line 106, in parse_args
db.configure
File "/usr/lib/
line 53, in configure_backends
backend_
File "/usr/lib/
line 158, in configure_backend
_DRIVER = Driver(conf)
File "/usr/lib/
line 53, in __init__
self.
File "/usr/lib/
line 77, in _init_engine
self.
File "/usr/lib/
line 129, in _init_tables
checkfirst=True)
File "/usr/lib/
2535, in create_all
tables=tables)
File "/usr/lib/
line 2230, in _run_visitor
conn = self.contextual
File "/usr/lib/
line 2340, in contextual_connect
self.
File "/usr/lib/
210, in connect
return _ConnectionFair
File "/usr/lib/
371, in __init__
rec = self._connectio
File "/usr/lib/
758, in _do_get
return self._create_
File "/usr/lib/
174, in _create_connection
return _ConnectionReco
File "/usr/lib/
256, in __init__
self.connection = self.__connect()
File "/usr/lib/
316, in __connect
connection = self.__
File "/usr/lib/
line 80, in connect
return dialect.
File "/usr/lib/
line 280, in connect
return self.dbapi.
sqlalchemy.
database file None None
===============
*** Database config
===============
myuser@
# Default: 'sqlite'
# Available choices are 'sqlite' [future will include LDAP, PAM, etc]
default_store = sqlite
backends = keystone.
[keystone.
# SQLAlchemy connection string for the reference implementation registry
# server. Any valid SQLAlchemy connection string is fine.
sql_connection = sqlite:
# Period in seconds after which SQLAlchemy should reestablish its connection
sql_idle_timeout = 30
File Check:
myuser@
ls: cannot access /var/lib/
root@nova-
-rw-r--r-- 1 root root 28672 Feb 21 03:44 /var/lib/
I am using Debian GNU/Linux 7.0 / testing.
Related to Debian Bug:
http://
--
-Alexey Eromenko "Technologov"
alexy,
this bug is based on code that's been dramatically replaced, and seems to be more related to packaging than the project itself. Could you check with the latest packages, or relate how you installed it to help identify this bug?