Creating multiple instances with a single request when using cells creates wrong instance names
Bug #1533380 reported by
Belmiro Moreira
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Andrey Volkov |
Bug Description
When creating multiple instances with a single request the instance name has the format defined in the "multi_
By default: multi_instance_
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_
For example: (consider <uuid> a random uuid)
test-<uuid1>
test-<uuid1>
Changed in nova: | |
assignee: | nobody → Belmiro Moreira (moreira-belmiro-email-lists) |
description: | updated |
Changed in nova: | |
assignee: | nobody → Anusha Unnam (anusha-unnam) |
Changed in nova: | |
assignee: | Anusha Unnam (anusha-unnam) → nobody |
Changed in nova: | |
assignee: | nobody → Dharini Chandrasekar (dharini-chandrasekar) |
assignee: | Dharini Chandrasekar (dharini-chandrasekar) → nobody |
Changed in nova: | |
assignee: | nobody → STEW TY (stewie925) |
To post a comment you must log in.
The method _apply_ instance_ name_template which generates the display_name for multiple created instances takes the current display_name as input to the string substitution. A simple fix would be to guard against calling this method when in the api cell.