Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1631149

Summary: Cannot add vNIC from VM Portal
Product: Red Hat Enterprise Virtualization Manager Reporter: Germano Veit Michel <gveitmic>
Component: ovirt-web-uiAssignee: Scott Dickerson <sdickers>
Status: CLOSED ERRATA QA Contact: samuel macko <smacko>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.2.6CC: gshereme, kfujii, lleistne
Target Milestone: ovirt-4.2.7Keywords: Rebase, Regression, ZStream
Target Release: ---Flags: lsvaty: testing_plan_complete-
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-05 15:04:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: UX RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Germano Veit Michel 2018-09-20 05:48:43 UTC
Description of problem:

When attempting to add a vNIC from the VM Portal, nothing happens. Clicking OK does not result in any action. An error is thrown on the browser console.

Version-Release number of selected component (if applicable):
ovirt-engine-4.2.6.4-1.el7.noarch
ovirt-web-ui-1.4.2-1.el7.noarch

How reproducible:
100%

Steps to Reproduce:
1. Log in to VM Portal
2. Select one of VM
3. Click "Legacy View" button
4. Click a pencil mark next to "Network Interfaces"
5. Click New button
6. Select any VNIC profiles.
7. Click OK button

Actual results:
Nothing Happens

Expected results:
vNIC added to the VM

Additional info:
On chrome debug console, we can see the following:

index.js:135 Uncaught TypeError: Cannot read property 'get' of undefined
    at Object.onNicAdd [as onAdd] (index.js:135)
    at t.value (NewNicModal.js:39)
    at Object.o (react-dom.production.min.js:15)
    at Object.invokeGuardedCallback (react-dom.production.min.js:16)
    at Object.invokeGuardedCallbackAndCatchFirstError (react-dom.production.min.js:16)
    at c (react-dom.production.min.js:20)
    at p (react-dom.production.min.js:22)
    at m (react-dom.production.min.js:22)
    at f (react-dom.production.min.js:21)
    at g (react-dom.production.min.js:24)
onNicAdd @ index.js:135
value @ NewNicModal.js:39
o @ react-dom.production.min.js:15
invokeGuardedCallback @ react-dom.production.min.js:16
invokeGuardedCallbackAndCatchFirstError @ react-dom.production.min.js:16
c @ react-dom.production.min.js:20
p @ react-dom.production.min.js:22
m @ react-dom.production.min.js:22
f @ react-dom.production.min.js:21
g @ react-dom.production.min.js:24
y @ react-dom.production.min.js:24
ze @ react-dom.production.min.js:88
vr @ react-dom.production.min.js:221
Q @ react-dom.production.min.js:44
qe @ react-dom.production.min.js:89
interactiveUpdates @ react-dom.production.min.js:225
He @ react-dom.production.min.js:89

Comment 4 Scott Dickerson 2018-09-26 15:58:24 UTC
Fixed with https://github.com/oVirt/ovirt-web-ui/pull/790

Comment 6 Scott Dickerson 2018-10-11 12:42:30 UTC
Merged to master: https://github.com/oVirt/ovirt-web-ui/pull/790
PR for ovirt-web-ui-1.4 backport: https://github.com/oVirt/ovirt-web-ui/pull/819

Comment 7 Scott Dickerson 2018-10-11 12:46:58 UTC
Merged to ovirt-web-ui-1.4: https://github.com/oVirt/ovirt-web-ui/pull/819

Comment 8 samuel macko 2018-10-12 10:02:44 UTC
Verified on pull request https://github.com/oVirt/ovirt-web-ui/pull/790
which is merged into ovirt-web-ui-1.4.4-1.el7ev.noarch.
Ovirt-engine version ovirt-engine-4.2.7.1-0.1.el7ev.noarch.

Verified by following the reproducer.

Comment 10 errata-xmlrpc 2018-11-05 15:04:56 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

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

https://access.redhat.com/errata/RHBA-2018:3495

Comment 11 Daniel Gur 2019-08-28 13:14:46 UTC
sync2jira

Comment 12 Daniel Gur 2019-08-28 13:19:49 UTC
sync2jira