Reviewed:  https://review.openstack.org/319091
Committed: 
https://git.openstack.org/cgit/openstack/nova/commit/?id=00dc082699a6ca1e3e841bb092352e4f29a3b080
Submitter: Jenkins
Branch:    master

commit 00dc082699a6ca1e3e841bb092352e4f29a3b080
Author: Andrey Volkov <avol...@mirantis.com>
Date:   Thu May 19 18:20:17 2016 +0300

    Skip instance name templating in API cell
    
    There is a template called multi_instance_display_name_template
    which is used when a user creates multiple instances in one request.
    Template is used to assign display name to instance and
    by default looks like "%(name)s-%(count)d".
    
    If cells are enabled template was applied two or more times (in API cell
    and in child cell).
    
    Changes exclude template applying in API cell.
    Also tests are changed to check display name in default environment
    and cells environment.
    
    Change-Id: Ib6059dc17665a540916885b8d71d63bffeb6fca6
    Co-Authored-By: Andrew Laski <ala...@mirantis.com>
    Closes-Bug: #1533380


** 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/1533380

Title:
  Creating multiple instances with a single request when using cells
  creates wrong instance names

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  When creating multiple instances with a single request the instance name has 
the format defined in the "multi_instance_display_name_template" option.
  By default: multi_instance_display_name_template=%(name)s-%(count)d
  When booting two instances (num-instances=2) with the name=test is expected 
to have the following instance names:
  test-1
  test-2

  However, if using cells (only considering 2 levels) we have the following 
names:
  test-1-1
  test-1-2

  Increasing the number of cell levels adds more hops in the instance name.
  Changing the "multi_instance_display_name_template" to uuids has the same 
problem.
  For example: (consider <uuid> a random uuid)
  test-<uuid1>-<uuid1>
  test-<uuid1>-<uuid2>

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1533380/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to