Comment 4 for bug 1013782

Revision history for this message
Mark McLoughlin (markmc) wrote :

In LibvirtConnection.attach_volume() we do:

        mount_device = mountpoint.rpartition("/")[2]
        xml = self.volume_driver_method('connect_volume',
                                        connection_info,
                                        mount_device)

in _prepare_xml_info() we do:

            mountpoint = vol['mount_device']
            xml = self.volume_driver_method('connect_volume',
                                            connection_info,
                                            mountpoint)

Pretty confident we just need to do:

 - mountpoint = vol['mount_device']
 + mountpoint = vol['mount_device'].rpartition("/")[2]