yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #68560
[Bug 1720130] Re: nova-manage map_instances is not using the cells info from the API database
Reviewed: https://review.openstack.org/510844
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=eaa3023502d84502059573e492dac1aa39877207
Submitter: Zuul
Branch: master
commit eaa3023502d84502059573e492dac1aa39877207
Author: Surya Seetharaman <suryaseetharaman.9@xxxxxxxxx>
Date: Tue Oct 10 11:40:06 2017 +0200
nova-manage map_instances is not using the cells info from the API database
In order to map instances, nova-manage takes the database info of the cell from
the config file (so by default this points to cell0 in nova.conf) and so for
every new cell created, in order to do the map_instances, the correct --config-file
has to be specified in addition to the --cell_uuid option that is provided.
So it is better if this info is taken from the cell_mappings table inside the
nova-api database using the provided --cell_uuid.
Change-Id: Ib86e25bf8c4cd4008eae43c49c74f24b1b63518a
Closes-Bug: #1720130
** Changed in: nova
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1720130
Title:
nova-manage map_instances is not using the cells info from the API
database
Status in OpenStack Compute (nova):
Fix Released
Bug description:
In order to map instances, nova-manage takes the DB info of the cells
from the config file (so by default this points to cell0 in nova.conf)
and so for every new cell created, in order to do the map_instances,
the correct config file has to be specified in addition to the
--cell_uuid option that is provided i.e like this :
nova-manage --config-file /etc/nova/nova_cell2.conf cell_v2
map_instances --cell_uuid ""
So it is better if this info is taken from the cell_mappings table
inside the API database. Basically query for the database_connection
column value of the cell provided, from the cell_mappings table in
nova-api DB and map the unmapped instances to the --cell_uuid that is
provided.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1720130/+subscriptions
References