[Openstack-operators] nova_cell0 database connection string
Alfredo Moralejo Alonso
amoralej at redhat.com
Fri May 26 17:42:56 UTC 2017
According to https://docs.openstack.org/developer/nova/cells.html#first-time-setup
you can specify database connection string with map_cell0 command:
nova-manage cell_v2 map_cell0 --database_connection \
mysql+pymysql://root:secretmysql@dbserver/nova_cell0?charset=utf8
Regards,
Alfredo
On Fri, May 26, 2017 at 5:15 PM, Massimo Sgaravatto
<massimo.sgaravatto at gmail.com> wrote:
> Thanks
>
> I guess you meant "nova db with cell0 appended" and not "nova_api db with
> cell0 appended" as you wrote
>
> My use case is that I share the same percona cluster to host the databases
> of multiple openstack installations. So if it is <nova-database-name>-cell0
> this is fine. If instead it is hard-coded to nova-cell0, we have a problem
>
> Thanks again, Massimo
>
>
> 2017-05-26 17:04 GMT+02:00 Mike Lowe <jomlowe at iu.edu>:
>>
>> The whole cell thing tripped me up earlier this week. From what I
>> understand it’s hard coded in the upgrade scripts to be the same as the
>> nova_api db with cell0 appended to the db name but there is a patch in to
>> change this behavior to match what the install docs say. So it looks like
>> if you just put the nova_cell0 db on the same host and make the credentials
>> match your nova db everything will just work out. You can double check by
>> looking at the cell_mapping table entries in your nova_api db.
>>
>>
>> On May 26, 2017, at 10:56 AM, Massimo Sgaravatto
>> <massimo.sgaravatto at gmail.com> wrote:
>>
>> Hi
>>
>> I am reading the RDO installation guide for Ocata. In the nova section [*]
>> it is explained how to create the nova_cell0 database, but I can't find how
>> to set the relevant connection string in the nova configuration file.
>> Any hints ?
>> Thanks, Massimo
>>
>>
>> [*]
>>
>> https://docs.openstack.org/ocata/install-guide-rdo/nova-controller-install.html
>> _______________________________________________
>> OpenStack-operators mailing list
>> OpenStack-operators at lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>>
>>
>
>
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>
More information about the OpenStack-operators
mailing list