Bug 1394290

Summary: Could not find virtual machine network interface matching <ip address>
Product: Red Hat Satellite Reporter: Waldirio M Pinheiro <wpinheir>
Component: Compute Resources - VMWareAssignee: Ivan Necas <inecas>
Status: CLOSED ERRATA QA Contact: Sanket Jagtap <sjagtap>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.2.4CC: abradshaw, aupadhye, bbuckingham, bkearney, chrobert, cwelton, dlobatog, dzhukous, inecas, jalviso, jcallaha, jivavra, ktordeur, mhulan, mlele, rbobek, rchauhan, sjagtap, zhunting
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: foreman-1.11.0.66-2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1417070 (view as bug list) Environment:
Last Closed: 2017-03-06 08:34:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1417070    
Attachments:
Description Flags
patch to foreman to add more logging around vsphere networks.
none
patch to foreman to change the way we identify the the network, when virtual switches in place.
none
output query
none
patch to foreman to change the way we identify the the network to use key instead of managed object id none

Description Waldirio M Pinheiro 2016-11-11 15:09:41 UTC
Description of problem:
When customer try to provision new machines using distributed switch on vCenter they receive this message, although it's possible to provision using Standard switch.

Version-Release number of selected component (if applicable):
6.2.2 (customer environment)

Ps.: This customer came from 6.1.9 -> 6.2.2

How reproducible:
100% in customer env.

Steps to Reproduce:
1. Create new host
2. Define all information about vm
3. Define the network to one specific distributed SW
4. Submit

Actual results:
Message below
---
Unable to save
Could not find virtual machine network interface matching 10.0.10.238
---

Expected results:
Provision a new machine.

Additional info:

Comment 2 Waldirio M Pinheiro 2016-11-11 15:32:19 UTC
Hello all

Just one information about the project
 - http://projects.theforeman.org/issues/11106


Best Regards
-- 
Waldirio M Pinheiro | Senior Software Maintenance Engineer

Comment 7 Bryan Kearney 2016-11-11 16:47:55 UTC
Connecting redmine issue http://projects.theforeman.org/issues/11106 from this bug

Comment 9 Bryan Kearney 2016-11-11 17:12:07 UTC
Upstream bug component is Compute Resources - VMWare

Comment 21 Ivan Necas 2016-11-16 16:39:34 UTC
Created attachment 1221290 [details]
patch to foreman to add more logging around vsphere networks.

patch to foreman to add more logging around vsphere networks. To apply:

cd /usr/share/foreman
git init; git add -A .; git commit -m original
patch -p1 < ~/vsphere-net-logging.patch
service httpd restart

Tested against sat 6.2.4, but should work with any 6.2.x version

Comment 22 Ivan Necas 2016-11-16 16:41:15 UTC
Created attachment 1221291 [details]
patch to foreman to change the way we identify the the network, when virtual switches in place.

patch to foreman to change the way we identify the the network, when virtual switches in place. To apply:

cd /usr/share/foreman
git init; git add -A .; git commit -m original
patch -p1 < ~/vsphere-net-logging.patch
service httpd restart

Tested against sat 6.2.4, but should work with any 6.2.x version

Comment 23 Ivan Necas 2016-11-16 16:42:44 UTC
And of course, the second patch should have different name, such as vsphere-unique-networks.patch

cd /usr/share/foreman
git init; git add -A .; git commit -m original
patch -p1 < vsphere-unique-networks.patch
service httpd restart

Comment 24 Ivan Necas 2016-11-16 16:46:05 UTC
I would like to ask to apply first the logging patch, try to provision, then the second one and try to provision again and at the end share /var/log/foreman/production.log with us

Comment 37 Waldirio M Pinheiro 2016-11-18 14:57:50 UTC
Created attachment 1221886 [details]
output query

Comment 40 Ivan Necas 2016-11-18 19:48:36 UTC
Created attachment 1222001 [details]
patch to foreman to change the way we identify the the network to use key instead of managed object id

patch to foreman to change the way we identify the the network to use network key instead of the managed object id.

Please revert changes caused by previous patches attached to the bz first (as mentioned in the instructions below)

cd /usr/share/foreman
# in case not already managed by git
git init; git add -A .; git commit -m original
# in case some local changes were made before
git checkout -- .
patch -p1 < ~/vsphere-dvportgroup-key.patch
service httpd restart

Comment 50 Bryan Kearney 2016-11-28 23:12:09 UTC
Upstream bug assigned to inecas

Comment 51 Bryan Kearney 2016-11-28 23:12:14 UTC
Upstream bug assigned to inecas

Comment 64 errata-xmlrpc 2017-03-06 08:34:36 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-2017:0447

Comment 66 Red Hat Bugzilla 2023-09-15 00:00:30 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 500 days