theforeman/foreman — pull request #1151 by rbirnie (2014-01-15 06:12:25+00:00)
Title: fixes #4016 - create libvirt hosts with pre-provisioned volumes

This allows foreman to create hosts on volumes that already exist on the host. You can mix and match both new volumes and current volumes in the same host. This should also allow foreman to manage hosts on multipath devices (SAN), which libvirt storage pools only support as read-only.

To-do:
Test deleting a host using a multipath device. Delete will fail, so need to handle it. Currently if you attach a pre-provisioned lvm storage volume it will delete it when you delete the host, same as normal.

I've thought about only offering a list of unused volumes in the form. Libvirt and fog are super slow though, so I'm not sure if this is a good idea even if it makes it more dummy proof. Thoughts?