Description of problem: [admin portal] When importing a VM Default storage domain should be one with biggest free space. I regularly import a VM on our first storage domain (alphanum sorted) which in almost full and thus import fails. It seems 'Default' is also superfluous word in the Import VM dialog on storage line. Version-Release number of selected component (if applicable): rhevm-webadmin-portal-3.6.0.2-0.1.el6.noarch How reproducible: 100% Steps to Reproduce: 1. have two storage domains, A and B 2. have A almost full so imported VM won't fit 3. import VM from an export domain and don't change anything Actual results: a VM being imported is copied onto almost full A storage domain Expected results: by default let's propose storage domain with biggest free space, an user could change it to his likes if needed Additional info:
Not sure I'd necessarily go with the domain with the most free space, but having a domain you can't import to as the default target is definitely a bug.
Eldan, can we get your two cents about this? What is the right approach here? Maybe we can filter out from the list the domains that don't have enough space for the import?
I tend to agree with Allon. But, to prevent choosing from a low capacity domain, I would add to each domain name in brackets, how much free space available. Storage1 (Free 1GB) Storage2 (Free 2GB) ...
(In reply to Idan Shaby from comment #2) > Eldan, can we get your two cents about this? > What is the right approach here? Maybe we can filter out from the list the > domains that don't have enough space for the import? Can you pls provide steps in order to verify this bug, I'm not sure what the expected results suppose to be here.
Sure, I didn't touch the list of storage domains at all, only changed the default selection of the storage domain, as the title claims, to be the one with the most free space among all the domains in the list.
Verified with the following code: ------------------------------------------ rhevm-4.1.0.2-0.1.el7 Verified with the following scenario: ------------------------------------------ Steps to reproduce: ------------------------------------------ 1. have two storage domains, A and B 2. Export VM to export domain 3. Import VM from an export domain Result: Default storage domain was the one with the most free space. Moving to VERIFIED