openstack-db does not update sql connection string in keystone.conf if not mysql
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
During tests to create a keystone database with "openstack-db --service keystone --init", I found an error.
In the /etc/keystone/conf file, the [sql] section contains a "connection" setting. If the value does not start with "mysql:", openstack-db prompts: "keystone default DB is not mysql. Would you like to reset to mysql now? (y/n): ". If you respond "y", it attempts to change the line with sed, but fails quietly. The sed expression only works if the connection string already contains "mysql" (with or without an initial comment "#"), not if it contains "sqlite". The "sed" line is:
sed -i -e "s|^#* *\(\(sql_
This is on SLES11SP3, with openstack-utils release 1.1.
openstack-db and openstack-utils appears to be a proprietary Red Hat thing - I couldn't find a bug database for either project, though.