← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1917721] [NEW] nova volume attach scsi controller unit allocation bug

 

You have been subscribed to a public bug:

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

-- 
nova volume attach scsi controller unit allocation  bug
https://bugs.launchpad.net/bugs/1917721
You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Compute (nova).


References