Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1394290 - Could not find virtual machine network interface matching <ip address> [NEEDINFO]
Could not find virtual machine network interface matching <ip address>
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Compute Resources - VMWare (Show other bugs)
6.2.4
x86_64 Linux
urgent Severity urgent (vote)
: 6.2.8
: Unused
Assigned To: Ivan Necas
Sanket Jagtap
: Triaged
Depends On:
Blocks: 1417070
  Show dependency treegraph
 
Reported: 2016-11-11 10:09 EST by Waldirio M Pinheiro
Modified: 2017-03-09 09:19 EST (History)
19 users (show)

See Also:
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 03:34:36 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
inecas: needinfo? (abradshaw)


Attachments (Terms of Use)
patch to foreman to add more logging around vsphere networks. (1.45 KB, application/mbox)
2016-11-16 11:39 EST, Ivan Necas
no flags Details
patch to foreman to change the way we identify the the network, when virtual switches in place. (3.14 KB, application/mbox)
2016-11-16 11:41 EST, Ivan Necas
no flags Details
output query (67.89 KB, application/pdf)
2016-11-18 09:57 EST, Waldirio M Pinheiro
no flags Details
patch to foreman to change the way we identify the the network to use key instead of managed object id (1.02 KB, patch)
2016-11-18 14:48 EST, Ivan Necas
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 2891241 None None None 2017-01-27 01:20 EST
Foreman Issue Tracker 11106 None None None 2016-11-11 11:47 EST
Red Hat Product Errata RHBA-2017:0447 normal SHIPPED_LIVE Satellite 6.2.8 Async Bug Release 2017-03-06 08:23:41 EST

  None (edit)
Description Waldirio M Pinheiro 2016-11-11 10:09:41 EST
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 10:32:19 EST
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 11:47:55 EST
Connecting redmine issue http://projects.theforeman.org/issues/11106 from this bug
Comment 9 Bryan Kearney 2016-11-11 12:12:07 EST
Upstream bug component is Compute Resources - VMWare
Comment 21 Ivan Necas 2016-11-16 11:39 EST
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 11:41 EST
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 11:42:44 EST
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 11:46:05 EST
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 09:57 EST
Created attachment 1221886 [details]
output query
Comment 40 Ivan Necas 2016-11-18 14:48 EST
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 18:12:09 EST
Upstream bug assigned to inecas@redhat.com
Comment 51 Bryan Kearney 2016-11-28 18:12:14 EST
Upstream bug assigned to inecas@redhat.com
Comment 64 errata-xmlrpc 2017-03-06 03:34:36 EST
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

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