oVirt network dropdown not being populated
|Assigned To:||Neil Miao|
|Category:||Compute resources - oVirt|
|Target version:||Sprint 26|
|Found in release:||Pull request:||https://github.com/theforeman/foreman/pull/1602|
|Velocity based estimate||-|
When using a oVirt CR and creating a new host or a edit compute profiles, the networks dropdown list doesn't populate when the dialog is first rendered. Switching from de pre-selected Default cluster to in my case Test will populate the dropdown list with the correct networks from that cluster. Switching back to Default will fill it with the networks of the Default cluster.
If I don't do this then my VM won't have a NIC on the oVirt side and Foreman will complain about a blanc MAC.
Attached a log of: login, select compute profiles, select small profile, add network, switch to Test cluster, switch back to Default, add storage network to profile.
#3 Updated by Joop van de Wege about 3 years ago
Steps to reproduce:
Create new Compute Profile name it 'test2', then edit it and try to add an Interface won't work, change the Template to Blank, save, then edit again, try to add Interface, works now but no networks available, notice Cluster is correct (Default), switch to a different Cluster, notice the network dropdown being populated, switch back and the dropdown is again populated but with the networks from the Default cluster.
Another instance I have @home does only have one Cluster and doesn't have this behaviour.
Our Test instance does have the problem too, also two clusters like production
#4 Updated by Neil Miao about 3 years ago
having the same issue with Foreman 1.5.1 + RHEV 3.3.3.
It seems the NIC is actually added to the compute profile successfully when the CP created, just that the CP editing page couldn't show it up correctly.
When I creating a new host, the NIC dropdown do shows up (with the right Network pre-selected) in the Compute Resource tab, when I do these in order:
1. fill in the host name
2. pick org and location
2. pick the rhev/ovirt compute resource (CR) (wait for the spinning circle disappear)
3. pick the compute profiles (CP) (wait for the spinning circle disappear)
This all good, however, if I create a host group (HG) and attach a CP to this HG, the Network dropdown is empty when creating a host with these steps:
1. fill in name
2. pick org and location
3. pick the host group (which draws in the compute profile automatically)
4. pick the compute resource