Merge "Expand on when you might want to set --max-count for map_instances"

This commit is contained in:
Zuul 2018-01-27 10:36:54 +00:00 committed by Gerrit Code Review
commit 39f115fcc0
2 changed files with 8 additions and 1 deletions

View File

@ -152,6 +152,10 @@ Nova Cells v2
instances have been mapped, and 1 if there are still instances to be
mapped.
If ``--max-count`` is not specified, all instances in the cell will be
mapped in batches of 50. If you have a large number of instances, consider
specifying a custom value and run the command until it exits with 0.
``nova-manage cell_v2 map_cell_and_hosts [--name <cell_name>] [--transport-url <transport_url>] [--verbose]``
Create a cell mapping to the database connection and message queue

View File

@ -1073,7 +1073,10 @@ class CellV2Commands(object):
help='Unmigrated instances will be mapped to the cell with the '
'uuid provided.')
@args('--max-count', metavar='<max_count>', dest='max_count',
help='Maximum number of instances to map')
help='Maximum number of instances to map. If not set, all instances '
'in the cell will be mapped in batches of 50. If you have a '
'large number of instances, consider specifying a custom value '
'and run the command until it exits with 0.')
def map_instances(self, cell_uuid, max_count=None):
"""Map instances into the provided cell.