yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #85986
[Bug 1917721] Re: nova volume attach scsi controller unit allocation bug
[Expired for OpenStack Compute (nova) because there has been no activity
for 60 days.]
** Changed in: nova
Status: Incomplete => Expired
--
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):
Expired
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
References