Session obtained by SqlAlchemy driver does not use ceilometer.conf's database_connection setting
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ceilometer |
Fix Released
|
Undecided
|
gordon chung |
Bug Description
The SqlAlchemy driver (impl_sqlalchem
Here is a trace showing the current behavior:
(Pdb) l
135 url = conf.database_
136 if url == 'sqlite://':
137 url = os.environ.
138 LOG.info(
139 #sqlalchemy_
140 -> self.session = sqlalchemy_
141
142 def upgrade(self, version=None):
143 migration.
144
145 def clear(self):
(Pdb) w
...
/opt/
-> state.request.cfg)
/opt/
-> return Connection(conf)
> /opt/stack/
-> self.session = sqlalchemy_
(Pdb) s
...
> /opt/stack/
-> _ENGINE = create_
(Pdb) p CONF.sql_connection
'sqlite:
This is strange, because on startup the connection info appears correct:
serving on 0.0.0.0:8777, view at http://
2013-05-22 09:01:51,302 DEBUG [ceilometer.
2013-05-22 09:01:51 DEBUG [ceilometer.
> /opt/stack/
-> url = conf.database_
(Pdb) c
2013-05-22 09:01:54,510 INFO [ceilometer.
2013-05-22 09:01:54 INFO [ceilometer.
> /opt/stack/
-> query = self.session.
Here's the contents of /etc/ceilometer
[DEFAULT]
os_auth_url = http://<ip address>:35357/v2.0
os_tenant_name = service
os_password = password
os_username = ceilometer
policy_file = /etc/ceilometer
verbose = True
notification_topics = notifications
rabbit_password = password
rabbit_host = localhost
rpc_backend = ceilometer.
database_
sql_connection=
[keystone_
signing_dir = /var/cache/
admin_tenant_name = service
admin_password = password
admin_user = ceilometer
auth_protocol = http
I wonder if impl_sqlalchemy's Connection.
Changed in ceilometer: | |
status: | New → In Progress |
assignee: | nobody → gordon chung (chungg) |
Changed in ceilometer: | |
milestone: | none → havana-2 |
status: | Fix Committed → Fix Released |
Changed in ceilometer: | |
milestone: | havana-2 → 2013.2 |
Oh, this is likely due the recent switch to Oslo session connection stuff for SQL I guess :(