Bug 1952369 - [SR-IOV] [Failover] Can't unplug VM's vNIC if the failover vNIC profile has been changed
Summary: [SR-IOV] [Failover] Can't unplug VM's vNIC if the failover vNIC profile has b...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Network
Version: 4.4.6.4
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ovirt-4.4.6
: ---
Assignee: Ales Musil
QA Contact: Michael Burman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-22 07:21 UTC by Michael Burman
Modified: 2021-05-05 05:36 UTC (History)
3 users (show)

Fixed In Version: ovirt-engine-4.4.6.6
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-05 05:36:24 UTC
oVirt Team: Network
Embargoed:
pm-rhel: ovirt-4.4+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 114426 0 master MERGED core, webadmin: Block update of vnic profile failover for used profiles 2021-04-26 09:47:36 UTC

Description Michael Burman 2021-04-22 07:21:38 UTC
Description of problem:
[SR-IOV] [Failover] Can't unplug VM's vNIC if the failover vNIC profile has been changed.

With the new sr-iov failover feature, user can start a VM with failover vNIC and then change the failover vNIC profile to another network, this will trigger the new out of sync indication introduced in BZ 1113630, that will suggest the user to unplug and replug the vNIC for the changes to apply.
When user trying to unplug the vNIC he fail with:
"
Error while executing action Edit VM Interface properties: General Exception
Close
"

ERROR FINISH hotunplugNic error=macAddr
                                                              Traceback (most recent call last):
                                                                File "/usr/lib/python3.6/site-packages/vdsm/common/api.py", line 124, in method
                                                                  ret = func(*args, **kwargs)
                                                                File "/usr/lib/python3.6/site-packages/vdsm/API.py", line 393, in hotunplugNic
                                                                  return self.vm.hotunplugNic(params)
                                                                File "<decorator-gen-249>", line 2, in hotunplugNic
                                                                File "/usr/lib/python3.6/site-packages/vdsm/common/api.py", line 101, in method
                                                                  return func(*args, **kwargs)
                                                                File "/usr/lib/python3.6/site-packages/vdsm/virt/vm.py", line 3256, in hotunplugNic
                                                                  nicParams = {'macAddr': nic.macAddr}
                                                              AttributeError: macAddr


2021-04-22 10:16:12,516+0300 ERROR (jsonrpc/5) [api] FINISH hotunplugNic error=macAddr (api:134)
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/vdsm/common/api.py", line 124, in method
    ret = func(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/vdsm/API.py", line 393, in hotunplugNic
    return self.vm.hotunplugNic(params)
  File "<decorator-gen-249>", line 2, in hotunplugNic
  File "/usr/lib/python3.6/site-packages/vdsm/common/api.py", line 101, in method
    return func(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/vdsm/virt/vm.py", line 3256, in hotunplugNic
    nicParams = {'macAddr': nic.macAddr}
AttributeError: macAddr
2021-04-22 10:16:12,517+0300 INFO  (jsonrpc/5) [api.virt] FINISH hotunplugNic return={'status': {'code': 100, 'message': "General Exception: ('macAddr',)"}} from=::ffff:x
.x.x.x,48816, flow_id=da0214c, vmId=3a9aa726-40d0-4332-be1a-feb3f2e0702e (api:54)
2021-04-22 10:16:12,517+0300 INFO  (jsonrpc/5) [jsonrpc.JsonRpcServer] RPC call VM.hotunplugNic failed (error 100) in 0.00 seconds (__init__:312)

Version-Release number of selected component (if applicable):
rhvm-4.4.6.5-447.gd80dda7.9.el8ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. Start VM with sr-iov failover vNIC
2. Change the failover vNIC profile to another network
3. Try to unplug the vNIC for the changes to apply

Actual results:
Failed with error

Expected results:
1. Should work
2. Or maybe we should block such operation?

Comment 1 Michael Burman 2021-04-22 11:30:50 UTC
We decided to Block the update of vnic profile failover for used profiles and gray out this possibility, also to add tooltip.

Comment 2 Michael Burman 2021-05-02 14:42:41 UTC
Verified on - rhvm-4.4.6.6-0.10.el8ev.noarch

Comment 3 Sandro Bonazzola 2021-05-05 05:36:24 UTC
This bugzilla is included in oVirt 4.4.6 release, published on May 4th 2021.

Since the problem described in this bug report should be resolved in oVirt 4.4.6 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.