in Juno/Kilo, we added ceilometer purpose specific connections for:
metering, alarms, event. Rather than piggyback off oslo.db's
connection option (which gives misleading sql help message), we
should use Ceilometer specific connections.
Change-Id: I7703b73708a5807fb8de89fbb828f06b488acf69
| ... | ... |
@@ -183,10 +183,14 @@ function configure_ceilometer {
|
| 183 | 183 |
configure_auth_token_middleware $CEILOMETER_CONF ceilometer $CEILOMETER_AUTH_CACHE_DIR |
| 184 | 184 |
|
| 185 | 185 |
if [ "$CEILOMETER_BACKEND" = 'mysql' ] || [ "$CEILOMETER_BACKEND" = 'postgresql' ] ; then |
| 186 |
- iniset $CEILOMETER_CONF database connection $(database_connection_url ceilometer) |
|
| 186 |
+ iniset $CEILOMETER_CONF database alarm_connection $(database_connection_url ceilometer) |
|
| 187 |
+ iniset $CEILOMETER_CONF database event_connection $(database_connection_url ceilometer) |
|
| 188 |
+ iniset $CEILOMETER_CONF database metering_connection $(database_connection_url ceilometer) |
|
| 187 | 189 |
iniset $CEILOMETER_CONF DEFAULT collector_workers $API_WORKERS |
| 188 | 190 |
else |
| 189 |
- iniset $CEILOMETER_CONF database connection mongodb://localhost:27017/ceilometer |
|
| 191 |
+ iniset $CEILOMETER_CONF database alarm_connection mongodb://localhost:27017/ceilometer |
|
| 192 |
+ iniset $CEILOMETER_CONF database event_connection mongodb://localhost:27017/ceilometer |
|
| 193 |
+ iniset $CEILOMETER_CONF database metering_connection mongodb://localhost:27017/ceilometer |
|
| 190 | 194 |
configure_mongodb |
| 191 | 195 |
cleanup_ceilometer |
| 192 | 196 |
fi |