On 11/30/2011 12:35 PM, Robert Kukura wrote:
On 11/30/2011 12:22 PM, Alan Pevec wrote:
> On Wed, Nov 30, 2011 at 3:36 PM, Russell Bryant<rbryant(a)redhat.com> wrote:
>>>> openstack-nova is now set up to use MySQL by default instead of SQLite.
>>>> To help make the setup a bit easier, there is a script that will
set
>>>> up MySQL for you: openstack-nova-db-setup.
>>>
>>> Another thought on this - perhaps it could also offer to change the
>>> MySQL nova user's password from the default too? And update nova.conf
>>> with the new password?
>>
>> That's a good idea.
>>
>> I was also thinking about adding more command line options to make sure
>> it could be run non-interactively if it were to be used in an automated
>> install.
>
> I'm looking to implement this db change for keystone too, so maybe it
> would make sense to have generalized db setup script in
> openstack-common package?
> Mark, you're working on that upstream, right? Would that package be a
> right place for such common scripts or is it for Python modules only?
The quantum plugins use MySQL and would probably make use of this as
well. For essex, I expect each plugin to be a separate openstack-quantum
sub-package, or more likely a pair of them in order to keep the
config/dbsetup/etc stuff separate from the python modules.
Combining all of these into one script seems like a fine idea, but I
think it would make sense to make it optional which component(s) it is
configuring the database for.
I also considered whether such a script belonged upstream or not. Right
now it's doing some Fedora specific stuff though, like offering to
install mysql-server for you if it's not already installed. It could
eventually be made more generic, but that takes time and effort. :-)
--
Russell Bryant