Attach a volume with scsi bus on an instance boot from cdrom fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
In Progress
|
Undecided
|
Jose Castro Leon |
Bug Description
Following the upstream documentation to create images from an ISO (https:/
Driver failed to attach volume 95b42945-
Traceback (most recent call last):
File "/usr/lib/
device_
File "/usr/lib/
disk_
File "/usr/lib/
return max(ret)
ValueError: max() arg is an empty sequence
Looking at the code
def _get_scsi_
"""Returns the max disk unit used by scsi controller"""
xml = guest.get_
tree = etree.fromstrin
addrs = "./devices/
ret = []
for obj in tree.findall(
return max(ret)
As the instance has no existing devices in the scsi device bus, then the ret array is empty and the max function just fails with the traceback mentioned above.
Fix proposed to branch: master /review. openstack. org/615141
Review: https:/