Red Hat Bugzilla – Bug 1004386
[RHEVM][webadmin] Inaccurate message when importing a VM to a DC without a matching VNIC profile
Last modified: 2016-02-10 14:57:08 EST
Description of problem:
When trying to to import a VM into a DC that doesn't have a VNIC profile for one of the networks that the VM is connected to an old warning that doesn't take VNIC profiles into account is shown.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. On one DC create a VM that has a VNIC profile for network sw1 on nic1 and export the VM.
2. Prepare a second DC that has network sw1 but delete all the VNIC profiles for that network.
3. Import the VM to the second DC.
The following warning is shown:
"While importing VM <UNKNOWN>, the Network/s sw1 were found to be Non-VM Networks or do not exist in Cluster. Network Name was not set in the Interface/s nic1."
The VM is imported but no profile is selected for nic1.
The message should contain the VM name instead of "<UNKNOWN>" and it should say something similar to "no matching VM interface profile was found for sw1".
Probably as a result of the fix to https://bugzilla.redhat.com/show_bug.cgi?id=1001068 this scenario can also be trigged if we change step 2 above to the following:
2. On the second DC all the VNIC profiles for sw1 should have port mirroring enabled (which makes them unusable for imported VM).
Perhaps not allowing deletion or modificatoion of the default profiles will block this and other similar scenarios.
Created attachment 793708 [details]
Verified in IS23
Closing - RHEV 3.3 Released