Hide Forgot
Created attachment 1202941 [details] engine.log Description of problem: detaching storage from DC removes all VMs and disks on this storage Version-Release number of selected component (if applicable): ovirt-engine-4.0.4.3-0.1.el7ev.noarch How reproducible: always Steps to Reproduce: 1. have 2 NFS storages created, one attached and active in DC 2. create VM and new disk for it, VM not running 3. attach to DC the second storage 4. move first storage to maintenance 5. detach first storage from DC Actual results: VM is removed, disk removed also Expected results: VM should stay in unregistered state (as mentioned in warning by detaching storage), but I'm not sure what should happen to disk, it maybe should stay in Disks list for next usage with other storage
I beliee it is a correct behavior, they will be readded on add existing storage domain Tal, is that correct?
(In reply to Michal Skrivanek from comment #1) > I beliee it is a correct behavior, they will be readded on add existing > storage domain > Tal, is that correct? Quite sure this is true and will be added on import domain, Maor can you confirm?
after the Administration Guide: 4.6.4. Detaching a Storage Domain from a Data Center ... Data, such as virtual machines and templates, remains attached to the storage domain. but no VMs are shown in main engine list even in the list for the dettached storage and when I attach the storage back to DC, the removed VMs don't appear. I don't see how this could be the right behavior. What exactly means import domain? I have the storage in engine all the time, but is not attached to any DC.
This should be the desired behavior, you can take a look at the import storage domain wiki see [1]: "On detach of Storage Domain the VMs/Templates related to the Storage Domain should be deleted from the engine, but their data will be converted to an XML data which will be preserved in a DB table called unregistered_ovf_of_entities, and will still be part of the OVF disk contained in the Storage Domain." [1] https://www.ovirt.org/develop/release-management/features/storage/importstoragedomain/ You can take a look at the following videos : https://www.youtube.com/watch?v=YbU-DIwN-Wc
All right, got it. I suggest to enhance warning message and add list of VMs with information, that they will be deleted from the engine and can be imported again.
Closing old RFEs. If relevant, please re-open and explain why. As always- patches are welcomed!