Rapid attach/detach of consecutive volumes eats up device names
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Medium
|
Boden R |
Bug Description
When running long tests involving the continuous attach and detach of hundreds of consecutive volumes, Nova will blindly assign them incrementing device paths and never reuse paths that were freed up. This eventually leads to strings of errors in n-api such as the following:
2014-10-02 14:04:12.298 DEBUG nova.api.
2014-10-02 14:04:12.299 AUDIT nova.api.
2014-10-02 14:04:12.358 DEBUG nova.api.
2014-10-02 14:04:12.359 INFO nova.osapi_
On the instance, the device paths mentioned in n-api aren't even being used. Typically the instance will reuse /dev/vdb, assuming only one volume at a time is being attached. Nova should be reporting the device path that's actually being used, and should definitely not be using special characters in the path.
Note that this is not a case of rapidly reattaching the same volume. To properly reproduce this situation, it is necessary to attach and detach new volumes.
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → High |
Additional note: The attaches work fine from /dev/vda to /dev/vdzz, but after that point extended characters are used and that's when the errors begin.