Bug 1303640
Summary: | [SR-IOV] - PF is no longer considered as a PF after the VM shuts down, if it was attached/added directly to VM via Host Devices sub tab | ||
---|---|---|---|
Product: | [oVirt] ovirt-engine | Reporter: | Michael Burman <mburman> |
Component: | BLL.Network | Assignee: | Alona Kaplan <alkaplan> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Michael Burman <mburman> |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 3.6.2.6 | CC: | alkaplan, bugs, danken, sbonazzo, ylavi |
Target Milestone: | ovirt-3.6.5 | Flags: | rule-engine:
ovirt-3.6.z+
rule-engine: exception+ ylavi: planning_ack+ danken: devel_ack+ rule-engine: testing_ack+ |
Target Release: | 3.6.5 | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-04-21 14:42:26 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | Network | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Michael Burman
2016-02-01 14:46:44 UTC
An oVirt user had a similar problem- http://lists.ovirt.org/pipermail/users/2016-January/037509.html The names of the nics were switched. The user had a host with 4 sriov nics. The sriov nics were - eth2, eth3, eth4 and eth5. After a reboot, the names were switched - eth1, eth3, eth4 and eth6 became the sriov nics. Since the pci devices didn't change and only the 'net_iface_name' on the net devices was changed, 'host_nic_vfs_config' table is not being updated (currently, the code updates it only if the pci devices are changed). Since the id value in vds_interface table is resolved by the nic_name reported from by getVdsCap. The vds_interface table ids and names are staying the same, just the data is switched. If previously id 'id1' referenced to name 'eth1', after the name switching id 'id1' will still reference to name 'eth1'. The entries in 'host_nic_vfs_config' table refer via the nic_id to 'vds_interface' table. It means that they refer to the same nic_names they referred before the switch. Since after the names switch this nic_name no longer refer to sriov nic. It cause NPE when trying to open the 'Host setup networks' dialog of the related host (it assumes the nic is sriov and has 'total_num_of_vfs'. This assumption is wrong and causes NPE). Verified on - 3.6.5-0.1.el6 and vdsm-4.17.25-0.el7ev.noarch |