Not able to attach more than 25 volumes using virtio-scsi
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Opinion
|
Wishlist
|
Unassigned |
Bug Description
Not able to attach more than 25 volumes using virtio-scsi
In nova/virt/
def get_dev_
"""Determine the number disks supported.
Determine how many disks can be supported in
a single VM for a particular disk bus.
Returns the number of disks supported.
"""
if disk_bus == "ide":
return 4
else:
return 26 <=== we're just responding with 26 devices that we can use.
and
def find_disk_
"""Identify a free disk dev name for a bus.
Determines the possible disk dev names for
the bus, and then checks them in order until
it identifies one that is not yet used in the
disk mapping. If 'last_device' is set, it will
only consider the last available disk dev name.
Returns the chosen disk_dev name, or raises an
exception if none is available.
"""
dev_prefix = get_dev_
if dev_prefix is None:
return None
if assigned_devices is None:
max_dev = get_dev_
if last_device:
devs = [max_dev - 1]
else:
devs = range(max_dev)
for idx in devs:
disk_dev = dev_prefix + chr(ord('a') + idx) <====== need to correct naming of devices
if not has_disk_
if disk_dev not in assigned_devices:
raise exception.
_("No free disk device names for prefix '%s'") %
dev_prefix)
This isn't really a bug, and there is a blueprint for this with some discussion:
https:/ /blueprints. launchpad. net/nova/ +spec/nova- improvement- of-maximum- attach- volumes- more-than- 26-vols