the nova and nova_cell0 use the same database password

Bug #1692430 reported by caoyuan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Won't Fix
Undecided
Unassigned

Bug Description

The nova and nova_cell0 use the same database password, it is not safe for openstack

TASK [nova : Creating Nova databases user and setting permissions] *******************************************************************
changed: [gandalf -> gandalf] => (item={u'database_password': u'DnBBSyj0KA3GQREzChCsL7A1dPhMOauJVDpMFR6M', u'database_name': u'nova', u'database_username': u'nova'})
changed: [gandalf -> gandalf] => (item={u'database_password': u'DnBBSyj0KA3GQREzChCsL7A1dPhMOauJVDpMFR6M', u'database_name': u'nova_cell0', u'database_username': u'nova'})
changed: [gandalf -> gandalf] => (item={u'database_password': u'MCuWbFnDEBpX3UWDFupoS15uzmCmnMe63nlhRXo7', u'database_name': u'nova_api', u'database_username': u'nova_api’})

caoyuan (cao-yuan)
affects: kolla → kolla-ansible
Revision history for this message
Eduardo Gonzalez (egonzalez90) wrote :

Creation of cell0 cell is made here [1] , this cell creation takes the db value from [database]/connection value from your config file unless --database_connection is added into the command. This value is stored in nova_api db.

Excerpt from [2] :
If you are not going to pass the database url on the command line in step 3, you need to name the cell0 database based on the name of your existing Nova database: <Nova database name>_cell0.
Based of above, current {{ nova_database_name }}_cell0 is correct.

What I'm not sure is, how db sync for cell is handled, takes value from database=connection option or use the value stored in the nova_api db to sync the data, and how cell0 knows what db to use once set up. I think database=connection value is the correct way to handle this, and each cell points to it's connection name.

BTW, cell0 is an especial cell, is only used to store unscheduled or failed to schedule instances, is not a "real" functional cell.

[1] https://github.com/openstack/kolla-ansible/blob/master/ansible/roles/nova/tasks/simple_cell_setup.yml#L4
[2] https://docs.openstack.org/developer/nova/cells.html#cells-v2

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on kolla-ansible (master)

Change abandoned by caoyuan (cao.yuan@99cloud.net) on branch: master
Review: https://review.openstack.org/466615

Changed in kolla-ansible:
status: New → Won't Fix
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.