yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #85318
[Bug 1917721] [NEW] nova volume attach scsi controller unit allocation bug
Public bug reported:
The scsi controller unit number only increases without decreasing, and
there is no recycling.
virt/libvirt/driver.py
```
def _get_scsi_controller_next_unit(self, guest):
"""Returns the max disk unit used by scsi controller"""
xml = guest.get_xml_desc()
tree = etree.fromstring(xml)
addrs = "./devices/disk[target/@bus='scsi']/address[@type='drive']"
ret = []
for obj in tree.xpath(addrs):
ret.append(int(obj.get('unit', 0)))
return max(ret) + 1 if ret else 0
```
** Affects: nova
Importance: Undecided
Status: New
** Project changed: cinder => nova
--
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/1917721
Title:
nova volume attach scsi controller unit allocation bug
Status in OpenStack Compute (nova):
New
Bug description:
The scsi controller unit number only increases without decreasing, and
there is no recycling.
virt/libvirt/driver.py
```
def _get_scsi_controller_next_unit(self, guest):
"""Returns the max disk unit used by scsi controller"""
xml = guest.get_xml_desc()
tree = etree.fromstring(xml)
addrs = "./devices/disk[target/@bus='scsi']/address[@type='drive']"
ret = []
for obj in tree.xpath(addrs):
ret.append(int(obj.get('unit', 0)))
return max(ret) + 1 if ret else 0
```
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1917721/+subscriptions
Follow ups