Bug 1460622 - [RHV] Provision VM from template having 2 NICs fails to attach second NIC
Summary: [RHV] Provision VM from template having 2 NICs fails to attach second NIC
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Provisioning
Version: 5.8.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: cfme-future
Assignee: Greg McCullough
QA Contact: Ilanit Stein
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-06-12 08:54 UTC by Sachin
Modified: 2020-12-14 08:50 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-11-20 19:56:45 UTC
Category: ---
Cloudforms Team: RHEVM
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Sachin 2017-06-12 08:54:15 UTC
Description of problem:

When provisioning VM from template with 2 network interfaces, only 1 Nic is attached to VM.

Version-Release number of selected component (if applicable):
5.8.0.17

How reproducible:
Always

Steps to Reproduce:
1. Create RHV template with 2 nics
2. Provision a VM with template

Actual results:
Both NIC should be attached

Expected results:
Only one NIC is attached

Additional info:
Both NICs are attached when VM is create from VMware.

Comment 7 Sachin 2017-06-12 13:47:33 UTC
Now this is strange, I ran object_walker on template, it shows number_of_nics as nil

~~~
[----] I, [2017-06-12T18:46:03.399253 #16289:73be08c]  INFO -- : <AutomationEngine> <AEMethod object_walker> object_walker#C21946FE:[3] hardware.number_of_nics = nil
~~~

But I see same MAC address visible as in VMware
~~~
[----] I, [2017-06-12T18:46:03.482140 #16289:73be08c]  INFO -- : <AutomationEngine> <AEMethod object_walker> object_walker#C21946FE:[3] hardware.mac_addresses = ["00:50:56:xx:yy:zz", "00:50:56:xx:aa:bb"]   (type: Array)
~~~


Object walker on VM(provisioned from template)
~~~
[----] I, [2017-06-12T19:13:07.249507 #16289:9f92b54]  INFO -- : <AutomationEngine> <AEMethod object_walker> object_walker#5491EFB0:[3] hardware.number_of_nics = nil


[----] I, [2017-06-12T19:13:07.427963 #16289:9f92b54]  INFO -- : <AutomationEngine> <AEMethod object_walker> object_walker#5491EFB0:[3] hardware.mac_addresses = ["00:50:56:xx:cc:dd"]   (type: Array)
~~~


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