openstack-db does not update sql connection string in keystone.conf if not mysql

Bug #1308775 reported by Bill Lubanovic
6
This bug affects 1 person
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_\)*connection *= *mysql://$APP\):.*@|\1:${MYSQ L_APP_PW}@|" ${APP_CONFIG}

This is on SLES11SP3, with openstack-utils release 1.1.

Revision history for this message
Dolph Mathews (dolph) wrote :

openstack-db and openstack-utils appears to be a proprietary Red Hat thing - I couldn't find a bug database for either project, though.

Changed in keystone:
status: New → Invalid
Revision history for this message
Bill Lubanovic (bill-madscheme) wrote :

Thanks for checking, Dolph.

Havana install doc for SLES (SuSE) also specifies use of openstack-db: http://docs.openstack.org/havana/install-guide/install/zypper/content/keystone-install.html.

bugzilla.redhat.com has some openstack-db bugs. I'll report this there.

Revision history for this message
Bill Lubanovic (bill-madscheme) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.